Results 1 to 8 of 8

Adsense only visible for guests

This is a discussion on Adsense only visible for guests within the Ad Networks forums, part of the Monetizing category; How do I do it?...

  1. #1
    Member
    Real Name
    Stefan Eling
    Join Date
    Mar 2006
    Location
    munster, germany
    Posts
    30
    Liked
    1 times

    Question Adsense only visible for guests

    How do I do it?

  2. #2
    Senior Member
    Real Name
    .
    Join Date
    Jul 2006
    Posts
    386
    Liked
    3 times
    Blog Entries
    1
    Wrap it in an if condition.

    HTML Code:
    <if condition="in_array($bbuserinfo[usergroupid], array(USERGROUP ID HERE))">
    adsense code
    </if>
    Be sure to put the usergroup ID that you want in where I've put USERGROUP ID HERE.

  3. #3
    Member
    Real Name
    John
    Join Date
    Jun 2007
    Posts
    31
    Liked
    0 times
    thanks for the code, helpful!

  4. #4
    Senior Member sportsmedjosh's Avatar
    Real Name
    Josh
    Join Date
    Jan 2007
    Posts
    404
    Liked
    0 times
    This would be a great way to give supporting members of a forum a nice thank you. Could you set it up so only certain membergroups don't see the code though.
    It may be best to not listen to anything I say for advice. :spin:

  5. #5
    Senior Member briansol's Avatar
    Real Name
    Brian
    Join Date
    Apr 2006
    Location
    Central CT, USA
    Posts
    6,981
    Liked
    8 times
    yes, just put that groupid in the array and negate it with !=

  6. #6
    Senior Member sportsmedjosh's Avatar
    Real Name
    Josh
    Join Date
    Jan 2007
    Posts
    404
    Liked
    0 times
    so lets say if i want user group 3 and 4 to not see the ads I would put "!=4, !=5"
    It may be best to not listen to anything I say for advice. :spin:

  7. #7
    Senior Member briansol's Avatar
    Real Name
    Brian
    Join Date
    Apr 2006
    Location
    Central CT, USA
    Posts
    6,981
    Liked
    8 times
    <if condition!="in_array($bbuserinfo[usergroupid], array(4,5))">
    adsense code
    </if>

  8. #8
    Senior Member sportsmedjosh's Avatar
    Real Name
    Josh
    Join Date
    Jan 2007
    Posts
    404
    Liked
    0 times
    Thank you!
    It may be best to not listen to anything I say for advice. :spin:

Similar Threads

  1. List of AdSense Trackers
    By Eros in forum Ad Networks
    Replies: 10
    Last Post: 08-02-2007, 12:09 AM
  2. Google AdSense Alternatives - Seth Godin
    By Joe Ward in forum General Discussion
    Replies: 6
    Last Post: 08-19-2006, 07:53 PM
  3. Spam sites with Adsense are Google’s partners
    By Shawn.Connory in forum Ad Networks
    Replies: 2
    Last Post: 07-15-2006, 12:01 AM
  4. vBSEO 2.4.0 Released - Includes Google AdSense Targeting Feature!
    By Juan Muriente in forum vBSEO Announcements
    Replies: 74
    Last Post: 05-20-2006, 10:29 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •