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

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

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