Jump to content

Featured Replies

Posted

Anyone know the template conditional to display something after the first post only?

 

I thought I wrote a list a long time ago before I sold the site but now I can't find it.

  • Administrators
That is something I just starting to get my head around. I am making a list of them as I go along and will add them soon. I just haven't got to that point yet.
  • Author

Here we go, this is what I used for showing something after the first post to guests only.

 

<if test="showAds:|:$post['post']['post_count'] % $this->settings['display_max_posts'] == 1 && $this->memberData['member_id'] == 0">
<div align="center"><a href="http://apertureforums.com/index.php?app=core&module=global&section=register" title="Register Now For Free" rel="nofollow"><img src="/images/register.png" alt="Please register" /></a></div>
</if>

I have no clue what the showAds:|: part does, but it wouldn't work without it.

  • 3 weeks later...

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...