View Full Version : Password Forums all Users
Zachariah
01-07-2004, 10:00 PM
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.
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.php?do=view&bugid=1321 for Template fix.
MindTrix
01-08-2004, 04:43 AM
But vB3 has password protected forums :s Care to explain some more mate, or put me straight? Thanks
Boofo
01-08-2004, 08:52 AM
I'm sorry, I donm't agree with you on this. I like the ideas of not having to enter a password every time I go into a protected forum on my site. Although, I might like to have it be able to be turned off for the SuperMods if I want to. ;)
Oblivion Knight
01-08-2004, 08:57 AM
In that case Boofo, I think you'd change it to:
if (!$password OR ($permissions['adminpermissions'] & CANCONTROLPANEL))
Boofo
01-08-2004, 09:13 AM
Thank you, sir. ;)
I think they should make it an option to turn it off for the SuperMods.
Oblivion Knight
01-08-2004, 09:23 AM
Thank you, sir. ;)
I think they should make it an option to turn it off for the SuperMods.
No problem.! :D
That gives me an idea for a nice little mod to work on when I upgrade to vB3 myself, unless of course someone beats me to it.. :p
Boofo
01-08-2004, 09:32 AM
I'll be your beta tester, lust like ol' times. ;)
I've got a couple of ideas for you, if you are interested. If so, log onto my board and make an account and I will fill you in. ;)
Zachariah
01-08-2004, 02:13 PM
I'm sorry, I donm't agree with you on this. I like the ideas of not having to enter a password every time I go into a protected forum on my site. Although, I might like to have it be able to be turned off for the SuperMods if I want to. ;)
I understand your outlook. (as an admin you want to take controle of your forums) It fits my needs. I host some forums for game clans that wish to have a PW 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.
Note: I also 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.
* Zachariah shrugs
Boofo
01-08-2004, 02:32 PM
I understand your outlook. (as an admin you want to take controle of your forums) It fits my needs. I host some forums for game clans that wish to have a PW 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.
Note: I also have an issue telling someone that they have a priv area that requiers a password, and it not be true. IMO, if you place a PW on something, you need a PW to access it.
* HarryButt shrugs
True, by all rights, I really should have to enter a password every time I enter. But I go in and out of that forum too much to be bogged down with having to type on the keyboard every time I need to go in there for just a second or two. And besides, I am the only Admin on my site and will ALWAYS be the only Admin. That's what they gave us the Super Moderator group for. ;)
Zachery
01-09-2004, 07:25 PM
True, by all rights, I really should have to enter a password every time I enter. But I go in and out of that forum too much to be bogged down with having to type on the keyboard every time I need to go in there for just a second or two. And besides, I am the only Admin on my site and will ALWAYS be the only Admin. That's what they gave us the Super Moderator group for. ;)
and respectlivy admin permissions now ;D
*arie
01-19-2004, 08:37 AM
good one. :D
Zachariah
03-21-2004, 12:57 PM
This works on VB3 Gold - no problems.
Vb-Hispano
03-25-2004, 08:16 PM
thanks is lol
prcast
04-09-2004, 01:49 PM
thanks is lol
is there a way to set up in the forum permission to limit what groups don't need to the password
dookie
07-10-2004, 04:01 AM
Worked @ 3.0.1 but not @ 3.0.3 :(
When I enter a protected forum and reenter it a day later I do not have to type the password again. Is it stored in the cookie?
gmtalk
07-12-2004, 10:08 PM
Aye this is not working in 3.0.2 or 3.0.3 now.
gmtalk
08-01-2004, 03:19 AM
any updates to this? Noticed it died in 302 and 303 :( I have rehacked after upgrade and its not working.
I really need this for vB 3.0.3. This is because IF an admin or supermod accidently don't logout on a public computer, noone should be able to view our secret rooms.. Someone please help me!
Zachariah
09-03-2004, 10:09 PM
I'll see what I can do. I have not updated my VB from 3.01 yet - been busy. I'll install a test ver of 3.03 on a local test server. (it will take forever to update my current forums.)
butty
10-07-2004, 01:27 AM
thanks a lot for this mate it is just what i was lookin for :D
Zachariah
11-04-2004, 05:48 PM
This works for 3.03
GatorLCA
02-02-2005, 02:24 PM
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
Zachariah
02-24-2005, 01:20 PM
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. :rolleyes:
In that case Boofo, I think you'd change it to:
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.
Zachariah
03-31-2005, 10:29 PM
:tired: busy, sory man! ... Ill take a look @ some updates :nervous:
Zachariah
04-04-2005, 02:11 PM
This hack works on 3.0.7
Titus
06-16-2005, 09:33 PM
Works like a charm on my board; exactly what I needed. Thanks man!
bigcurt
06-18-2005, 11:03 AM
Very Nice man
/me installs..then calls u to help lol
kylek
12-21-2008, 06:46 PM
Works fine on 3.8.0 RC2!
tigrattack
02-06-2009, 06:47 PM
Nice work!!! Thanks
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.