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 :) !
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;
It works!
Thank you very much! :)