coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 bridging => Topic started by: lumens on February 01, 2006, 11:52:06 PM

Title: Moderators in phpBB assigned as Admins in Coppermine
Post by: lumens on February 01, 2006, 11:52:06 PM
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  :) !
Title: Re: Moderators in phpBB assigned as Admins in Coppermine
Post by: Nibbler on February 02, 2006, 12:21:28 AM
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;
Title: Re: Moderators in phpBB assigned as Admins in Coppermine
Post by: lumens on February 02, 2006, 12:43:58 AM
It works!

Thank you very much!  :)