coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 bridging => Topic started by: renczus on October 14, 2006, 11:27:06 AM

Title: Moderator
Post by: renczus on October 14, 2006, 11:27:06 AM
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?
Title: Re: Moderator
Post by: Nibbler on October 14, 2006, 01:12:25 PM
Add the id of the new group into the $admingroups array in the bridge file.

$this->admingroups = array(2);
Title: Re: Moderator
Post by: renczus on October 14, 2006, 03:29:14 PM
where should I put that code...??
is my code correct or should i restore default code?
Title: Re: Moderator
Post by: 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.
Title: Re: Moderator
Post by: renczus on October 14, 2006, 09:34:37 PM
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?
Title: Re: Moderator
Post by: renczus on October 14, 2006, 10:03:08 PM
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?
Title: Re: Moderator
Post by: Nibbler on October 14, 2006, 11:39:22 PM
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.
Title: Re: Moderator
Post by: renczus on October 16, 2006, 07:12:23 PM
thanks.

solved