1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

How to hide 'Adsense' to particular usergroup

Discussion in 'vBulletin' started by GeeOne, Feb 25, 2012.

  1. #1
    Friends,

    Please help with me hiding the 'Adsense' to particular user groups (like Admins, Mods, and VIPs)

    I am using 4.1.9

    Thanx in advance.

    G!
     
    GeeOne, Feb 25, 2012 IP
  2. Grand webmaster

    Grand webmaster Peon

    Messages:
    186
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Definitely you can hide your adsense ads to these groups but with what software are you building your site?
     
    Grand webmaster, Feb 25, 2012 IP
  3. GeeOne

    GeeOne Well-Known Member

    Messages:
    3,238
    Likes Received:
    79
    Best Answers:
    0
    Trophy Points:
    125
    #3
    It's VBulletin.

    G!
     
    GeeOne, Feb 26, 2012 IP
  4. KJMS-Chris

    KJMS-Chris Guest

    Messages:
    33
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Create a new usergroup called "Premium"
    Add your VIP, premium members, staff, admins to this subuser group
    In your ad setup, down at the bottom it will say "Do not advertise to members of this group"- choose "Premium"

    Everything should be fixed.
     
    KJMS-Chris, Mar 6, 2012 IP
  5. GeeOne

    GeeOne Well-Known Member

    Messages:
    3,238
    Likes Received:
    79
    Best Answers:
    0
    Trophy Points:
    125
    #5
    Thanx for tips, let me try.

    G!

     
    GeeOne, Mar 6, 2012 IP
  6. KJMS-Chris

    KJMS-Chris Guest

    Messages:
    33
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Did it work?
     
    KJMS-Chris, Mar 10, 2012 IP
  7. querk

    querk Peon

    Messages:
    27
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #7
    You can also hard code it into templates

    <!--- start adsense --->
    <vb:if condition="in_array($bbuserinfo[usergroupid], array(5,6,7,2,1,3,4,8,15,18,13,17,14,22,19,21,12,20,16))">
    
    <!--- code --->
    
    </vb:if>
    <!--- end adsense --->
    Code (markup):
    The numbers are the usergroup id's to show ads for.
     
    querk, Mar 20, 2012 IP