Actions

J1.5 talk

Custom user groups

From Joomla! Documentation

Revision as of 09:22, 26 January 2009 by Tribal6 (Talk | contribs)

For displaying the groups correctly you will have to change the code of : /administrator/components/com_users/admin.users.php line 285:

if ( $userGroupName == $myGroupName && $myGroupName == 'administrator' )

  {
     // administrators can't change each other
     $lists['gid'] = '<input type="hidden" name="gid" value="'. $user->get('gid') .'" />'. JText::_( 'Administrator' ) .'';
  }
  else
  {
     $gtree = $acl->get_group_children_tree( null, 'USERS', false );into 

if ( $userGroupName == $myGroupName && $myGroupName == 'administrator' )

  {
     // administrators can't change each other
     $lists['gid'] = '<input type="hidden" name="gid" value="'. $user->get('gid') .'" />'. JText::_( 'Administrator' ) .'';
  }
  else
  {
     $gtree = $acl->get_group_children_tree( null, 'USERS', true);

I use Joomla 1.5.7 and I don't have the /administrator/components/com_users/admin.users.php file. (at least in that address)


I am on my first try too, and I found the call in

../administrator/components/com_users/views/user/view.html.php

on Line 113 (in a J- 1.5.8 wich is patched to a 1.5.9)