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: How do I change the group ID mapping  (Read 3627 times)

0 Members and 1 Guest are viewing this topic.

webstergd

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
How do I change the group ID mapping
« on: September 06, 2006, 08:37:06 pm »

I would like to set the group ID from SMF that coppermine will use for registered users and administrators.  Currently a registered user who is not placed in a group is given registered status in coppermine.  However, if that user's primary group is changed to another group he no longer has registered status in coppermine.  This is a problem because my members and officers are the users I want to have access to coppermine but not regular registered users.  <-- sorry that was a mouthfull :-)  From the smf sql information I noticed the following:

registered with no special primary member group  -- ID_GROUP = 0
registered with member primary member group     -- ID_GROUP = 9
registered with officer primary member group       -- ID_GROUP = 2
registered with admin primary member group        -- ID_GROUP = 1

Is there a place where I can map these groups to the coppermine group?  Bellow is how I would like to map them.
coppermine admin       = SMF ID_GROUP 1 2
coppermine registered = SMF ID_GROUP 9
coppermine guest       = SMF ID_GROUP 0


Thank you for your help! 



I am using:
Joomla, v1.0.11
SMF vRC3
SMF bridge from SMF
Coppermine v1.4.9
Coppermine bridge from v1.4.9

the website is:
http://www.axiompvp.com/

test account:
username: test
password: testtest

Bridge Wizard: enable/disable BBS integration
Your bridge settings
Forum URL:    http://www.axiompvp.com/smf
Relative path to your BBS's config file:    ../smf/
Use post-based groups?:    0
Enable integration/bridging with Simple Machines (SMF)
enable
« Last Edit: September 07, 2006, 12:39:31 am by Nibbler »
Logged

Nibbler

  • Guest
Re: How do I change the group ID mapping
« Reply #1 on: September 06, 2006, 09:34:02 pm »

Try using post based groups and album visibility settings. You can set admin rights using the $this->admingroups array in the bridge file.
Logged

webstergd

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: How do I change the group ID mapping
« Reply #2 on: September 06, 2006, 11:53:11 pm »

thank you for your help with setting the groups permissions.  I have fixed that problem. 


However, is this the correct modification to the code to allow officers to have admin permissions?  I usually program in assembly or java so my php/mysql is a little rusty.
Code: [Select]
                // Group ids - admin and guest only.
                       $this->admingroups = array(
                           $this->use_post_based_groups ? 101 : 1, //default admin
                           2 // officer group
);
                $this->guestgroup = $this->use_post_based_groups ? 1 : 3;

THANKS AGAIN FOR THE HELP!!!  I wouldn't know what to do without you guys.   ;D
Logged

Nibbler

  • Guest
Re: How do I change the group ID mapping
« Reply #3 on: September 06, 2006, 11:56:29 pm »

You probably want

Code: [Select]
                    $this->admingroups = array(
                           $this->use_post_based_groups ? 101 : 1, //default admin
                           $this->use_post_based_groups ? 102 : 2,  // officer group
);

Check by logging into accounts in the various groups, admin rights is not something you want to get wrong.
Logged

webstergd

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: How do I change the group ID mapping
« Reply #4 on: September 07, 2006, 12:29:53 am »

Perfect.  Everything is working as I would like it to.  Thank you again for all your help. 
Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 15 queries.