adsense only for anonymos ?

If you are having problems with my MediaWiki Extensions, post here.

adsense only for anonymos ?

Postby manshadow » September 27th, 2011, 12:51 pm

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
manshadow
Rank 0
Rank 0
 
Posts: 2
Joined: September 27th, 2011, 12:47 pm

Re: adsense only for anonymos ?

Postby Paul » September 27th, 2011, 9:07 pm

Yes... you could. You need to add logic to it.
User avatar
Paul
Development Team Leader
Development Team Leader
 
Posts: 1132
Joined: October 20th, 2007, 2:23 pm

Re: adsense only for anonymos ?

Postby manshadow » September 28th, 2011, 1:19 am

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
manshadow
Rank 0
Rank 0
 
Posts: 2
Joined: September 27th, 2011, 12:47 pm

Re: adsense only for anonymos ?

Postby Paul » September 28th, 2011, 10:12 am

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

Code: Select all
      <?php if( !$this->data['loggedin'] ) { ?>
         ...Your Ads...
      <?php } ?>
User avatar
Paul
Development Team Leader
Development Team Leader
 
Posts: 1132
Joined: October 20th, 2007, 2:23 pm


Return to MediaWiki Extensions Troubleshooting and Problems

Who is online

Users browsing this forum: No registered users and 1 guest

cron