• Hello =]

    I have a few problems i cant seem to find the answer for, first of which is, is it possible to set adds for specific user groups? therefore if a user is in lets say Administrator group, they cant see the adverts?

    Also are there any plugins that show a user page? like email address…etc

    Thanks,
    Renny

Viewing 2 replies - 1 through 2 (of 2 total)
  • For the first problem, you could always try something in your loop like:

    <?php
    if($current_user->user_level !== '10' ) {
    	// code to show ads
    }
    ?>

    This checks if the current user is not an admin, and displays the ads if that’s true.

    Thread Starter Anonymous

    (@masterreny)

    This is my code

    <div class="advert">
    		<?php  echo stripslashes(get_wpn_config('ad_300')); ?>
    	</div>

    how would i go about intergrating the two?

    would it be

    <?php
    if($current_user->user_level !== '10' ) {
    	<?php  echo stripslashes(get_wpn_config('ad_300')); ?>
    }
    ?>
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘A Few prolems need help with please’ is closed to new replies.