PDA

View Full Version : Password Forums all Users (vb3.5)


Zachariah
08-11-2005, 10:00 PM
/* -----------------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)

Ghostsuit
08-12-2005, 12:49 AM
handy and simple.

Boofo
08-12-2005, 01:15 AM
No hook for this? ;)

Zachariah
08-12-2005, 05:21 AM
No hook for this? ;)

It is so very simple ... I realy did not look if that could be done lol. :nervous: :speechless:

BTW: good to see you sir.

Boofo
08-12-2005, 06:27 AM
And great to see you, too. sir. PM me when you get a chance. ;)

utw-Mephisto
08-14-2005, 12:43 AM
Well .... some things are so easy !!!

Thanks (installs)

utw-Mephisto
08-14-2005, 12:58 AM
However, this code is not in the functions.php

But


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))

Zachariah
08-17-2005, 01:06 AM
However, this code is not in the functions.php

I beg to differ. This is the entire function. : \includes\functions.php (about line 2970)


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;
}

utw-Mephisto
08-17-2005, 06:37 AM
found it, but as far as I can see in my forum I can still enter the forum without being asked for a password ?!?

utw-Mephisto
08-17-2005, 06:38 AM
Ok, I just tested it with another forum, it seems that this modification does only affects main forums and not subforums ..

Zachariah
08-17-2005, 01:44 PM
Ok, I just tested it with another forum, it seems that this modification does only affects main forums and not subforums ..
I think you need to put a PW per forum. I never tryed PW of the parent and look to see if the child forums are PWed.

Access Options
Apply This Password to Child Forums
(Only if changed) Yes No

Can Have Password
(Setting this to no will prevent a password from being inherited and from being set by moderators)
(Note: You may still set a password manually)

Forum
- Sub Forum

If "Forum" has a PW and "Apply This Password to Child Forums" is set to "yes" the Sub Forum will carry the same PW. Your cookie will log you into both forums w/ 1 log-in.

If you have set different passwords per forum, you will be asked to use log-in to each forum. I just tested it on VB3.5RC2.

utw-Mephisto
08-17-2005, 01:47 PM
I mean the other way around. I can ONLY set the password on a parent but not on a child ...

ctsolutions
09-25-2005, 02:04 AM
Invalid Forum specified. If you followed a valid link, please notify the administrator

vBulletin 3.5 rc3

set on a parent forum, but not work
not even with the default style

ctsolutions

Zachariah
09-25-2005, 04:23 AM
Invalid Forum specified. If you followed a valid link, please notify the administrator

vBulletin 3.5 rc3

set on a parent forum, but not work
not even with the default style


ctsolutions

Ill look @ rc3

Zachariah
09-29-2005, 12:59 PM
Updated Hack

Works with 3.5 Gold.

Zachariah
10-12-2005, 11:28 PM
Ok, I just tested it with another forum, it seems that this modification does only affects main forums and not subforums ..


When setting passwords on sub-forums:

Apply This Password to Child Forums [x] yes []no
(Only if changed)