Announcement

Collapse
No announcement yet.

Show A Banner After The First Post In A Thread

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

  • 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

  • #2
    Yes, not must will have changed.

    Comment


    • #3
      I tried the instructions but the last postbit before the ad goes out of alignment.

      Comment


      • #4


        You don't need the spacer variables anymore.

        Comment


        • #5
          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?

          Comment


          • #6
            Code:
            [color=blue]<if condition="$post[postcount] % $vboptions[maxposts] == 1 OR $post['islastshown']">[/color]

            Comment


            • #7
              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.
              A Lexar Elite Photographer, writer for Studio Photography magazine
              & Author for Amherst Media

              Comment


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

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

                Comment


                • #9
                  Jake,

                  Thanks, and perfect. This is why I own three licenses of VB and I'll be purchasing more, thanks, rg.
                  A Lexar Elite Photographer, writer for Studio Photography magazine
                  & Author for Amherst Media

                  Comment


                  • #10


                    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?
                    IT'S WHERE THE NET COMES TO LOITER!

                    Comment


                    • #11
                      no matter, i was just informed that Adsense can affect the way the quick reply function works.....ah well...
                      IT'S WHERE THE NET COMES TO LOITER!

                      Comment


                      • #12
                        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']">

                        Comment


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

                          Comment


                          • #14
                            Just wanted to say thank you for the link with instructions!

                            Comment

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