User Group Topic is solved

Discussion and education for beginner / novice programmers interested in embarking on the development process to take advantage of the extensible nature of the Joomla! CMS.

Moderators: tjay, seadap, Rogue4ngel, matthewhayashida

Forum rules
Post Reply
selts

User Group

Post by selts » Sun Oct 14, 2007 12:15 pm

Hi,
I will like to retrieve the usergroup after login.
What is the variable to use? Basically, I want to know whether it is registered or special.
Thanks.

User avatar
bascherz
Joomla! Intern
Joomla! Intern
Posts: 86
Joined: Mon Jan 16, 2006 1:33 am
Location: Vienna, VA
Contact:

Re: User Group

Post by bascherz » Sun Oct 14, 2007 12:54 pm

In Joomla 1.0.x, $my->usertype returns a string representation. You could alternatively use $my->gid if you prefer the numeric values of each type of user. Values for $my->usertype are as follows (with $my->gid):

  • Public Frontend(29)
  • Registered(18)
  • Author(19)
  • Editor(20)
  • Publisher(21)
  • Public Backend(30)
  • Manager(23)
  • Administrator(24)
  • Super Administrator(25)

Make sure to declare $my global.
__________________
Bruce Scherzinger


Post Reply