![]() |
Block access to vB PHP files by user ID
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.
Code:
ajax.php announcement.php attachment.php calendar.php Code:
// in case you block yourself from login, why would you do that, :wink: |
Good! :)
is it possible to do with Extension Modifications?? |
I like this idea...Installed
|
I like this mod! :)
|
That's a rather clever idea.
|
If the extension has both of these, where global is the forum root global:
Code:
define('THIS_SCRIPT', 'uniquename'); Code:
// change 123.123.123.123 to your IP address Code:
Varname: bfabu_uniquename_uids Code:
// change 123.123.123.123 to your IP address |
Nice, been waiting for this, great plugin !!
*installs* |
Quote:
|
is it possible to with usergroup instead of userid?
|
Untested, but for primary usergroups only, find:
Code:
if (in_array($vbulletin->userinfo['userid'], $bfabu_user_ids_array)) Code:
if (in_array($vbulletin->userinfo['usergroupid'], $bfabu_user_ids_array)) 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']))))) |
All times are GMT. The time now is 01:06 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|