![]() |
Allow specific users to access forums while closed
Hey there,
I would like to make a request for a product that could allow specific users (by their ID) to be allowed access to the forums while those are closed. Thanks, M. |
I doubt such a mod may be made. vB is hard coded to only allow admins access to view a closed forum.
|
Quote:
http://www.vbulletin.com/forum/showt...=1#post1986857 |
"could be" doesn't mean "yes it can be done" :)
Try it out yourself, but there could be some side effects. |
Your lack of knowledge (and then spouting non-facts as if they were facts) still astounds me, Homeworld/Spey.
@MadK If existing code = "if admin{allow access}", then changing it to "if admin OR userid = 1{allow access}" would do exactly what is being asked for. Just a matter of finding someone who can do that for you, may require a file edit though. |
Quote:
As for the file edit, do you have any general idea of which file it could be? I could always try it myself. |
This was done a while back. I don't remember what version it was done for, but I have seen it somewhere.
|
Quote:
|
There was a mod to do this for usergroups, not users. Maybe search the word "usergroup" in "all mods" "titles only"?
|
Quote:
/rant |
Quote:
http://www.vbulletin.com/forum/showt...=1#post1987765 Hoping someone can do it. :) |
But there's no hook before or within the code snippet that could help you.
PHP Code:
|
I don''t have time to make this into a plugin but make these edits manually at the class_bootstrap.php file.
Find this code: PHP Code:
And replace it with: PHP Code:
Find this other code: PHP Code:
And replace it with: PHP Code:
In my example I did it so the supermoderator group with the gid 5 can enter the board while being of line. You can replace the gid, 5, with whatever group you want to allow access to the off line board. If you want to allow multiple groups, then separate their id with commas (,). Hope it helps. I might make a mod out of this later on if I will have some free time. |
the code from @borbole works even on vb 4.2.3, just tested, but the additional usergroup will see the closed board message even if the board is active.
To solve the issue, just edit the board_inactive_warning template from Code:
<div class="forum_disabled">{vb:rawphrase alert_board_off}</div> Code:
<vb:if condition="!$vboptions['bbactive']"> PHP Code:
|
All times are GMT. The time now is 05:23 PM. |
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:
|