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

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

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........