Announcement

Collapse
No announcement yet.

How do I add adsense after the first post, but for guests only?

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

  • How do I add adsense after the first post, but for guests only?

    I want to show a (300 x 250) adsense ad, after the first post on every page of the thread, instead of only one page.

    However, only guests will able to see this ad.

    What code must I input? And where to place it?

    Thanks in advance.

  • #2
    I think this will help: http://www.vbulletin.com/forum/showthread.php?t=157022
    Congratulations on the death of vBulletin, Internet Brands.

    Comment


    • #3
      What is the needed conditional. in order to my guests (only) see the ad after the first post (in every thread)?

      I placed
      Code:
       <if condition="$post[postcount] == 1 AND !$bbuserinfo[1]">
      P.S: Group 1 is the Guest group.

      Comment


      • #4
        is this somehting you are asking or is this the correct statement?

        I am looking for a similar statement that will hide the google banner from 4 usergroups and show it to the rest... How can I do that?

        Comment


        • #5
          Originally posted by Pri]M[aL
          What is the needed conditional. in order to my guests (only) see the ad after the first post (in every thread)?

          I placed
          Code:
           <if condition="$post[postcount] == 1 AND !$bbuserinfo[1]">
          P.S: Group 1 is the Guest group.
          It should be exactly as it's written in the thread I linked to:
          HTML Code:
          <if condition="$post[postcount] == 1 AND !$bbuserinfo[userid]">
          glock22:

          Also look at the tutorial I linked above (http://www.vbulletin.com/forum/showthread.php?t=157022). You'd need to place the following code in though:
          HTML Code:
                      <if condition="in_array($bbuserinfo[usergroupid], array(X,Y,Z))">
          Just replace X, Y, Z with the usergroup id's of the groups you want to show the ads too. The ones not listed there won't (or shouldn't) see it.
          Congratulations on the death of vBulletin, Internet Brands.

          Comment

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