hello, I have a normal size forum with adsense running on it. I put the adsense code in one template file of the phpbb forum and its working fine but the problem is that it's showing up on every page in the forum, even the adult ones. This is a problem since I don't want it to show up in our adult section of the forum which at times contains nude pictures. Not sure how to go about doing this, any help would be appreciated.
hmm... maybe ask in the services or html forum section, you will find someone to help with that probably.
there may be a way to only show on certain forums,but it doesn't matter since your site has adult content,your not allowed to have adsense on the whole site.
unless its on a subdomain, your breaking the terms of service. Example: domain.com/normal.html domain.com/adultcontent.html is not allowed to have adsense. Look at it like this, if you were a large company would you want to advertise on a service where your ads may show on a site that has adult content regardless of where it was? In answer to your question, im not sure how phpBB does it. BUT it may look something like this. <?php if($_GET['f'] != adultID|adultID2|adultID3) { //show google ads code here } else { //show alternative adverts like adbrite } ?> PHP: The part after the "if", may have to be expanded, im not sure if you can do it like that, you may have to be if($_GET['f'] != 1 || $_GET['f'] != 2 || $_GET['f'] != 3) PHP: Pierce
Thanks for your help Pierce but I think I'm looking more for a way to stop adsense in only those sections. For example a stop word that once adsense notices on the page it doesn't show any ads. thanks
vBulletin has plugin which allows you to disable Ads in selected forums. Also, don't forget you are not allowed to have AdSense on registration page etc. As for adult content, I've seen adsense on huge relationship forums and adult sections had of course no adsense ... but better ask google if it's OK. I've asked them and they didn't reply