Allow more then one admin group in Vbulletin integration Allow more then one admin group in Vbulletin integration
 

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]

Main Menu

Allow more then one admin group in Vbulletin integration

Started by Mr_Bob, October 14, 2005, 04:31:53 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Mr_Bob

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)
Life, wow...er........

Nibbler

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.

Mr_Bob

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?
Life, wow...er........

Nibbler

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.

Mr_Bob

There we go, that did the trick, works perfectly now.  It's been so long since I've edited a php file :D.
Thanks.
Life, wow...er........