adsense only for anonymos ?

If you are having problems with my MediaWiki Extensions, post here.
Post Reply
User avatar
manshadow
Rank 0
Rank 0
Posts: 2
Joined: September 27th, 2011, 12:47 pm

adsense only for anonymos ?

Post by manshadow »

is it possible to show the adsense only for not anonymus ?
logged in users should not see ad. is it possible ? whats to do ?
User avatar
Paul
Development Team Leader
Development Team Leader
Posts: 1132
Joined: October 20th, 2007, 2:23 pm

Re: adsense only for anonymos ?

Post by Paul »

Yes... you could. You need to add logic to it.
User avatar
manshadow
Rank 0
Rank 0
Posts: 2
Joined: September 27th, 2011, 12:47 pm

Re: adsense only for anonymos ?

Post by manshadow »

thanks paul for the answer..
I dont know what is logic ?

do you mean this http://www.mediawiki.org/wiki/Extension:WikiLogic ?

I need to install this ?

kindly regards
manshadow
User avatar
Paul
Development Team Leader
Development Team Leader
Posts: 1132
Joined: October 20th, 2007, 2:23 pm

Re: adsense only for anonymos ?

Post by Paul »

No... not the extension, you need something like this:

Code: Select all

		<?php if( !$this->data['loggedin'] ) { ?>
			...Your Ads...
		<?php } ?>
Post Reply