Jump to content

Recommended Posts

  • Administrators
Posted

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&section=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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...