Advanced search  

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

Pages: [1]   Go Down

Author Topic: Admin rights to "Registered" user  (Read 6492 times)

0 Members and 1 Guest are viewing this topic.

TheRain

  • Coppermine newbie
  • Offline Offline
  • Posts: 16
Admin rights to "Registered" user
« on: January 26, 2006, 11:43:06 pm »

Hello.

I have a CPG 1.4.3 bridged with phpBB 2.0.19.
How i can give admin rights for "Registerd" phpBB user?

Thanks.
Logged

Blueiris

  • VIP
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Female
  • Posts: 170
  • Horse poor!
    • Saddlebred World Gallery
Re: Admin rights to "Registered" user
« Reply #1 on: January 27, 2006, 12:05:37 am »

You would need to do that through your phpBB admin panel.
Logged
You can lead a horse to water, but you can't make him drink - he's got to discover that it's wet for himself.

Nibbler

  • Guest
Re: Admin rights to "Registered" user
« Reply #2 on: January 27, 2006, 12:08:35 am »

Edit bridge/phpbb2018.inc.php

find

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

change to

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

If you use post based groups you'll also need to add a quick workaround by switching around the order of these 2 lines

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

I assume you are aware of the implications of making this modification.
Logged

TheRain

  • Coppermine newbie
  • Offline Offline
  • Posts: 16
Re: Admin rights to "Registered" user
« Reply #3 on: January 27, 2006, 12:47:07 am »

Ok. But i have one more question:

1. I turn on CPG bridged mode with post-based group's
2. I make special group in phpbb with name "Gallery Admin"and insert username in this group
3. CPG correctly dispalyed my phpBB groups, but in CPG user still stay on "Registered" group

How i can put this user into "Gallery Admin" group in CPG for apply yours codechange?


My English leaves much to be desired... :(
Logged

Nibbler

  • Guest
Re: Admin rights to "Registered" user
« Reply #4 on: January 27, 2006, 12:58:18 am »

CPG will display the user's primary group, which is 'registered'. The bridge system doesn't yet support determining admin rights from additional groups. You can make all registered users admin, but not members of an additional group.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Admin rights to "Registered" user
« Reply #5 on: January 27, 2006, 05:28:46 am »

I don't get it though why you would not trust those users to administer your forum, but you want to allow them to administer the gallery. A malevolent user or somebody who doesn't know his way around could ruin one app or the other. So if you fully trust those people, make them regular admins in your forum - they'll then be gallery admins as well. If you don't trust them fully, don't make them admin at all, in none of the apps.
Logged

TheRain

  • Coppermine newbie
  • Offline Offline
  • Posts: 16
Re: Admin rights to "Registered" user
« Reply #6 on: January 27, 2006, 10:28:25 am »

I only wished to give out to one of users of the right to acknowledgement upload files to gallery. Whether it is possible?
Logged

Nibbler

  • Guest
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 19 queries.