vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Google adsense control needed! (https://vborg.vbsupport.ru/showthread.php?t=218135)

fortforum 07-08-2009 10:50 AM

Google adsense control needed!
 
Hi all,

i need better control of adsense. The only thing i?m asking is the ability to turn of some usergroups from having the advertiments. Thats all. I only want it for unreg. groups. No need of ads in post or other strange stuff.

I have of course been looking at different ad-ons, but theres always a lot of issues.

I just need this simple feature to turn som groups off. Help aprechiated.

www.expatonline.se/fort

HMBeaty 07-08-2009 08:16 PM

All you need to do if you just want to show it to guests, is wrap this code around your adsense:
HTML Code:

<if condition="$show[guest]">
YOUR ADSENSE CODE HERE
</if>


fortforum 07-08-2009 11:40 PM

Nice, thanx. But where exactely should i put this?

I´m new to adsense, and the "code" your refering to is the same code that verifyes my adsense contract?

Thanx

HMBeaty 07-09-2009 12:07 AM

It goes around whatever code they gave you for your banners or whatever you might have

fortforum 07-09-2009 12:21 AM

Well, i just dont get it, sorry. I only see the "activate" options under advertisments--> google adsense options in the settings.

I also see my code that reads pub-991735954XXXXXXX.

But where, exactely do i put the mentioned code? In the templates? Please clarify?

HMBeaty 07-09-2009 12:22 AM

Yes, in the ad_location_xxxx templates that you need.

fortforum 07-09-2009 12:28 AM

Ok, thanx. I might be stupid but i really dont get it. Do i need to put this code in EVERY single template?

I apprechiate your help and all, but you just have to unfold this just a little more. Please.

For example i see this in FORUMHOME

<br />
$ad_location[ad_forumhome_afterforums]
<br />

Is this where the code should be inserted?

HMBeaty 07-09-2009 07:00 PM

If you want to do it the hard way, yes. But to do it the easy way, you would need to open up your template (for example: ad_forumhome_afterforums) and place that conditional in the template.


All times are GMT. The time now is 09:21 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00960 seconds
  • Memory Usage 1,720KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete