Posted April 17, 201014 yr What's the if condition to only show on the forum home? I see you guys have that here and I can't find any documentation on their if conditions.
April 17, 201014 yr Administrators In the board index template at the top right after: <script type='text/javascript'> //<![CDATA[ ipb.global.boardMarkers = $H({ 'f_cat_unread': "{parse replacement="f_cat_read"}", 'f_unread': "{parse replacement="f_read"}", 'f_pass_unread': "{parse replacement="f_pass_read"}" }); var markerURL = "{parse url="app=forums&module=ajax§ion=markasread&secure_key={$this->member->form_hash}&i=1&forumid=" base="public"}"; // Ajax URL so don't use & //]]> </script> Add this: <if test="memberbox:|:$this->memberData['member_id']"> <else /> <div> You're welcome message for guests </div></if> That is how I do it. If you just want the conditional it's: <if test="memberbox:|:$this->memberData['member_id']"> I put my guest message in board index although that conditional works in global template also. I use it there to show ads to guests on my other sites.
April 22, 201014 yr Author Oh, I installed a mod and was wondering if there was a code for just the board index? The mod has it's own template.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.