
09-29-2007, 08:08 AM
|
 |
|
|
Join Date: Jun 2006
Location: Utah
Posts: 4,758
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by JWalker05
Like Shazz said, you can either SuperAdmin them or modify read_pms.php. I too wanted to allow some of my other admins to use this mod, but did not want to SuperAdmin them.
You can easily achieve this by modifying:
PHP Code:
// ########################## SUPERADMIN CHECK ############################
if (!in_array($vbulletin->userinfo['userid'], preg_split('#\s*,\s*#s', $vbulletin->config['SpecialUsers']['superadministrators'], -1, PREG_SPLIT_NO_EMPTY)) ) {
rpm_print_stop_back("You don't have permission to access this page.");
}
to look something like:
PHP Code:
// ########################## SUPERADMIN CHECK ############################
if (!in_array($vbulletin->userinfo['userid'], preg_split('#\s*,\s*#s', $vbulletin->config['SpecialUsers']['pmadministration'], -1, PREG_SPLIT_NO_EMPTY)) ) {
rpm_print_stop_back("You don't have permission to access this page.");
}
NOTE: The only change was " config['SpecialUsers']['superadministrators']" to " config['SpecialUsers']['pmadministration']" in read_pms.php.
After you make that change, add the following to includes/config.php:
PHP Code:
$config['SpecialUsers']['pmadministration'] = '3,5,36';
Replacing the 3,5,36 with the userid's you want to grant access to.
Hopefully that points you in the right direction. 
|
You must have went through some work to do that 
Good deal.
|