Welcome to WebmasterWorld Guest from 54.226.133.245

Forum Moderators: incrediBILL & martinibuster

Message Too Old, No Replies

Adsense only to guests?

How do I do this in phpbb?

     
4:25 am on Aug 2, 2006 (gmt 0)

Junior Member

5+ Year Member

joined:May 1, 2006
posts:43
votes: 0


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?
5:22 am on Aug 2, 2006 (gmt 0)

Preferred Member

10+ Year Member

joined:May 6, 2005
posts:460
votes: 0


Use different templates for logged in visitors and guests. The Adsense mod should be added only to template for guests
6:40 am on Aug 2, 2006 (gmt 0)

Junior Member

10+ Year Member

joined:Oct 6, 2004
posts:53
votes: 0


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.

2:13 pm on Aug 2, 2006 (gmt 0)

Junior Member

5+ Year Member

joined:May 1, 2006
posts:43
votes: 0


Awesome! Thanks guys!