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?
$my in Joomla 1.5 ? if($my->usertype=='Super Administrator')
Moderators: tjay, seadap, Rogue4ngel, matthewhayashida
- carsten888
- 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')
Last edited by carsten888 on Sun Mar 16, 2008 5:53 pm, edited 1 time in total.
-
- 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')
Code: Select all
$user =& JFactory::getUser();
$user_type = $user->get('usertype');
Denise
- carsten888
- Joomla! Apprentice
- Posts: 27
- Joined: Sat Feb 11, 2006 8:32 am
- Location: Tilburg, Holland
- Contact: