Actions

J1.5 talk

Difference between revisions of "Custom user groups"

From Joomla! Documentation

(New page: ''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 && $myGroupN...)
 
Line 21: Line 21:
 
-----------------------------------------------------
 
-----------------------------------------------------
 
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 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)

Revision as of 09:19, 26 January 2009

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)