Back to vBulletin 4.x Add-ons

Allow other usergrups to access forum when disabled...
Mod Version: 1.00, by liamwli

vB Version: 4.x.x Rating: (2 votes - 5.00 average) Installs: 11
Released: 02 Sep 2012 Last Update: Never Downloads: 26
Not Supported Code Changes Additional Files  

This hack will allow you to choose extra usergroups to access the forums when they have been disabled.

This could be useful if, say you wanted to let Super Moderators access when disabled, or maybe when you first make the forum, a small group of testers...

I don't know if this will be used, but it could come in useful

THIS REQUIRES CODE CHANGES!!

Due to the lack of a hook at the location I need, you will have to edit the code of the file:

Code:
/includes/class_bootstrap.php
BACKUP THAT FILE FIRST!!

Find the following line:

Code:
// check that board is active - if not admin, then display error
Then find the first { symbol.

Delete all the code until you reach the lines that read:

Code:
// #############################################################################
		// password expiry system
Make sure you keep those lines and the first {!!

Replace it with this:

Code:
// ############################################################
// ################## CODE MODIFICATIONS ######################
// ############################################################
require_once(dirname(__FILE__).'/gaccess.php');
}
Once that is done, save the file....

Now, download the zip file below, and upload the file 'gaccess.php' to the /includes directory.

Once that is done, import the XML file as a product.

You can then configure the usergroups you want to have access in: Settings --> Options --> Turn your vbulletin on and off --> The new option at the bottom

LIKE I SAID, MAKE SURE YOU BACKUP THAT FILE BEFORE EDITING!!

Any issues, PM me or reply to this thread

Download

File Type: %1$s liamwli-aoutacwd.zip (1.9 KB, 30 downloads)

Similar Mods

Miscellaneous Hacks Usergroups Access to Disabled Forum vBulletin 4.x Add-ons

vblts.ru supports vBulletin®, 2022-2024