PDA

View Full Version : Showing AdSense


hurricane_sh
05-26-2005, 06:57 PM
This may be not a hack question since I don't want to modify the vBulletin
source code.

I have placed AdSense on my vBulletin forum by modifying the header
template, everything works fine except AdSense TOS issue, AdSense TOS
doesn't allow the register/login (let me know if there are others) pages to
show ads.

How to hide ads for specific pages? Better not to modify the php code or make it minimum. Thanks!

Greg
05-26-2005, 07:19 PM
You can use a conditional in the template.


<if condition="THIS_SCRIPT == 'index' || THIS_SCRIPT == 'showthread'">

<!-- code here -->

</if>


ect ect...

hurricane_sh
05-26-2005, 07:26 PM
It works like a charm, thank you very much!

Greg
05-26-2005, 07:33 PM
Glad to help. :)

acers
06-04-2005, 08:55 AM
oh thanks a lot.. i was looking for something like this for ages..

Greg
06-04-2005, 12:28 PM
oh thanks a lot.. i was looking for something like this for ages..

Welcome the the forum. That's what we're here for. Glad we were able to help.

Please inform other vbulletin admins about us.

Regards.