Announcement

Collapse
No announcement yet.

Showing Adsense to registered users.

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

  • Showing Adsense to registered users.

    Hi,

    I would like to enhance this template hack (http://www.vbulletin.com/forum/showthread.php?t=237530 ) and I want to exclude guest users (Default Adsense integration shows adds to only guest in first post) and show Adsense to registered users. What condition should I add to the above hack?

    Thanks,
    ISN

  • #2
    If you want to show the ad in the first post to registered users and are using Adsense integration then edit your ad_showthread_firstpost_start template and remove the conditional that looks like:
    <if condition="!$bbuserinfo['userid']">

    Make sure to remove one of the </if> tags at the bottom as well.
    Translations provided by Google.

    Wayne Luke
    The Rabid Badger - a vBulletin Cloud demonstration site.
    vBulletin 5 API - Full / Mobile
    Vote for your favorite feature requests and the bugs you want to see fixed.

    Comment


    • #3
      Originally posted by Wayne Luke View Post
      If you want to show the ad in the first post to registered users and are using Adsense integration then edit your ad_showthread_firstpost_start template and remove the conditional that looks like:
      <if condition="!$bbuserinfo['userid']">

      Make sure to remove one of the </if> tags at the bottom as well.
      Thanks, Just want I wanted. Works fine.

      Comment

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