AzzidReign Posted April 17, 2010 Posted April 17, 2010 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. Quote
Administrators AWS Posted April 17, 2010 Administrators Posted April 17, 2010 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. Quote
AzzidReign Posted April 22, 2010 Author Posted April 22, 2010 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. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.