| Welcome to WebmasterWorld Guest from 188.8.131.52 |
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
|Become a Pro Member|
|Adsense only to guests?|
How do I do this in phpbb?
I have one unit on my forum that shows up as if it's the first post in each sectino, and I'd like to show it only to guests. How can I do this in phpbb?
Use different templates for logged in visitors and guests. The Adsense mod should be added only to template for guests
Update your template (eg overall_header.tpl) with the user logged out tags and adsense code.
<!-- BEGIN switch_user_logged_out -->
adsense code here
<!-- END switch_user_logged_out -->
PHPBB checks this switch code and will only process when a user is not logged in.
Awesome! Thanks guys!
All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved