Password Protect Boards

Started by Thantos, December 16, 2005, 01:21:36 AM

Previous topic - Next topic

~Kikoish~

Quote from: pintas on August 20, 2007, 04:22:47 PM
Well, i downloaded the 0.2 version. Wich version did you use? It works fine with me. All pretty and such, but any user can access the posts simply by clicking the options to view recent posts. So, or didn't install it correctly in my theme or there's a major security flaw in this mod.
I used the 0.2 version as well. I don't know what I'm doing wrong.

pintas

Download it here:
http://mkportal.thevnchannel.com/passwdBoard_0-2.zip [nofollow]

In Themes/[YOUR THEME]/languages/Modifications.english.php

add this to the end of the file:

$txt['passwdBoard1'] = "Password for this board";
$txt['passwdBoard2'] = "Leave blank for no password";
$txt['passwdBoard3'] = "Please enter the board password: ";
$txt['passwdBoard4'] = "Enter Board";
$txt['passwdBoard5'] = "This board is password protected and you have not provided the correct password during this session";
$txt['passwdBoard6'] = "Board Unlocked";


In Themes/[YOUR THEME]/BoardIndex.template.php

find:

// Show some basic information about the number of posts, etc.

add before:


if ( !$context['user']['is_admin'] && !$context['user']['is_mod'] && !isset($board['moderators'][$context['user']['id']]) && $board['passwd'] && !in_array($board['id'], $_SESSION['board_access']) )
echo '<br/>
', $txt['passwdBoard3'], '
<form style="display:inline" action="', $board['href'], '" method="post">
<input type="password" name="passwd" />
<input type="submit" value="', $txt['passwdBoard4'], '" />
</form>';
else if ( $board['passwd'] )
echo '<img src="', $settings['images_url'], '/icons/quick_lock.gif" style="vertical-align:bottom" title="', $txt['passwdBoard6'], '" />';


Install the mod, and you should have the option to pasword protect boards.

However, don't forget to check that error i mentioned.

Altair

This mod needs a TOTAL UPDATE, I mean it should be able to do the following:

- Protect Child Board
- Work with current version of SMF

I know you can use member groups and such but that is just a HASSLE. So what if passwords are leaked THEY CAN BE CHANGED :D WOW.

Some ppl would LOVE this ability.

Jade Elizabeth

is this going to be made available for 1.1.3?
can we make mods non exempt so that only admin can access the boards without a password?
do the topics show up in the statistics and the recent posts??
Once proud Documentation Writer and Help Squad Leader | Check out my new adult coloring career: Color With Jade/Patreon.

kamili34


allumius

Please Thantos update to smf 1.1.3  :'(

Jade Elizabeth

i agree with these crying people ;)
Once proud Documentation Writer and Help Squad Leader | Check out my new adult coloring career: Color With Jade/Patreon.

allumius


babjusi

An update of this mod is made by Dragoon, but I think it is still waiting approval

kamili34

So when will be finish compatible version with smf 1.1.3

babjusi

Quote from: kamili34 on September 20, 2007, 01:32:11 PM
So when will be finish compatible version with smf 1.1.3

It depends when it will get approved

Dragooon



LunaGirl

Will the 1.1.3 version work in SMF 1.1.4?

TrueSatan

Please see http://custom.simplemachines.org/mods/index.php?mod=922 That is the latest version of this mod and it has its own support topic on this board.

Advertisement: