Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Password Forums all Users Details »»
Password Forums all Users
Version: 1.00, by Zachariah Zachariah is offline
Developer Last Online: Jan 2020 Show Printable Version Email this Page

Version: 3.0.3 Rating:
Released: 01-07-2004 Last Update: Never Installs: 12
 
No support by the author.

Works on VB3 Beta5 - VB 3.7++

Credit:
Many users and DEV members

Features:
All users must enter a password to a forum that has a password.


Story:
The default install of the forums works on a group access.

Admin = god, can see all do all - no PW on priv areas.
Super Mod = Forum god, do all go every were- no PW on priv areas.


With this bit of code a PW must be entered from all groups and users that wish to enter a forum with a password.


Code:
Open:
includes/functions.php


Search:

if (!$password OR ($permissions['adminpermissions'] & CANCONTROLPANEL) OR ($permissions['adminpermissions'] & ISMODERATOR) OR can_moderate($forumid))


Change to: 

if (!$password)



Re upload
Note:
3.0.0 Gamma users goto http://www.vbulletin.com/forum/bugs....iew&bugid=1321 for Template fix.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 11-04-2004, 05:48 PM
Zachariah's Avatar
Zachariah Zachariah is offline
 
Join Date: Feb 2002
Location: Canoga Park, CA
Posts: 2,125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This works for 3.03
Reply With Quote
  #23  
Old 02-02-2005, 02:24 PM
GatorLCA GatorLCA is offline
 
Join Date: Jul 2004
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It works but only after you clear your cookies, or log-out. I think what some people are saying and/or want with 3.0.3 (including myself) is even if you hit the back button and want in the password protected forum that you have to re-enter the password, but it does not do this with 3.0.3. Only after you log-out and log-in again does it ask not everytime you want to access it.

I don't want my users to have to log-in everytime, but so far this is working better than the standard way.

Thanks
Reply With Quote
  #24  
Old 02-24-2005, 01:20 PM
Zachariah's Avatar
Zachariah Zachariah is offline
 
Join Date: Feb 2002
Location: Canoga Park, CA
Posts: 2,125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by GatorLCA
It works but only after you clear your cookies, or log-out. I think what some people are saying and/or want with 3.0.3 (including myself) is even if you hit the back button and want in the password protected forum that you have to re-enter the password, but it does not do this with 3.0.3. Only after you log-out and log-in again does it ask not everytime you want to access it.

I don't want my users to have to log-in everytime, but so far this is working better than the standard way.

Thanks
I think that is a cookie session issue.

Follow me if you will, your session for X amount of time on the site counts as a "visit". I think VB by default is 15 min. My cookie session on my site is set @ 900sec. -- 900 / 60 = 15min.

I will look around to see if it is possible to code a custom cookie setting for PW forums. Perhaps it is an "if, then" statement <if> user clicks a different forum <then>logout of PW forum.
Reply With Quote
  #25  
Old 03-17-2005, 01:45 PM
YLP1 YLP1 is offline
 
Join Date: Aug 2004
Posts: 417
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does this work in 3.0.7?
Reply With Quote
  #26  
Old 03-20-2005, 09:08 AM
YLP1 YLP1 is offline
 
Join Date: Aug 2004
Posts: 417
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Oblivion Knight
In that case Boofo, I think you'd change it to:

Code:
if (!$password OR ($permissions['adminpermissions'] & CANCONTROLPANEL))
I tried this code but it it locked out my SuperMods.....they couldn't use the password assigned kept giving them enter password or cookies must be enabled.

Which both are.
Reply With Quote
  #27  
Old 03-31-2005, 10:29 PM
Zachariah's Avatar
Zachariah Zachariah is offline
 
Join Date: Feb 2002
Location: Canoga Park, CA
Posts: 2,125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

:tired: busy, sory man! ... Ill take a look @ some updates :nervous:
Reply With Quote
  #28  
Old 04-04-2005, 02:11 PM
Zachariah's Avatar
Zachariah Zachariah is offline
 
Join Date: Feb 2002
Location: Canoga Park, CA
Posts: 2,125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This hack works on 3.0.7
Reply With Quote
  #29  
Old 06-16-2005, 09:33 PM
Titus Titus is offline
 
Join Date: Apr 2004
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works like a charm on my board; exactly what I needed. Thanks man!
Reply With Quote
  #30  
Old 06-18-2005, 11:03 AM
bigcurt's Avatar
bigcurt bigcurt is offline
 
Join Date: Nov 2004
Location: KierDarby.php
Posts: 1,009
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very Nice man

/me installs..then calls u to help lol
Reply With Quote
  #31  
Old 12-21-2008, 06:46 PM
kylek kylek is offline
 
Join Date: Oct 2003
Location: British Columbia, Canada
Posts: 798
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works fine on 3.8.0 RC2!
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:59 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04816 seconds
  • Memory Usage 2,303KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete