Look. I want my phpBB 2.0.18 moderators to have administrative previlageson gallery. I tried to edit phpbb2018.inc.php on line 352:
Quoteif ($user['user_level'] == 1 or in_array($row[$this->field['usertbl_group_id']] , $this->admingroups)) array_unshift($grps, 102);
elseif ($user['user_level'] == 2 or in_array($row[$this->field['usertbl_group_id']] , $this->admingroups)) array_unshift($grps, 102);
if ($user['user_level'] == 0) array_unshift($grps, 2);
But id doesn't work!
Could you be so kind and help me?
Add the id of the new group into the $admingroups array in the bridge file.
$this->admingroups = array(2);
where should I put that code...??
is my code correct or should i restore default code?
bridge/phpbb2018.inc.php. You need to find that code and add in the extra group you want to allow admin rights. Search the board for details.
Quote from: Nibbler on October 14, 2006, 03:54:15 PM
bridge/phpbb2018.inc.php. You need to find that code and add in the extra group you want to allow admin rights. Search the board for details.
in bridge/phpbb2018.inc.php there is a code like this:
// Group ids - admin and guest only.
$this->admingroups = array(2);
$this->guestgroup = 3;
and you told me that i should add this:
$this->admingroups = array(2);
to bridge/phpbb2018.inc.php
it is already there... ???
I don't know what you meant: to add an extra group (add a group in phpBB?) I already have one wich I want to have administrative privilages. in mysql table phpbb_groups this group has id of 1105
maybe there is some kind of solution where this particular gorup would have CPG administrative privilages?
It's much safer (i mean for my board) to add an user to particular group without giving him moderator status isn't it?
sorty but i havn't understood what i've been reading.
i should put sth like this:
$this->admingroups = array(1105);
when the group is 1105?
Use this code:
$this->admingroups = array(2, 1105);
I said to search the board for details, I have already answered this several times for various types of bridge.
thanks.
solved