The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Closed forum and admins
On my forum I have 7 admins. As you know, when the forum is closed, the only ones who can still browse and even post on the forums just like if these were open are the admins. I want to remove this ability from 2 of my 7 admins so when they log in they will see the same message that every user get: "the forum is closed" and they will not be able to do anything until the forums come back to the open status just like any regular user. Is this possible?
|
#2
|
|||
|
|||
Can you not create a different usergroup for these 2 admins and apply the permissions from there??
|
#3
|
|||
|
|||
I don't believe that there is a specific setting to prevent admins from browsing the forums when closed.
|
#4
|
||||
|
||||
I think you would have to modify the class_bootstrap.php file manually in order to add in the userids for those two admins. Basically, if they have admin permissions and have access to the admincp, then they have access to the forum when it is off.
|
#5
|
|||
|
|||
Can't locate the file class_bootstrap.php on my vB 3.8.7 installation
|
#6
|
||||
|
||||
Ah, I was looking at the vB4 files. Check global.php
|
#7
|
|||
|
|||
Here is the code snippet that controls that:
PHP Code:
PHP Code:
|
#8
|
||||
|
||||
Maybe... (not testing and I'm not sure my parenthesis add up correctly):
if (!($vbulletin->userinfo['permissions']['adminpermissions'] & $vbulletin->bf_ugp_adminpermissions['cancontrolpanel']) AND (!in_array($vbulletin->userinfo['userid'],array(1,2))) I always play with these things on my test site when it comes to conditions, but that's the basic idea. |
#9
|
|||
|
|||
Lynne, just tested your code and not only it didn't work but also made every .php of my forum (i.e. index.php, forumdisplay.php, showthread.php) to result in a blank page
Could you please review the code again? |
#10
|
||||
|
||||
$vbulletin['userid'] should actually be $vbulletin->userinfo['userid'], so that was wrong. (But, you'll still need to check the parenthesis as that will cause issues if they don't add up correctly.)
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|