I was wondering how i could show the ads in the header but not on pages without content (profiles, login and stuff like that). I managed it on my phpBB forums with putting the adsense code in page_header.php and then adding 1 line to the files where i want it to show (index.php, viewforum.php etc.). Is there a similar way to do this for VBulletin?
You can achieve this by wrapping conditionals around your header Adsense code, causing it to only show on forumdisplay and showthread pages, for example. You should search the official board on how to do that. The alternative is, to add content to those non-content pages as well. For example, you can add syndicated news to the navbar, or a side column, excerpts from recents posts/threads, and so and so forth.
Thank you very much. I'm now using conditionals to show the ads only on pages with content. <if condition="THIS_SCRIPT == index OR THIS_SCRIPT == forumdisplay OR THIS_SCRIPT == showthread"> ADSENSE CODE HERE </if> Code (markup):
i think itz ok to show on some pages without content like login or register pages, mainly i found Google show public ads on such pages .. am not sure ..