• Is there a way to use the user_levels to limit a section of a template? I want to have multiple users on a blog, but say that only those with level 1 have ads on their blogs with those level 2 or higher are ad free. So if a user with level 1 access posts, their author page will show an ad, reguardless of if someone is logged in or not.

Viewing 1 replies (of 1 total)
  • In your template add:

    <?php
    global $user_level;
    get_currentuserinfo();
    ?>

    You can then perform whatever tests you like on the $user_level variable.

Viewing 1 replies (of 1 total)
  • The topic ‘User Levels in Templates without login’ is closed to new replies.