Log in

View Full Version : Google adsense control needed!


fortforum
07-08-2009, 10:50 AM
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:

<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.