Topic: how to use google adsense code in punbb forum

Hi,
i want google adsense to appear in the top portion of the forum in everypage and also in side if possible...can any one tell me how to do this...
please show me some samples....sud i use some plugin for this or is there any way i can editing any pages to get this.

thanks

venkat

2

Re: how to use google adsense code in punbb forum

add your adsence code to a php file called adds.php in include/user
then open main.tpl and add <pun_include "adds.php"> were ever you want them smile

Re: how to use google adsense code in punbb forum

Moved to PunBB discussions.

Looking for a certain modification for your forum? Please take a look here before posting.

Re: how to use google adsense code in punbb forum

Is there a way to do this with a conditional? show only show the include if its a guest viewing the boards? or only show them if its a user?

Ideally I'd like guests to see ads at the top and users at the bottom.

Thanks in advance for any help/ideas.

Re: how to use google adsense code in punbb forum

Write ads.php with the conditional in it smile

Re: how to use google adsense code in punbb forum

Sorry to be stupid but what's the format of conditionals in punbb?

Re: how to use google adsense code in punbb forum

ads.php should just be regular PHP wink

Re: how to use google adsense code in punbb forum

k cheers. I'll look into it :-)

Re: how to use google adsense code in punbb forum

All sorted. Thanks. I was thinking I'd need to use punbb code when php worked just fine.