Announcement

Collapse
No announcement yet.

Show A Banner After The First Post In A Thread

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

  • Salome
    replied
    Just wanted to say thank you for the link with instructions!

    Leave a comment:


  • Byron
    replied
    Originally posted by Jake Bunce View Post
    Code:
    <if condition="$post[postcount] % $vboptions[maxposts] == 1 OR $post['islastshown']">
    very useful. thanks.

    Leave a comment:


  • oldengine
    replied
    Mine is getting out of control, but I'd like to place ads on more than just page one of the thread plus an ad second from the bottom the bottom of the thread pages.

    Code:
    <if condition="$post[postcount] == 1 AND $GLOBALS[threadinfo][replycount] >= 2 AND in_array($bbuserinfo['usergroupid'], array(1,2,3)) AND !in_array($GLOBALS[forumid], array(18,31))">
    Can this be incorporated into the above so that all the other conditions still work?

    Code:
    <if condition="$post[postcount] % $vboptions[maxposts] == 1 OR $post['islastshown']">

    Leave a comment:


  • nymyth
    replied
    no matter, i was just informed that Adsense can affect the way the quick reply function works.....ah well...

    Leave a comment:


  • nymyth
    replied
    http://www.vbulletin.com/forum/showthread.php?t=198875

    When I use the instructions here for the AD AFTER LAST POST...im getting a blank white screen after using quick reply....i know its whent I use <if condition="$post['islastshown']"> because when I use <if condition="$post[postcount] == 1"> it works fine...

    Any ideas?

    Leave a comment:


  • rolando
    replied
    Jake,

    Thanks, and perfect. This is why I own three licenses of VB and I'll be purchasing more, thanks, rg.

    Leave a comment:


  • Jake Bunce
    replied
    Replace !$bbuserinfo[userid] with this expression to check multiple groups (guests are also usergroupid 1):

    Code:
    is_member_of($bbuserinfo, X, Y, Z)
    Where X, Y, Z is a comma list of usergroupids. You will need to include the number 1 in there for guests.

    Leave a comment:


  • rolando
    replied
    I'm familiar with the VB page on adsense, and even though it shows all the conditionals, the one conditional I want is for certain groups. For example, I'd likek to exempt one group while showing on all pages after the first post, but for specific forums only. I have this part,

    Code:
    <if condition="$post[postcount] % $vboptions[maxposts] == 1 AND !$bbuserinfo[userid] AND in_array($GLOBALS[forumid], array(X,Y,Z))">
    Where it would be after the first post, every page, for guests only on specific forums (X,Y,Z), but I want it for specific groups, not just guests. Thanks, rg.

    Leave a comment:


  • Jake Bunce
    replied
    Code:
    <if condition="$post[postcount] % $vboptions[maxposts] == 1 OR $post['islastshown']">

    Leave a comment:


  • Demo16
    replied
    Jake I have a question, how can I put 2 banners on a page? One after the first post of every page and one between the last and second to last post on every page?

    Leave a comment:


  • Jake Bunce
    replied
    http://www.vbulletin.com/forum/showthread.php?t=194366

    You don't need the spacer variables anymore.

    Leave a comment:


  • amc
    replied
    I tried the instructions but the last postbit before the ad goes out of alignment.

    Leave a comment:


  • Floris
    replied
    Yes, not must will have changed.

    Leave a comment:


  • amc
    started a topic Show A Banner After The First Post In A Thread

    Show A Banner After The First Post In A Thread

    How do I show A Banner After The First Post In A Thread?

    Can I follow the same procedure mentioned here http://www.vbulletin.com/forum/showthread.php?t=157022
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Working...
X