Announcement

Collapse
No announcement yet.

Having google adsense inside posts for guests.

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

  • Having google adsense inside posts for guests.

    I would like to have my forum have adsense banners inside posts for guest users but when they sign in/sign up they disappear. Can anyone point me to the right thread so I can do this?

    Thanks.

  • #2
    Originally posted by brettxw View Post
    I would like to have my forum have adsense banners inside posts for guest users but when they sign in/sign up they disappear. Can anyone point me to the right thread so I can do this?
    There is no easy solution with vB 3.x
    Wait for vB4,with that MIGHT be possible to have some control.
    Another solution is to browse vB.org for hacks.


    vB5 is unequivocally the best forum software, but not yet...

    Comment


    • #3
      When is vb4 going to release?

      Comment


      • #4
        Originally posted by beishe8 View Post
        There is no easy solution with vB 3.x
        Wait for vB4,with that MIGHT be possible to have some control.
        Another solution is to browse vB.org for hacks.
        Don't be lazy. He wants guest, so give him a conditional.

        Code:
        <if condition=”$show['guest'] AND ($post[postcount] % $vboptions[maxposts] == 1)”>AdSense code </if>

        Comment


        • #5
          Thanks!

          Thank you for the info. I did this with my forum, so guests see adverts in the footer - but the adverts disappear for any logged-in user. I took out the search advert below the navbar, because it disrupted the look of my forum.

          Here is the code I used - right at the top of the footer:

          Code:
          <if condition="$show['guest']">
          $ad_location[ad_footer_start]
          </if>
          Thanks, again!

          Comment

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