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
Try using post based groups and album visibility settings. You can set admin rights using the $this->admingroups array in the bridge file.
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.
// 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
You probably want
$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.
Perfect. Everything is working as I would like it to. Thank you again for all your help.