FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

Google Adsense and phpBB

 


Josso
Ok, like Frihost (when you are logged out) I wanted to have a few Google ads below the first post in a topic. I looked at the phpBB knowledge centre and it explains how to do this on BB2. However that's the whole point - how does Frihost achieve it so that you only see the ad's when your logged out? Is it bundled with the entirely different template or is there some code that see's that you are logged out and does not display it?

Thanks,
Joss
catscratches
I guess that they have a function that checks if you're logged in and then it allows you to Post Replies and so on. You can use the function to check if you're logged in and then it doesn't show the ad.
Josso
No matter, I found the answer. Thanks for your help anyway though. If your curious...

Code:
<!-- IF not S_USER_LOGGED_IN -->


Code:
< Your adsense code here! >


Code:
<!-- ENDIF -->
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.