Show A Banner After The First Post In A Thread

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • amc
    Member
    • Jun 2004
    • 61
    • 3.6.x

    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
  • Floris
    Senior Member
    • Dec 2001
    • 37767

    #2
    Yes, not must will have changed.

    Comment

    • amc
      Member
      • Jun 2004
      • 61
      • 3.6.x

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

      Comment

      • Jake Bunce
        Senior Member
        • Dec 2000
        • 46598
        • 3.6.x

        #4


        You don't need the spacer variables anymore.

        Comment

        • Demo16
          New Member
          • Sep 2006
          • 3

          #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

          • Jake Bunce
            Senior Member
            • Dec 2000
            • 46598
            • 3.6.x

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

            Comment

            • rolando
              New Member
              • Jan 2006
              • 21
              • 3.5.x

              #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

              • Jake Bunce
                Senior Member
                • Dec 2000
                • 46598
                • 3.6.x

                #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

                • rolando
                  New Member
                  • Jan 2006
                  • 21
                  • 3.5.x

                  #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

                  • nymyth
                    Senior Member
                    • Jun 2002
                    • 228

                    #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

                    • nymyth
                      Senior Member
                      • Jun 2002
                      • 228

                      #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

                      • oldengine
                        Senior Member
                        • Oct 2004
                        • 342
                        • 3.7.x

                        #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

                        • Byron
                          Senior Member
                          • Nov 2000
                          • 525
                          • 3.0.0 Beta 6

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

                          Comment

                          • Salome
                            Member
                            • Nov 2009
                            • 34
                            • 3.8.x

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