Moderators in phpBB assigned as Admins in Coppermine Moderators in phpBB assigned as Admins in Coppermine
 

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

Moderators in phpBB assigned as Admins in Coppermine

Started by lumens, February 01, 2006, 11:52:06 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

lumens

Hi,

I use Coppermine 1.4.3 with phpBB2.0.18. Everything works fine, but i want the moderators from the phpBB forum (user_level=2) to have administrator rights in the Coppermine gallery.

I added this line in phpbb2018.inc.php:

if ($this->userlevel == 2 || in_array($row[$this->field['usertbl_group_id']] , $this->admingroups)) array_unshift($data, 102);
if ($this->userlevel == 1 || in_array($row[$this->field['usertbl_group_id']] , $this->admingroups)) array_unshift($data, 102);
if ($this->userlevel == 0) array_unshift($data, 2);

but nothing happened  :(

Can you please tell me what should I change to do that?

Thank you in advance for your time  :) !

Nibbler

Are you actually using post based groups ? If not then you need to edit the other bit

$data[0] = ($this->userlevel == 1 || in_array($row[$this->field['usertbl_group_id']] , $this->admingroups)) ? 1 : 2;

to
$data[0] = ($this->userlevel == 1 || $this->userlevel == 2 || in_array($row[$this->field['usertbl_group_id']] , $this->admingroups)) ? 1 : 2;

lumens