Announcement

Collapse
No announcement yet.

displaying banner after second post not working

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • displaying banner after second post not working

    Code:
    <vb:if condition="(is_member_of($bbuserinfo, 1)) and ($post[postcount] == '2')">
    This use to work and no longer does, how do i get it to work?

    Thanks.

  • #2
    What changed on your site? Upgrade version? Install a mod?

    What I am seeing there is it will display to guests but only after the 2nd post- Note- it won't display on later pages in a thread. If you have a 3 page thread it only displays on the first page. Perhaps that is why it "used to work?" If you go back to page 1 of the thread, do you still see it?

    There is no template conditional only way of showing after the 2nd post on multiple pages- you would need a plugin to determine when to show it.

    Comment


    • #3
      Most likely $post isn't working and you will need to use $GLOBAL instead.

      Please don't PM or VM me for support - I only help out in the threads.
      vBulletin Manual & vBulletin 4.0 Code Documentation (API)
      Want help modifying your vbulletin forum? Head on over to vbulletin.org
      If I post CSS and you don't know where it goes, throw it into the additional.css template.

      W3Schools &lt;- awesome site for html/css help

      Comment


      • #4
        What changed? I went from 4.1 to 4.2. Will try $global shortly. Thanks.

        Comment

        widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
        Working...
        X