Page 1 of 1

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

Posted: Sun Mar 16, 2008 8:50 am
by carsten888
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?

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

Posted: Sun Mar 16, 2008 2:59 pm
by radiant_tech

Code: Select all

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

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

Posted: Sun Mar 16, 2008 5:52 pm
by carsten888
thank you !