Log in

View Full Version : Something tiny: Password protect your forums from Mods + Supermods too!


CJPC
07-01-2004, 10:00 PM
By default, when a forum is password protected, mods and supermods can still access with out a password, so last nite i fixed it (looked around, couldnt find anything similiar!)

Find (in functions.php)

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


Replace with (in functions.php)

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


Pretty much forces mods + supermods to throw the password in, and not have it wide open by default!

Umm, admins can still access it w/o a pass (if you want, i can, or anyone really, change it so admins must enter the pass too!)

Remember, backup all your data etc... im not responsible for anything (hopefully noone rlsd this before, i couldnt find it!)

hpwilhelm
07-02-2004, 05:48 PM
Thanks! I've been pondering how to make it so! :)

Andreas
07-02-2004, 06:03 PM
Hmm ... does this make sense?

Why should ppl you trust (eg. you give them mod-power over that forum) be required to enter a password?

CJPC
07-02-2004, 06:05 PM
Heh, they should be trusted!, but in a case when your trying to find a leak, or to even have a more private forum (mods that are IN, and those that arent) it helps!

Edit: Also safer for sensitive info, just incase someone hacks a moderators/supermods password, they will still need the seperate forum pass

Andreas
07-02-2004, 06:11 PM
> Heh, they should be trusted!, but in a case when your trying to find a leak
Hmm ... so if you try to find a "leak" and give the password only to a few ppl, what do you gain?
Either the untrustworthy person belongs to the group or it doesn't.

> or to even have a more private forum (mods that are IN, and those that arent) it helps!
This could be easily done with access-masks or additional usergroups as well ...

> Also safer for sensitive info, just incase someone hacks a moderators/supermods password
OK, that does make sense :)

CJPC
07-02-2004, 06:15 PM
>

This could be easily done with access-masks or additional usergroups as well ...




Yeah, but we really dont wanna have to change the masks and additional groups every time we want to give access, easier to give a pass!

Merjawy
07-02-2004, 09:35 PM
great mod... needed indeed

yes sometimes you need a break even hidden forums they find you in :)

I was in a hidden forum once and this mod located me there and I found him right with me :)

I test things and I want to see my test quick rather than looking to see 10 replys and its only a test.. closing the thread doesn't help much either

so this hack is a must..


thnx

007
07-02-2004, 09:50 PM
You can do this through access masks too. Just select who can and cannot view the forum.

CJPC
07-02-2004, 09:51 PM
Thx, and yes im aware of that , but it means changing user permissions /groups, and i do not want to move users to a diff group when they need to access, or enable them to view the forum!

BarHopper
07-03-2004, 09:16 PM
Hmm ... does this make sense?

Why should ppl you trust (eg. you give them mod-power over that forum) be required to enter a password?

Could be for a site staff forum or something? Wwhere forum staff may not be welcomed.

Tim Wheatley
07-06-2004, 05:48 PM
I use these. I have mods of a gaming forum, who are not allowed inside the beta testing forum of that game.

Problem is, I upgraded to 3.0.3 and it does not work anymore. Can anyone tell me what code changed between 3.0.1 and 3.0.3 to stop it?

Tim Wheatley
07-06-2004, 06:41 PM
Nevermind, problem my end!

Skyline_GT
07-07-2004, 04:20 AM
Heh, they should be trusted!, but in a case when your trying to find a leak, or to even have a more private forum (mods that are IN, and those that arent) it helps!

Edit: Also safer for sensitive info, just incase someone hacks a moderators/supermods password, they will still need the seperate forum pass
Well I think this may be userful if their account has been hacked?
If the protected forum has a password, then it is just a double security.
Even they hacked into mod, or super mod account, then they still need another password in order to have access to that forum.

Zachariah
07-09-2004, 01:02 PM
OFN?
https://vborg.vbsupport.ru/showthread.php?t=59878

Post 8 is my reason :)