The Arcive of vBulletin Modifications Site. |
|
Password Forums all Users (vb3.5) Details »»
|
|||||||||||||||||||||||||
/* -----------------9/29/2005 4:37PM-----------------
*** Password Forums all Users (vBulletin 3.5) ****** ** ** ****** * Zachariah - http://www.gzhq.net ****************** ************************************ All users no matter the usergroup must enter a password to a forum that has a password. ** Default Install of VB allows: Administrator = god, can see all do all - passwords on forum are useless. Super Mod = forum god, do all go every were - password on forums (site wide) are useless. Forum Mod = can go in and out with no road blocks on the forums they mod. ** What this will do: With this bit of code a password must be entered from all groups and users that wish to enter a forum with a password. It fits my needs. I host forums for on-line gammers that wish to have a password protected forum. I have Admins and Super Mods (multi-clan mixture) that help run the forums. I don't need wondering eyes in places that they do not belong. I have an issue telling someone that they have a privet area that requires a password, and it not be true. IMO, if you place a PW on something, you need a PW to access it. 1 File Edit --------------------------------------------------*/ When setting passwords on sub-forums: Apply This Password to Child Forums [x] yes []no (Only if changed) Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
handy and simple.
|
|
#3
|
||||
|
||||
|
No hook for this?
|
|
#4
|
||||
|
||||
|
Quote:
BTW: good to see you sir. |
|
#5
|
||||
|
||||
|
And great to see you, too. sir. PM me when you get a chance.
|
|
#6
|
|||
|
|||
|
Well .... some things are so easy !!!
Thanks (installs) |
|
#7
|
|||
|
|||
|
However, this code is not in the functions.php
But 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)) |
|
#8
|
||||
|
||||
|
Quote:
Code:
function verify_forum_password($forumid, $password, $showerror = true)
{
global $vbulletin, $stylevar;
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;
}
|
|
#9
|
|||
|
|||
|
found it, but as far as I can see in my forum I can still enter the forum without being asked for a password ?!?
|
|
#10
|
|||
|
|||
|
Ok, I just tested it with another forum, it seems that this modification does only affects main forums and not subforums ..
|
![]() |
|
|