The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Standard Forum Password System - but admin and mods must use it too!
The standard forum password system seems ok (as in passworded fourms, not user passwords), but it is limited. I want admin and mods to be included in having to input these passwords on passworded forums. How can I go about this? I'm guessing there is a conditional somewhere which just needs a simple tweak.
Any help would be greatly appreciated. Many thanks Mike PS. I searched for this on here, but appears that it has not been done before. Oh - just found this: https://vborg.vbsupport.ru/showthrea...forum+password Not sure if it will work for the latest vBulletin as it is an old post. |
#2
|
|||
|
|||
It works, but the code that needs modifying looks slightly different now. In your functions.php file (found in the 'includes' folder), look for the following code, and either comment it out as shown here in red, or remove it altogether.
Code:
/* if (!$password OR ($vbulletin->userinfo['permissions']['adminpermissions'] & $vbulletin->bf_ugp_adminpermissions['cancontrolpanel']) OR ($vbulletin->userinfo['permissions']['adminpermissions'] & $vbulletin->bf_ugp_adminpermissions['ismoderator']) OR can_moderate($forumid)) { return true; } */ Note that because this is a direct code modification and not a plugin, you will need to repeat this procedure after every upgrade. |
#3
|
||||
|
||||
Cheers for this - I will do this later.
This doesn't work - it asked everyone for a password, even if the forum didn't have one. I'm guessing you need to leave the !$password uncommented. |
#4
|
|||
|
|||
Bumping....
I have tried several different ways to do this and none of it works. I'd like to block all users that have not entered a password for a specific area of the forum, from seeing the content. This includes admins/mods/normal users. When they click on the forum, they should have to enter the password regardless of their user status. Thanks. |
#5
|
|||
|
|||
Bunp
I thought this worked until I checked my other forums and it asked for a password on all |
#6
|
||||
|
||||
<a href="https://vborg.vbsupport.ru/showthread.php?t=125969" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=125969</a>
- should still work for 3.8 |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|