Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Allow more then one admin group in Vbulletin integration  (Read 8124 times)

0 Members and 1 Guest are viewing this topic.

Mr_Bob

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 3
Allow more then one admin group in Vbulletin integration
« 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)
« Last Edit: October 16, 2005, 08:26:45 pm by Nibbler »
Logged
Life, wow...er........

Nibbler

  • Guest
Re: Allow more then one admin group in Vbulletin integration
« Reply #1 on: October 14, 2005, 05:16:14 am »

2 lines to change in the bridge file

Code: [Select]
$USER_DATA['mgroup'] == VB_ADMIN_GROUP

can be

Code: [Select]
in_array($USER_DATA['mgroup'], array(5,6))

2 places to change.

This is completely untested.
Logged

Mr_Bob

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 3
Re: Allow more then one admin group in Vbulletin integration
« Reply #2 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
Code: [Select]
$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?
Logged
Life, wow...er........

Nibbler

  • Guest
Re: Allow more then one admin group in Vbulletin integration
« Reply #3 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.
Logged

Mr_Bob

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 3
Re: Allow more then one admin group in Vbulletin integration
« Reply #4 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.
Logged
Life, wow...er........
Pages: [1]   Go Up
 

Page created in 0.015 seconds with 16 queries.