forum.coppermine-gallery.net
Support => cpg1.3.x Support => Older/other versions => cpg1.3 (BBS) Integration / Bridging => Topic started by: Mr_Bob on October 14, 2005, 04:31:53 am
-
OK, here's basically what I need. In the Vbulletin integration file there is the area where you input your admin group number by default 6. I would like to know how I can make it so both my Vbulletin usergroups 5 and 6 can have administrative access in Coppermine. In other words, I want all my administrators and Super Moderators to be able to do the administrative tasks. How would I go about doing this?
(btw, integrated with VB 3.5 gold, yes the integration file seems to still work :D)
-
2 lines to change in the bridge file
$USER_DATA['mgroup'] == VB_ADMIN_GROUP
can be
in_array($USER_DATA['mgroup'], array(5,6))
2 places to change.
This is completely untested.
-
Ok, tried it but it didn't work. I don't think it's your code's problem though I think I may just be doing something stupid. This is what one of my lines looks like
$USER_DATA['has_admin_access']= in_array($USER_DATA['mgroup'], array(5,6);
How exactly would I add the code? If this is right is there any other solution?
-
Looks like you've missed out a closing bracket. The number of opening and closing brackets has to match. Double check your changes and post the error message if you get one.
-
There we go, that did the trick, works perfectly now. It's been so long since I've edited a php file :D.
Thanks.