$my in Joomla 1.5 ? if($my->usertype=='Super Administrator')

Have a programming question regarding your component, plug-in, extension or core hacks? Have an interesting tidbit, FAQ or programming tip you’d like to share? This is the place for you.

Moderators: tjay, seadap, Rogue4ngel, matthewhayashida

Post Reply
User avatar
carsten888
Joomla! Apprentice
Joomla! Apprentice
Posts: 27
Joined: Sat Feb 11, 2006 8:32 am
Location: Tilburg, Holland
Contact:

$my in Joomla 1.5 ? if($my->usertype=='Super Administrator')

Post by carsten888 » Sun Mar 16, 2008 8:50 am

How to get the usertype in Joomla 1.5?
In Joomla 1.0.x $my->usertype works fine, it also works in Joomla 1.5 in legacy mode.

How to do this?
Last edited by carsten888 on Sun Mar 16, 2008 5:53 pm, edited 1 time in total.

radiant_tech
Joomla! Apprentice
Joomla! Apprentice
Posts: 41
Joined: Sat Dec 15, 2007 3:02 pm
Location: Washington DC Metro

Re: $my in Joomla 1.5 ? if($my->usertype=='Super Administrator')

Post by radiant_tech » Sun Mar 16, 2008 2:59 pm

Code: Select all

$user =& JFactory::getUser();
$user_type = $user->get('usertype');
Denise

User avatar
carsten888
Joomla! Apprentice
Joomla! Apprentice
Posts: 27
Joined: Sat Feb 11, 2006 8:32 am
Location: Tilburg, Holland
Contact:

Re: $my in Joomla 1.5 ? if($my->usertype=='Super Administrator')

Post by carsten888 » Sun Mar 16, 2008 5:52 pm

thank you !


Post Reply