vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Password Forums all Users (vb3.5) (https://vborg.vbsupport.ru/showthread.php?t=94123)

Zachariah 08-11-2005 10:00 PM

Password Forums all Users (vb3.5)
 
/* -----------------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

Quote:

Originally Posted by Boofo
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

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

Zachariah 08-17-2005 01:06 AM

Quote:

Originally Posted by utw-Mephisto
However, this code is not in the functions.php

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


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


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

Quote:

Originally Posted by utw-Mephisto
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

Quote:

Originally Posted by ctsolutions
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

Quote:

Originally Posted by utw-Mephisto
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)


All times are GMT. The time now is 07:51 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
  • Page Generation 0.01132 seconds
  • Memory Usage 1,748KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (16)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete