PHP Forums Archive

How Different show content based on user level?

Tags: n/a

paulkees posted on 2010-08-09 18:35:44 #

Hi Olaf

Class I adapted to my needs, but I am constantly surprised by his good performance!

Here I found another solution in the forum from two years ago:

How Different show content based on user level?

The solution you gave is:

$ Obj = new Access_user;
if ($ obj-> get_access_level ()> 5) (
   echo "<div>'re above level 5 </ div>";
Else ()
   echo "You're <div> Below level 5 </ div>";
)

This works perfect!

Congratulations again for the Class Olaf!

Comments / discussions

Olaf posted on 2010-08-09 18:48:15 #

Hello Paul,

great that this class works for you ;)