Moderator Moderator
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Moderator

Started by renczus, October 14, 2006, 11:27:06 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

renczus

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?

Nibbler

Add the id of the new group into the $admingroups array in the bridge file.

$this->admingroups = array(2);

renczus

where should I put that code...??
is my code correct or should i restore default code?

Nibbler

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.

renczus

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?

renczus

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?

Nibbler

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.

renczus