Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Moderator  (Read 4059 times)

0 Members and 1 Guest are viewing this topic.

renczus

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 14
Moderator
« on: October 14, 2006, 11:27:06 am »

Look. I want my phpBB 2.0.18 moderators to have administrative previlageson gallery. I tried to edit phpbb2018.inc.php on line 352:

Quote
if ($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?
« Last Edit: October 16, 2006, 07:55:36 pm by Nibbler »
Logged

Nibbler

  • Guest
Re: Moderator
« Reply #1 on: October 14, 2006, 01:12:25 pm »

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

Code: [Select]
$this->admingroups = array(2);
Logged

renczus

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 14
Re: Moderator
« Reply #2 on: October 14, 2006, 03:29:14 pm »

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

Nibbler

  • Guest
Re: Moderator
« Reply #3 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.
Logged

renczus

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 14
Re: Moderator
« Reply #4 on: October 14, 2006, 09:34:37 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:
Code: [Select]
// Group ids - admin and guest only.
$this->admingroups = array(2);
$this->guestgroup = 3;

and you told me that i should add this:
Code: [Select]
$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?
Logged

renczus

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 14
Re: Moderator
« Reply #5 on: October 14, 2006, 10:03:08 pm »

sorty but i havn't understood what i've been reading.
i should put sth like this:
Code: [Select]
$this->admingroups = array(1105); when the group is 1105?
Logged

Nibbler

  • Guest
Re: Moderator
« Reply #6 on: October 14, 2006, 11:39:22 pm »

Use this code:

Code: [Select]
$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.
Logged

renczus

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 14
Re: Moderator
« Reply #7 on: October 16, 2006, 07:12:23 pm »

thanks.

solved
Logged
Pages: [1]   Go Up
 

Page created in 0.034 seconds with 16 queries.