View Full Version : Show adsense only to guests
July 24th, 2011, 10:40 AM
How would I enclose adsense code in PhotoPost so that the ads are shown only to guests?
July 24th, 2011, 12:00 PM
All depends on integration type how your doing your code. Mainly you will have to come up with some type of code modification that does that. An if clause would have to be properly formatted and correct variable usage used to achieve that result.
Like for instance to only show an ads to a guest you need to escape in a template your html and go into php and define something like this. Please note I do no support nor offer further assistance with code modifications. My attempt is to point you in the right direction not code up mods for anyone.
if ( $User['userid'] == 0 )
some img tag banner html here
vBulletin® v3.8.1, Copyright ©2000-2014, Jelsoft Enterprises Ltd.