Version: 1.0.0, by calorie
Developer Last Online: Nov 2023
Version: 3.5.3
Rating:
Released: 02-01-2006
Last Update: 02-01-2006
Installs: 7
Uses Plugins
No support by the author.
This mod allows you to block access to the following vB PHP files by specifying what user IDs to block. This works on a per file basis, so you can have different userIDs for different files. You can also block userID 0 to prevent guests or bots from accessing any of the files. No screenshot is necessary, as a blocked user will see the 'you do not have permission to access this page' notice instead of the file output. See post6 for how to add extension files. To install, go to the ACP -> Manage Products -> Add/Import Product, and then go to the ACP -> vBulletin Options.
// in case you block yourself from login, why would you do that, :wink:
// place this in the vB config to completely disable everything
// and then go log in, and then comment this from the vB config
define('DISABLE_HOOKS', true);
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
And the extension prints out a text page, go stick this in vB config:
Code:
// change 123.123.123.123 to your IP address
if ($_SERVER['REMOTE_ADDR'] == '123.123.123.123')
{
$config['Misc']['debug'] = true;
}
Then go to vB Options -> Block File Access Settings -> Add Setting:
Code:
Varname: bfabu_uniquename_uids
Setting Group: Block File Access Settings
Product: Block File Access
Title: Block 'uniquename' Usage
Description: Enter the user IDs to block from using the uniquename.php file. Separate each user ID with a space. Example: 8 16 24
Option Code: leave it blank
Data Validation Type: Free
Default: leave it blank
Display Order: leave as-is
vBulletin Default: Yes
And then remove this from vB config:
Code:
// change 123.123.123.123 to your IP address
if ($_SERVER['REMOTE_ADDR'] == '123.123.123.123')
{
$config['Misc']['debug'] = true;
}
And the extension prints out a text page, go stick this in vB config:
Code:
// change 123.123.123.123 to your IP address
if ($_SERVER['REMOTE_ADDR'] == '123.123.123.123')
{
$config['Misc']['debug'] = true;
}
Then go to vB Options -> Block File Access Settings -> Add Setting:
Code:
Varname: bfabu_uniquename_uids
Setting Group: Block File Access Settings
Product: Block File Access
Title: Block 'uniquename' Usage
Description: Enter the user IDs to block from using the uniquename.php file. Separate each user ID with a space. Example: 8 16 24
Option Code: leave it blank
Data Validation Type: Free
Default: leave it blank
Display Order: leave as-is
vBulletin Default: Yes
And then remove this from vB config:
Code:
// change 123.123.123.123 to your IP address
if ($_SERVER['REMOTE_ADDR'] == '123.123.123.123')
{
$config['Misc']['debug'] = true;
}
if (in_array($vbulletin->userinfo['userid'], $bfabu_user_ids_array))
And replace with the following:
Code:
if (in_array($vbulletin->userinfo['usergroupid'], $bfabu_user_ids_array))
Or, for both primary and secondary usergroups, replace with the following:
Code:
if (in_array($vbulletin->userinfo['usergroupid'], $bfabu_user_ids_array) OR !empty(array_intersect($bfabu_user_ids_array, explode(",", str_replace(" ", "", $vbulletin->userinfo['membergroupids'])))))