Advertisement:

Author Topic: Password Protect Boards  (Read 95864 times)

Offline ~Kikoish~

  • Semi-Newbie
  • *
  • Posts: 72
  • Gender: Male
  • Newbie
Re: Password Protect Boards
« Reply #180 on: August 20, 2007, 07:18:27 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.

Offline pintas

  • Semi-Newbie
  • *
  • Posts: 14
Re: Password Protect Boards
« Reply #181 on: August 21, 2007, 07:53:44 AM »
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:

Code: [Select]
$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:
 
Code: [Select]
// Show some basic information about the number of posts, etc.
add before:

Code: [Select]
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.

Offline Altair

  • Jr. Member
  • **
  • Posts: 245
Re: Password Protect Boards
« Reply #182 on: August 23, 2007, 02:14:52 AM »
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.

Offline Jade Elizabeth

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 12,647
  • Gender: Female
  • Keep your enemies close and your friends closer ;)
    • jadetrainor on LinkedIn
    • @alundra on Twitter
    • Jades-World
Re: Password Protect Boards
« Reply #183 on: September 09, 2007, 03:00:42 PM »
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.

Offline kamili34

  • Jr. Member
  • **
  • Posts: 232
  • Gender: Male
  • noob
    • pilarki.org
Re: Password Protect Boards
« Reply #184 on: September 10, 2007, 08:26:56 AM »
Doesn't work on smf 1.1.3  :'( :'(

Offline allumius

  • Jr. Member
  • **
  • Posts: 295
Re: Password Protect Boards
« Reply #185 on: September 11, 2007, 08:35:06 AM »
Please Thantos update to smf 1.1.3  :'(

Offline Jade Elizabeth

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 12,647
  • Gender: Female
  • Keep your enemies close and your friends closer ;)
    • jadetrainor on LinkedIn
    • @alundra on Twitter
    • Jades-World
Re: Password Protect Boards
« Reply #186 on: September 11, 2007, 11:12:48 PM »
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.

Offline allumius

  • Jr. Member
  • **
  • Posts: 295
Re: Password Protect Boards
« Reply #187 on: September 20, 2007, 09:40:45 AM »
Please update the mod

babjusi

  • Guest
Re: Password Protect Boards
« Reply #188 on: September 20, 2007, 10:05:30 AM »
An update of this mod is made by Dragoon, but I think it is still waiting approval

Offline kamili34

  • Jr. Member
  • **
  • Posts: 232
  • Gender: Male
  • noob
    • pilarki.org
Re: Password Protect Boards
« Reply #189 on: September 20, 2007, 01:32:11 PM »
So when will be finish compatible version with smf 1.1.3

babjusi

  • Guest
Re: Password Protect Boards
« Reply #190 on: September 20, 2007, 01:37:27 PM »
So when will be finish compatible version with smf 1.1.3

It depends when it will get approved

Offline Dragooon

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 6,738
  • Gender: Male
  • I'm batman
    • ShitizGarg on Facebook
    • Dragooon on GitHub
    • dragooon on LinkedIn
    • SMF-Media
Re: Password Protect Boards
« Reply #191 on: September 21, 2007, 11:38:02 AM »

babjusi

  • Guest
Re: Password Protect Boards
« Reply #192 on: September 21, 2007, 11:39:46 AM »

Offline LunaGirl

  • Semi-Newbie
  • *
  • Posts: 19
Re: Password Protect Boards
« Reply #193 on: September 30, 2007, 02:18:53 AM »
Will the 1.1.3 version work in SMF 1.1.4?

Offline TrueSatan

  • SMF Hero
  • ******
  • Posts: 1,783
Re: Password Protect Boards
« Reply #194 on: September 30, 2007, 10:52:43 AM »
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.