coppermine-gallery.com/forum

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

Title: Allow more then one admin group in Vbulletin integration
Post 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)
Title: Re: Allow more then one admin group in Vbulletin integration
Post by: Nibbler on October 14, 2005, 05:16:14 AM
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.
Title: Re: Allow more then one admin group in Vbulletin integration
Post by: Mr_Bob on October 16, 2005, 03:05:38 AM
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?
Title: Re: Allow more then one admin group in Vbulletin integration
Post by: Nibbler on October 16, 2005, 04:43:11 AM
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.
Title: Re: Allow more then one admin group in Vbulletin integration
Post by: Mr_Bob on October 16, 2005, 08:10:25 PM
There we go, that did the trick, works perfectly now.  It's been so long since I've edited a php file :D.
Thanks.