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


All times are GMT. The time now is 10:02 AM.

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.01172 seconds
  • Memory Usage 1,738KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete