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 stop yourself clicking your ads on Invision forums

Discussion in 'Forum Management' started by Zany_Jim, May 4, 2006.

  1. #1
    Right so you own your invision forum and have got your ads on there right? But you don't want to click them yourself by mistake cause thats just bad!

    So use this code to block your admin group from seeing them!

    First you need to find your user group id, so log into your ACP and click on the "Management" tab. The click on "Manage User Groups" from the menu on the left. Right now you have your list of member groups, if you get the link location of the group you want to block...

    This is your user group id (In Bold)
    Now go to where you have your google ads code and wrap it in:

    
    <if="ipb.member['mgroup'] != 4">
    
    <script type="text/javascript"><!--
    google_ad_client = "";
    google_ad_width = 728;
    google_ad_height = 90;
    google_ad_format = "728x90_as";
    google_ad_type = "text_image";
    google_ad_channel ="3863925167";
    google_color_border = "222222";
    google_color_bg = "FFFFFF";
    google_color_link = "262997";
    google_color_url = "008000";
    google_color_text = "000000";
    //--></script>
    <script type="text/javascript"
      src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script>
    
    </if>
    
    Code (markup):
    As you can see you replace the number in the if statement with your group.

    There you go, just spent a little time finding that out so i thought i would save other people the bother. :cool:

    Sorry if this in the wrong place.
     
    Zany_Jim, May 4, 2006 IP
  2. websys

    websys Active Member

    Messages:
    841
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    78
    #2
    its a little weird ... but thanks anyway ;)
     
    websys, May 6, 2006 IP
  3. Zany_Jim

    Zany_Jim Peon

    Messages:
    144
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Its good cause you can block your whole Admin group from clicking on them, plus its just good cause you don't get to see them on your forum :)
     
    Zany_Jim, May 7, 2006 IP
  4. spdude

    spdude Guest

    Messages:
    1,315
    Likes Received:
    86
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Ok, this explains how to block the ad unit from admins. What would one need to do to block the ad unit from all members and show it to just guests?
     
    spdude, Jun 24, 2006 IP
  5. Mortekai

    Mortekai Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Just place the ad code like this:

    <if="ipb.member['mgroup'] != 2">

    Banner code goes here...

    </if>
     
    Mortekai, Jun 24, 2006 IP