Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Thantos on December 16, 2005, 01:21:36 AM

Title: Password Protect Boards
Post by: Thantos on December 16, 2005, 01:21:36 AM
Link to Mod (http://mods.simplemachines.org/index.php?mod=237)

This modification allows you to set a password on a per board basis.  Users will be required to enter the password on the board index prior to being able to view any of that board's content.

Administrators and Moderators on that board (global moderators included) are exempt from having to enter the password.

This modification does not protect child boards.


This modification was tested using SMF 1.1 RC2.  It may or may not work with RC1.

SMF 1.0.5 is up.  Make sure you grab the correct file.
Title: Re: Password Protect Boards
Post by: Anakin_holland on December 16, 2005, 08:57:25 AM
Thnx!

Haven't had the need for it yet, as the permission-based is sufficient ATM. But it's in my favourites!!
Title: Re: Password Protect Boards
Post by: Prasad007 on December 16, 2005, 08:58:56 AM
This is a nice mod! :)
But i wudnt recommend it
because passwords can be easily leaked
making use of usergroups for limited access is a better way! :)
Gr8 mod tho! thnx! :)
Title: Re: Password Protect Boards
Post by: Dresdan on December 16, 2005, 09:08:03 AM
Seems I'm stuck in the middle with rc1. :'(
Title: Re: Password Protect Boards
Post by: squirrelof09 on December 16, 2005, 07:31:38 PM
Sadly, when I click 'Apply Mod' it shows me this..

(http://www.spike.http.co.il/uploads/up/A000611.png), also  got SMF 1.0.5
Title: Re: Password Protect Boards
Post by: Thantos on December 16, 2005, 07:37:18 PM
What version of SMF and which file did you download?
Title: Re: Password Protect Boards
Post by: squirrelof09 on December 16, 2005, 07:39:13 PM
SMF 1.0.5

passwdBoard_0-1.zip
Title: Re: Password Protect Boards
Post by: Thantos on December 16, 2005, 07:45:52 PM
You got the wrong version of the mod.  Use
passwdBoard_0-1_SMF105.zip
Title: Re: Password Protect Boards
Post by: squirrelof09 on December 16, 2005, 07:46:36 PM
Ok, thanks very much/.
Title: Re: Password Protect Boards
Post by: ExistenZ on December 17, 2005, 04:40:54 PM
THANK YOU SO MUCH! I can kiss you! This is mana from heaven! THANK YOU SO MUCH!
Title: Re: Password Protect Boards
Post by: squirrelof09 on December 17, 2005, 08:57:13 PM
GOt one more question

How come theres lots of items like this in the error log?
(http://www.spike.http.co.il/uploads/up/A000626.png)
Title: Re: Password Protect Boards
Post by: Thantos on December 17, 2005, 09:04:43 PM
Like what?
Title: Re: Password Protect Boards
Post by: squirrelof09 on December 17, 2005, 09:06:23 PM
like the pic above.
Title: Re: Password Protect Boards
Post by: Thantos on December 17, 2005, 09:36:46 PM
Ok I found it, go ahead and delete the line

'passwd' => $row['passwd'],

near 1094.

It was due to the package manager finding two lines like the one I told it to search for.  I'll find a better search to use.
Title: Re: Password Protect Boards
Post by: Thantos on December 18, 2005, 08:13:57 PM
I have corrected the problem in 1.0.5 (Doesn't appear the problem was in the SMF 1.1 version).
There is a new package up with the change and its upgradable.
Title: Re: Password Protect Boards
Post by: THE SAGE on December 18, 2005, 08:23:06 PM
Mike please help.

I downloaded it from you page but then how do I apply it?
Title: Re: Password Protect Boards
Post by: Thantos on December 18, 2005, 08:27:31 PM
Admin -> Package Manager -> [ Download New Packages ] -> Package to Upload: -> Choose -> Upload
Apply Mod
[ Proceed ]
Title: Re: Password Protect Boards
Post by: THE SAGE on December 18, 2005, 08:31:28 PM
Mike, Thanx.

I did that...But now I want to make one of my boards/sections password protected but I dont see the option.

Where would I find it?
Title: Re: Password Protect Boards
Post by: THE SAGE on December 18, 2005, 08:32:25 PM
NEVER MIND!!

Found it!!

Your the best!!!
Title: Re: Password Protect Boards
Post by: ExistenZ on December 19, 2005, 02:49:59 AM
the only thing that i dont REALLY like about the mod, but I can live with it, is the fact that the password boxes are on the index page, and I have like 6 password boxes, and it is really starting to look cluttered.
Title: Re: Password Protect Boards
Post by: squirrelof09 on December 19, 2005, 10:28:43 PM
THe recent posts seem to get past that lil' password thingy..
Title: Re: Password Protect Boards
Post by: Thantos on December 20, 2005, 01:51:52 AM
Hmmm good point.  Maybe the next version.
Title: Re: Password Protect Boards
Post by: tuga on December 20, 2005, 06:05:27 AM
hello i use the passwdBoard_0-1.zip for RC1, but now ask me for upgrade, says failed, how can upgrade?

other thing when a board is protect and a member put into a pass he dont need do again anymore why? It sould be everytime he login or after few minutes, like admin password
Title: Re: Password Protect Boards
Post by: ExistenZ on December 20, 2005, 08:10:41 AM
I also get that now. it only wants to upgrade Load.php
Title: Re: Password Protect Boards
Post by: Thantos on December 20, 2005, 08:14:19 AM
The user only needs to enter the password once per session.  I figured that would be the least obstrusive way while maintaining some level of security.

As far as the upgrade part is concerned, that is for 1.0.5 ONLY.
Title: Re: Password Protect Boards
Post by: tuga on December 20, 2005, 12:31:37 PM
Quote from: MikeMill on December 20, 2005, 08:14:19 AM
The user only needs to enter the password once per session.  I figured that would be the least obstrusive way while maintaining some level of security.

As far as the upgrade part is concerned, that is for 1.0.5 ONLY.

thanks when you thing is avaible for RC1 the new upgrade?
Title: Re: Password Protect Boards
Post by: tuga on December 20, 2005, 12:35:11 PM
i forgot, thw img quick look only is avaible when i put the default therme, im using helios, you know how i fixed that? for see the quick_look
Title: Re: Password Protect Boards
Post by: ViV on December 28, 2005, 10:13:36 AM
I have installed the mod and enabled password on two boards in Manage Boards section. But when I enter the password that we have kept for these two boards on the Board Index, it gives an error saying incorrect password. When we try entering it again on the error page, it doesn't accept it. We have tried different browsers- I.E., Opera, Firefox, Netscape... but no help. Any help please.
Title: Re: Password Protect Boards
Post by: ASi ve MAVi on December 28, 2005, 01:15:22 PM
my dear frıend,ı have opened this mod download my web page.ıs ıt ok for you?

http://www.guzelforum.com/forum/index.php/board,70.0.html

sorry I don't english speak too
Title: Re: Password Protect Boards
Post by: Thantos on December 28, 2005, 01:55:44 PM
You may NOT redistribute this modification in any way, shape, or form.  This includes putting it on your board where others can download it.
Title: Re: Password Protect Boards
Post by: ASi ve MAVi on December 28, 2005, 03:56:44 PM
ı'm this mod to turn Turkish languages chance.

and I'm opened to download my web page

and

I give yours link my web page

ok ?
Title: Re: Password Protect Boards
Post by: Thantos on December 28, 2005, 04:00:16 PM
If you want to translate a turkish language file for those mods I have no problem with that.  However you must only distribute the language file itself.
Title: Re: Password Protect Boards
Post by: ASi ve MAVi on December 28, 2005, 04:58:17 PM
i have to do some codes in turkish
Title: Re: Password Protect Boards
Post by: ictus on December 30, 2005, 09:22:13 AM
can this code be addapted to password protect topics, and yes I have a need.

Sorry I PMed you over this Mike, the thread I was reading was locked, I just found this one, thanks :)
Title: Re: Password Protect Boards
Post by: Thantos on December 30, 2005, 10:36:50 AM
You could use the same idea.  Add a password column to smf_topics and then on the post page give an option to password the topic.  Then change Post.php and Subs-Post.php to insert the password when its posted.  Then change Load.php to look for the password when you enter a topic.
Title: Re: Password Protect Boards
Post by: ViV on December 30, 2005, 10:46:20 AM
Quote from: ViV on December 28, 2005, 10:13:36 AM
I have installed the mod and enabled password on two boards in Manage Boards section. But when I enter the password that we have kept for these two boards on the Board Index, it gives an error saying incorrect password. When we try entering it again on the error page, it doesn't accept it. We have tried different browsers- I.E., Opera, Firefox, Netscape... but no help. Any help please.

No reply :(
Title: Re: Password Protect Boards
Post by: ictus on December 30, 2005, 11:54:46 AM
Quote from: MikeMill on December 30, 2005, 10:36:50 AM
You could use the same idea.  Add a password column to smf_topics and then on the post page give an option to password the topic.  Then change Post.php and Subs-Post.php to insert the password when its posted.  Then change Load.php to look for the password when you enter a topic.

Thanks for the pointer, I'll have to learn some php, but Iguess I should learn some anyway ;)

Might take a bit, but I'll pst the changes back if I can get them to work, thanks..
Title: Re: Password Protect Boards
Post by: Thantos on December 30, 2005, 11:58:07 AM
@ViV, reset the board's password.  It IS case sensentive.  Also do you have any special characters in the board name or password?
Title: Re: Password Protect Boards
Post by: ViV on December 30, 2005, 12:20:57 PM
Bro... i have resetted it so many times... and passwords are nothing but one word in small letters. No use. Even tried uninstalling n re-installing mod... still no use.
Title: Re: Password Protect Boards
Post by: Thantos on December 30, 2005, 12:22:17 PM
If you want you can PM with a link and an account that can manage boards and I'll take a look.
Title: Re: Password Protect Boards
Post by: Bigguy on January 02, 2006, 06:35:27 PM
I`m getting almost the same error:

8: Undefined index: passwd
File: /home/bigguy/public_html/smf/Sources/Load.php
Line: 1079

Will the updated package take care of this error to ???
Title: Re: Password Protect Boards
Post by: wgm on January 02, 2006, 09:48:31 PM
Excellent MOD, works like a charm.

One question though, can Global Mods have same automatic entry as Admins.

Thanks.
Title: Re: Password Protect Boards
Post by: Thantos on January 02, 2006, 10:09:50 PM
All moderators have auto entry.

Bigguy:  Try the fix or upgrade the version.
Title: Re: Password Protect Boards
Post by: wgm on January 02, 2006, 10:27:23 PM
Quote from: MikeMill on January 02, 2006, 10:09:50 PM
All moderators have auto entry.

Not working then, I have a test account and when I make it a GMod it requires I add password to enter protected forum.
Title: Re: Password Protect Boards
Post by: Bigguy on January 03, 2006, 12:06:05 AM
Ok I think I got that one but what is this error:

8: Undefined variable: i
File: /home/bigguy/public_html/smf/Sources/Display.php
Line: 551
Title: Re: Password Protect Boards
Post by: Thantos on January 03, 2006, 12:09:34 AM
That must be a different mod Bigguy as this mod doesn't touch Display.php
Title: Re: Password Protect Boards
Post by: Bigguy on January 03, 2006, 12:22:15 AM
Have any ideas as to what it belongs to ?
Title: Re: Password Protect Boards
Post by: wgm on January 03, 2006, 12:28:46 PM
The Global Mod I have added themselves to be Moderator of the password protected forum in order not to enter a password, still GMod has to enter a password, its not there end as it happens to a test account I give GMod privileges to and try it myself.
Title: Re: Password Protect Boards
Post by: wgm on January 03, 2006, 12:33:28 PM
Quote from: Bigguy on January 03, 2006, 12:22:15 AM
Have any ideas as to what it belongs to ?

Just guessing, may be from the "Hide Board - Permission protect boards" (its a link under password protect boards), could've got that "Hide Board - Permission protect boards" instead.
Title: Re: Password Protect Boards
Post by: Bigguy on January 03, 2006, 12:45:29 PM
I found out it was an error from the arcade mod. I`m looking into this now, thanks.
Title: Re: Password Protect Boards
Post by: teamvtec on January 03, 2006, 05:53:08 PM
Quote from: ViV on December 28, 2005, 10:13:36 AM
I have installed the mod and enabled password on two boards in Manage Boards section. But when I enter the password that we have kept for these two boards on the Board Index, it gives an error saying incorrect password. When we try entering it again on the error page, it doesn't accept it. We have tried different browsers- I.E., Opera, Firefox, Netscape... but no help. Any help please.

I have the same problem, when i enter the password for the board on the error page it does nothing and this goes on forever.
Then when i go to the manage boards/modify board the field for the password is filled with dots, alot more then i typed in as a password so in other words it's creating it's own passwords, reseting has no effect.
Any idea why? http://forum.sirfanaticsholland.com/index.php the board DVD's is protected with password.

Thanks
Title: Re: Password Protect Boards
Post by: Byohki on January 04, 2006, 02:17:57 AM
Same here.. It creates 6 fields in the Board Manager and even if I fill in the right password 12 or 20 times it still doesn't work.. :(
Title: Re: Password Protect Boards
Post by: Thantos on January 04, 2006, 10:00:30 AM
Quote from: Byohki on January 04, 2006, 02:17:57 AM
Same here.. It creates 6 fields in the Board Manager and even if I fill in the right password 12 or 20 times it still doesn't work.. :(
It sounds like you applied the mod 5 times too many then.  Get fresh copies of the affected files and reapply the mod.

For those who are having problems can you all do a test for me?

Open passwdBoard.template.php:
After    echo '
<div>


Add
';
if (isset($_POST['passwd']) )
{
    echo 'Gave password: ', $_POST['passwd'], ' which hashed to <br />' , sha1($GLOBALS['board_info']['name'],$_POST['passwd']) , ' correct hash is <br />', $GLOBALS['board_info']['passwd'], ' but lets make sure its not the fake passwd <br/>', sha1($GLOBALS['board_info']['name'].'#FAKEPASSWORD');
else
  echo 'No password Given';


If the second and third hashs are the same let me know because thats what the problem will be.
Title: Re: Password Protect Boards
Post by: ExistenZ on January 04, 2006, 12:05:34 PM
Does this mod work with RC2?
Title: Re: Password Protect Boards
Post by: Byohki on January 04, 2006, 02:55:12 PM
Quote from: MikeMill on January 04, 2006, 10:00:30 AM
Quote from: Byohki on January 04, 2006, 02:17:57 AM
Same here.. It creates 6 fields in the Board Manager and even if I fill in the right password 12 or 20 times it still doesn't work.. :(
It sounds like you applied the mod 5 times too many then.  Get fresh copies of the affected files and reapply the mod.

For those who are having problems can you all do a test for me?

Open passwdBoard.template.php:
After    echo '
<div>


Add
';
if (isset($_POST['passwd']) )
{
    echo 'Gave password: ', $_POST['passwd'], ' which hashed to <br />' , sha1($GLOBALS['board_info']['name'],$_POST['passwd']) , ' correct hash is <br />', $GLOBALS['board_info']['passwd'], ' but lets make sure its not the fake passwd <br/>', sha1($GLOBALS['board_info']['name'].'#FAKEPASSWORD');
else
  echo 'No password Given';


If the second and third hashs are the same let me know because thats what the problem will be.

Will that solve the problem? If so then I'm more then happy to test it out for ya.. :)
Title: Re: Password Protect Boards
Post by: Thantos on January 04, 2006, 02:57:37 PM
No it won't solve anything, but it might let me know why its not working.  Also don't worry it won't show the actual password just the result of the hashing that is stored.
Title: Re: Password Protect Boards
Post by: teamvtec on January 04, 2006, 05:49:56 PM
Well i tried it and it's still making it's own password ;D
Now what?

Thanks for the help btw
Title: Re: Password Protect Boards
Post by: Thantos on January 04, 2006, 05:52:22 PM
you tell me what the output was from those few lines :)
Title: Re: Password Protect Boards
Post by: teamvtec on January 04, 2006, 05:59:00 PM
Quote from: MikeMill on January 04, 2006, 05:52:22 PM
you tell me what the output was from those few lines :)

Don't really know where to look for that output but i looked in the forum log and found plenty of these :D
8: Undefined index: TPortal
File: /home/teamvtec/domains/sirfanaticsholland.com/public_html/forum/Themes/default/passwdBoard.template.php (eval?)
Line: 396

7cb200bf4f179137addde94a225ed779


I'm not giving up just yet  ;D
Title: Re: Password Protect Boards
Post by: Thantos on January 04, 2006, 06:12:25 PM
Using the change from above you should get something like:
Gave password: bleh which hashed to <br />
<some 32 character hash> correct hash is
<another 32 character hash> but lets make sure its not the fake passwd
<a third 32 character hash>

I want those lines from the error page
Title: Re: Password Protect Boards
Post by: Thantos on January 05, 2006, 12:33:43 PM
For those of you having problems with this mod:

Do any of the board names contain any type of special characters like ' & " etc?

If so can you try it on a board without those special characters?
Title: Re: Password Protect Boards
Post by: teamvtec on January 05, 2006, 02:01:46 PM
Quote from: MikeMill on January 05, 2006, 12:33:43 PM
For those of you having problems with this mod:

Do any of the board names contain any type of special characters like ' & " etc?

If so can you try it on a board without those special characters?

Hehehe, it worked like a charm.... i had a board called DVD's :P
Why is it that the password does'nt work with special characters?
I think i can delete that code what you posted in the previous post?


Big thumbs up for the help ;)
Title: Re: Password Protect Boards
Post by: Thantos on January 05, 2006, 02:19:05 PM
Yeah you can delete the code I provided earlier.  The board name is prefixed to the password prior to being hashed, however it does it after the forum does some work to the name to make it safe to put in the database.  I need to look to see if the board name after that point is different the board name at the point where it checks the password.

If you all are feeling really helpful you can try it moving one thing for me and seeing if it works with special characters.

In file ManageBoards.php

1.0.5:
Find
$_POST['passwdBoard'] = !empty($_POST['passwdBoard']) ? sha1($_POST['board_name'].$_POST['passwdBoard']) : '';

and moving it above

$_POST['board_name'] = preg_replace('~[&]([^;]{8}|[^;]{0,8}$)~', '&amp;$1', $_POST['board_name']);


1.1:
Find

if ( $_POST['passwdBoard'] != "#FAKEPASSWORD" )
$boardOptions['passwd'] = !empty($_POST['passwdBoard']) ? sha1($boardOptions['board_name'].$_POST['passwdBoard']) : '';


And move it above
$boardOptions['board_description'] = preg_replace('~[&]([^;]{8}|[^;]{0,8}$)~', '&amp;$1', $_POST['desc']);


In both cases the code you are moving it above should be right before what you are trying to find.  Also in both cases you'll need to go reset your password for the board.  Make sure you actually type it out otherwise it won't update.
Title: Re: Password Protect Boards
Post by: teamvtec on January 05, 2006, 02:56:01 PM
Gave me the same thing as before... not allowing special characters
Title: Re: Password Protect Boards
Post by: Thantos on January 05, 2006, 03:44:43 PM
ok thanks.  I'll see what I can dig up.
Title: Re: Password Protect Boards
Post by: MJJOS on January 13, 2006, 11:16:19 AM
Hey,

being new to simple machines forums (which are brilliant, well done!) I have just installed my first mod, being the passward mod by MikeMill.

I have sucessfully installed the mod, but I have been looking around for half an hour now and I cant figure out how to set a password on an individual board! How do I do it?

Thanks!

MJJOS.
Title: Re: Password Protect Boards
Post by: Bigguy on January 13, 2006, 01:45:38 PM
If you go to make a new board/forum or to modify an exsisting one you should see it.
Title: Re: Password Protect Boards
Post by: MJJOS on January 13, 2006, 02:19:31 PM
Oh yes, thats great now I see it. Thats great thanks Bigguy!

MJJOS
Title: Re: Password Protect Boards
Post by: Drakhart on January 13, 2006, 04:18:38 PM
"This modification was tested using SMF 1.1 RC2.  It may or may not work with RC1." I guess you wanted to say "This modification was tested using SMF 1.1 RC1.  It may or may not work with RC2." In fact it isn't working with RC2. The installer tells there are some errors applying the mod, and asks if you're sure to do it. With RC1 worked fine, the pity is I upgraded to RC2 and now I can downgrade the files, but not the database (external server with only myPHPAdmin and lazy admins). So I have to stick up to RC2. Are you working in a version compliant with this new release?
Title: Re: Password Protect Boards
Post by: Bigguy on January 13, 2006, 04:21:02 PM
I`m running RC2 and it works fine for me with no errors at all.
Title: Re: Password Protect Boards
Post by: Drakhart on January 13, 2006, 06:17:28 PM
Then, if someone could give me a hand, I'd be grateful. What I do is go to the packages section, browse to this mod, dowload it, and then click on apply mod. And what I get is this:

Error in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.

Installations actions for "Password Protect Boards":
Installing this package will perform the following actions:
   Type    Action    Description
1.    Execute Modification    ./Sources/Load.php    Test failed
2.    Execute Modification    ./Sources/BoardIndex.php    Test failed
3.    Execute Modification    ./Sources/ManageBoards.php    Test failed
4.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
5.    Execute Modification    ./Themes/default/ManageBoards.template.php    Test successful
6.    Execute Modification    ./Themes/default/BoardIndex.template.php    Test successful
7.    Execute Code    add_settings.php    
8.    Extract File    ./Sources/passwdBoard.php    
9.    Extract File    ./Themes/default/passwdBoard.template.php


I haven't got any other mod installed, it's a fresh upgrade from RC1 to RC2. What should I do?


Nevermind, I downloaded the right mod from here, not from the Packages option. Running fine now. Thanks.  :)
Title: Re: Password Protect Boards
Post by: squirrelof09 on January 14, 2006, 05:26:17 PM
Think you can ever get this mod to work with RC2?  We recently upgraded to RC2.
Title: Re: Password Protect Boards
Post by: Bigguy on January 14, 2006, 05:27:14 PM
Quote from: Bigguy on January 13, 2006, 04:21:02 PM
I`m running RC2 and it works fine for me with no errors at all.
Title: Re: Password Protect Boards
Post by: squirrelof09 on January 14, 2006, 05:29:03 PM
Ok, sorry, I just don't have time to read this whole topic, so I decided to ask it, but sorry for causing any trouble.
Title: Re: Password Protect Boards
Post by: Bigguy on January 14, 2006, 05:29:48 PM
Its no trouble. :)
Title: Re: Password Protect Boards
Post by: Drakhart on January 19, 2006, 10:29:24 PM
I have one question about coding. In my site, I have an "admins" group besides the actual administrator user, that have full admin privileges given by the maintenance group. But they can't access password protected boards, as the admin and the moderators do. The question is, how could I check out if an user belongs to the maintenance group? And, if this can't be done, how could I know if an user belongs to an X group number? In this case, the co-admins group is the #9 one.

I know the sentences that check out users' groups are these ones, but I don't know how should I ask the board about the maintenance privileges or about a certain group:// Can they view this board?
if ( !$user_info['is_admin'] && !$user_info['is_mod'] && $board_info['passwd'] && !in_array($board, $_SESSION['board_access']) )


Any idea?
Title: Re: Password Protect Boards
Post by: Drakhart on January 19, 2006, 10:44:35 PM
Nevermind, I did it.  :D For people interested in doing that, here is the solution, with changes made to sources/Load.php showed between >>> and <<<:
'is_admin' => in_array(1, $user_info['groups']),
        >>>'is_coadmin' => in_array(9, $user_info['groups']),<<<
'theme' => empty($user_settings['ID_THEME']) ? 0 : $user_settings['ID_THEME'],

[...]

// Can they view this board?
if ( !$user_info['is_admin'] >>>&& !$user_info['is_coadmin']<<< && !$user_info['is_mod'] && $board_info['passwd'] && !in_array($board, $_SESSION['board_access']) )


This allows group #9 to bypass the password protection. But only usergroup #9. If you know how to do it for all maintenance groups, please let me know.
Title: Re: Password Protect Boards
Post by: Bigguy on January 20, 2006, 03:47:32 PM
I have a small question. No big deal really. The other day one of my members was screwing around as a guest to see if he could get any info out of the password protected boards. He found out that if you search for info with the search in smf you will find info from boards that are password protected. Is there anyway to stop ppl from being able to get info from a search. (Hope that makes sense)
Title: Re: Password Protect Boards
Post by: CartDestr on February 12, 2006, 09:01:15 AM
The users can read the posts from the Password Protect Board in the 'recent posts'...
Title: Re: Password Protect Boards
Post by: Bigguy on February 12, 2006, 12:54:32 PM
yes and also like Cartdestr said is there away to stop it in recent posts to.
Title: Re: Password Protect Boards
Post by: LostProphecy on February 15, 2006, 11:08:40 PM
my member also said you can read posts from a users profile as well
Title: Re: Password Protect Boards
Post by: daragor on March 27, 2006, 07:32:47 AM
i downloaded this mod and not works in RC2 ! no update yet?
Title: Re: Password Protect Boards
Post by: daragor on April 03, 2006, 11:49:13 AM
news? please
Title: Re: Password Protect Boards
Post by: Bigguy on April 03, 2006, 11:52:44 AM
I have it installed on my forums. I run smf 1.1 rc2. It runs fine for me.
Title: Re: Password Protect Boards
Post by: daragor on April 03, 2006, 04:51:25 PM
Mod details   
Name:  Password Protect Boards
Created By: Thantos
Type:    Administrative
First Created:    12-12-2005, 19:39:25
Last Modified:    20-03-2006, 12:56:55
Latest Version: 0.2
Compatible With: 1.0.5, 1.1 RC1 <--- why?
Total Downloads: 2031
Title: Re: Password Protect Boards
Post by: Bigguy on April 03, 2006, 05:08:09 PM
I`m not sure why its like that. I do have it running though like I said.
Title: Re: Password Protect Boards
Post by: shumilica on April 14, 2006, 08:49:21 PM
I've installed the mod, it works fine, of course with the leaks mentioned above.
I have a request to make:
can't you do anything about supporting child boards?  :-[

or, is there any other mod that can help me password protect an entire category, its forums and child forums? :w00t:
Title: Re: Password Protect Boards
Post by: shumilica on April 16, 2006, 07:00:26 PM
I have an ideea! Is more simple just to set off showing children boards of a board?
For example. i have a board with more children boards that is public, for everyuser/guest to see, there children boards cand be shown in index but i have one more board, that is password protected where i don't want the children boards to see in the indes, only if you enter de password protected board you cand see the children of that board.

Is this possible with just some simple modificationes of some files?  ??? ??? ::)
Title: Re: Password Protect Boards
Post by: shumilica on May 05, 2006, 03:01:07 PM
nobody?  :'( up
Title: Re: Password Protect Boards
Post by: SAS75 on May 30, 2006, 03:49:22 AM
When there will be a following version with the closed holes?
Title: Re: Password Protect Boards
Post by: Vinspire on June 13, 2006, 01:59:58 AM
Quote from: LostProphecy on February 15, 2006, 11:08:40 PM
my member also said you can read posts from a users profile as well

Quote from: SAS75 on May 30, 2006, 03:49:22 AM
When there will be a following version with the closed holes?

Yeah ... When would be the next update ? :P
Title: Re: Password Protect Boards
Post by: PrizeLive.com on June 28, 2006, 10:50:36 AM
Any update on this?
Title: Re: Password Protect Boards
Post by: NTA on June 29, 2006, 07:27:11 AM
Quote from: LostProphecy on February 15, 2006, 11:08:40 PM
my member also said you can read posts from a users profile as well

I have this problem too :(
They can view title of post in "Show unread posts since last visit" menu too...

Waiting for the update  :P
Title: Re: Password Protect Boards
Post by: PrizeLive.com on June 29, 2006, 02:51:19 PM
Is this available for version 1.1 RC2?
Title: Re: Password Protect Boards
Post by: Vinspire on July 01, 2006, 10:23:09 AM
Quote from: SurfExcelerator.com on June 29, 2006, 02:51:19 PM
Is this available for version 1.1 RC2?

Next time pls try reading the 1st post before you make any question :)

This post is taken in 1st post of this thread :)

QuoteThis modification was tested using SMF 1.1 RC2.  It may or may not work with RC1.
Title: Re: Password Protect Boards
Post by: PrizeLive.com on July 01, 2006, 11:12:26 AM
Quote from: Vinspire on July 01, 2006, 10:23:09 AM
Quote from: SurfExcelerator.com on June 29, 2006, 02:51:19 PM
Is this available for version 1.1 RC2?

Next time pls try reading the 1st post before you make any question :)

This post is taken in 1st post of this thread :)

QuoteThis modification was tested using SMF 1.1 RC2.  It may or may not work with RC1.

Thanks, but why wasn't the page that has the download updated? It says:

Compatible With:     1.0.5, 1.1 RC1
Title: Re: Password Protect Boards
Post by: Vinspire on July 01, 2006, 11:23:27 AM
Quote from: SurfExcelerator.com on July 01, 2006, 11:12:26 AM
Thanks, but why wasn't the page that has the download updated? It says:

Compatible With:     1.0.5, 1.1 RC1

Maybe it is some spelling error. If you really want to verify this ... I think you should try PM the threadstarter about it :)
Title: Re: Password Protect Boards
Post by: hc2995 on August 05, 2006, 03:38:09 PM
compatible with 1.0.7 also i just tried it full success and i havent had any problems :D
Title: Re: Password Protect Boards
Post by: pmhoran on August 27, 2006, 09:05:56 AM
I just upgraded my site to SMF 1.1 RC3 from RC2

The Password Protect Boards version I had been using successfully (thank you ) for the past number of months no longer works.   When I try to install I get the following

Installations actions for "Password Protect Boards":
Installing this package will perform the following actions: 
         Type                   Action                                                               Description
1. Execute Modification ./Sources/Load.php                                              Test failed
2. Execute Modification ./Sources/BoardIndex.php                                     Test successful
3. Execute Modification ./Sources/Subs-Boards.php                                   Test successful
4. Execute Modification ./Sources/ManageBoards.php                                 Test successful
5. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
6. Execute Modification ./Themes/default/ManageBoards.template.php           Test successful
7. Execute Modification ./Themes/default/BoardIndex.template.php                Test successful
8. Execute Code add_settings.php 
9. Extract File ./Sources/passwdBoard.php 
10. Extract File ./Themes/default/passwdBoard.template.php

Is there going to be an updated version available for RC3 ???

Thanks much
Peter

Title: Re: Password Protect Boards
Post by: Syndel on September 18, 2006, 04:12:36 PM
I have tried the manual installation and the problem is that in RC 3 this string doesn't exist:

<search position="before"><![CDATA[
   $GLOBALS['sc'] = &$_SESSION['rand_code'];]]></search>

in the Load.php

What is the solution. I need badly this mod.
Title: Re: Password Protect Boards
Post by: pmhoran on September 25, 2006, 01:39:26 PM
Hmmmm ... it doesn't exist in the RC3 load.php file ???   or the Password Protect load.php file ???

I know from nothing about this stuff ... but ... was just thinking if its missing from the RC3 file ... maybe we should be asking the question, or pointing out the problem in a different forum???

I am as anxious as you are for a resolution.   The "natives" on my site are getting restless  :D

Peter

PS ... if you think its in the Password Protect load.php ... I wonder if we can just add it in ourselves someplace???
Title: Re: Password Protect Boards
Post by: Sverre on September 28, 2006, 12:45:30 PM
$GLOBALS['sc'] = &$_SESSION['rand_code'];

Seems to have changed to

$sc = $_SESSION['rand_code'];

in RC3. I have no idea if the mod will actually work if you edit this part of the mod's .xml file though.
Title: Re: Password Protect Boards
Post by: pmhoran on September 28, 2006, 01:04:06 PM
Thanks Sverre ... appreciate the added info

But ... I am an admitted idiot when it comes to ANY kind of programming and that includes PHP.   :D

So am hopeful maybe someone with a heck more knowledge than me can figure out a fix for me and let me know how to implement it  :D

Peter
Title: Re: Password Protect Boards
Post by: Sverre on September 28, 2006, 03:30:13 PM
Quote from: pmhoran on September 28, 2006, 01:04:06 PM
So am hopeful maybe someone with a heck more knowledge than me can figure out a fix for me and let me know how to implement it  :D

If the following information is correct:

Quote from: Syndel on September 18, 2006, 04:12:36 PM
I have tried the manual installation and the problem is that in RC 3 this string doesn't exist:

<search position="before"><![CDATA[
   $GLOBALS['sc'] = &$_SESSION['rand_code'];]]></search>

in the Load.php

This should be the fix you're looking for:

Quote from: Sverre on September 28, 2006, 12:45:30 PM
$GLOBALS['sc'] = &$_SESSION['rand_code'];

Seems to have changed to

$sc = $_SESSION['rand_code'];

in RC3. I have no idea if the mod will actually work if you edit this part of the mod's .xml file though.

Why don't you try it instead of posting topic after topic about this in the support boards???

EDIT:
You have to edit the MOD's .xml file, NOT Load.php in RC3
Title: Re: Password Protect Boards
Post by: pmhoran on September 28, 2006, 04:22:29 PM
Sverre ... I apologize for not fully understanding your original post ... and apparently trying your patience.

When it finally sunk in what you were "attempting" to tell me with your second post ... I just gritted my teeth ... edited the mods install.xml file ... zipped it into a new package.   AND IT WORKED.   

Most surprisingly ... it worked for me.  First time I edited an XML file ... first time I tried to zip something.

Thank you VERY much for your assistance ... from myself & my forum membership.
Again ... if I got on your "wrong side" ... I am sorry.
Peter
Title: Re: Password Protect Boards
Post by: Sverre on September 28, 2006, 05:37:30 PM
I'm glad you got it sorted... and don't worry, you have nothing to be sorry about ;)
Title: Re: Password Protect Boards
Post by: the budha2000 on October 14, 2006, 02:41:19 AM
Hi have have SMF 1.1 RC3 & TinyPortal v0.9.5

When i go to install the password protect boards mod i get these failures.


1.     Execute Modification     ./Sources/Load.php     Test failed
2.    Execute Modification    ./Sources/BoardIndex.php    Test failed
3.    Execute Modification    ./Sources/ManageBoards.php    Test failed
4.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
5.    Execute Modification    ./Themes/default/ManageBoards.template.php    Test successful
6.    Execute Modification    ./Themes/default/BoardIndex.template.php    Test successful
7.    Execute Code    add_settings.php    
8.    Extract File    ./Sources/passwdBoard.php    
9.    Extract File    ./Themes/default/passwdBoard.template.php

Can anyone help??? please....

Ps: Fresh install of both smf and tinyportal, no other mods installed.
Title: Re: Password Protect Boards
Post by: Rs2armor on October 15, 2006, 09:13:07 PM
could you make this mod work with RC3?
Title: Re: Password Protect Boards
Post by: Hwoarang on October 19, 2006, 08:46:50 AM
It would be greatb to have an update of this. I also have one question, in our forum, we want to be able to have clans who are members at us having private discussions on some password protected boards, so would it be possible to make the password protected forums need passwords from mods, global mods and admins as well? How do we do this if so?
Title: Re: Password Protect Boards
Post by: Garry1953 on October 19, 2006, 05:02:17 PM
Sverre

Thanks for your tip.
Installed perfectly into RC3
Title: Password Protect Boards Updated for SMF 1.1RC3
Post by: vnc on October 29, 2006, 05:25:49 PM
This mod is fixed a bit to work with SMF 1.1RC3

http://mkportal.thevnchannel.com/passwdBoard_0-2.zip (http://mkportal.thevnchannel.com/passwdBoard_0-2.zip)

VNC
Title: Re: Password Protect Boards
Post by: [email protected] on November 04, 2006, 09:58:53 AM
I get something even weirder, when I install the mod, I get a double password box in the "Modify Boards" section. When I enable a password, I need to enter it in both boxes otherwise it doesn't work.
Secondly, I get a double password box on each board index and then I need to enter the password twice in order to enter the board.
Third, when I'm trying to uninstall the buggy mod, it uninstalls, but I then I can't access my board index and it only shows

QuoteUnknown column 'b.passwd' in 'field list'
File: /home/content/M/y/c/MyceeAdmin/html/forums/Sources/BoardIndex.php
Line: 82

Note: It appears that your database may require an upgrade. Your forum files are currently at version SMF 1.0.9, whereas your database is at version SMF 1.0.8. It is recommended that you execute the latest version of upgrade.php.

Either, how do I make the mod work or how do I uninstall it?

Thanx
[email protected]
Title: Re: Password Protect Boards
Post by: Lill-Micke on December 07, 2006, 01:29:10 AM
When is this great mod upgraded to SMF 1.1 Final boards?
Title: Re: Password Protect Boards
Post by: Xarcell on December 07, 2006, 11:39:43 AM
Quote from: [email protected] on November 04, 2006, 09:58:53 AM
I get something even weirder, when I install the mod, I get a double password box in the "Modify Boards" section. When I enable a password, I need to enter it in both boxes otherwise it doesn't work.
Secondly, I get a double password box on each board index and then I need to enter the password twice in order to enter the board.
Third, when I'm trying to uninstall the buggy mod, it uninstalls, but I then I can't access my board index and it only shows

QuoteUnknown column 'b.passwd' in 'field list'
File: /home/content/M/y/c/MyceeAdmin/html/forums/Sources/BoardIndex.php
Line: 82

Note: It appears that your database may require an upgrade. Your forum files are currently at version SMF 1.0.9, whereas your database is at version SMF 1.0.8. It is recommended that you execute the latest version of upgrade.php.

Either, how do I make the mod work or how do I uninstall it?

Thanx
[email protected]

Sounds like you have double code. You need to check your code installation manually and remove the extra snippets.
Title: Re: Password Protect Boards
Post by: JustJen on December 08, 2006, 08:29:00 PM
Quote from: Lill-Micke on December 07, 2006, 01:29:10 AM
When is this great mod upgraded to SMF 1.1 Final boards?

Our board could use this too. :)
Title: Re: Password Protect Boards
Post by: Lill-Micke on December 12, 2006, 04:04:16 PM
Is this mod not active eny more?

I hoped that it should be updated to SMF 1.1 Final.

I can't update my board until this mod is updated.  :(

//Micke
Title: Re: Password Protect Boards
Post by: teamvtec on December 12, 2006, 08:19:42 PM
Update please ;D
Title: Re: Password Protect Boards
Post by: Tapsa2 on December 16, 2006, 03:28:35 PM
I am also ancious waiting for the 1.1 final update, but as Thantos writes in his signature,   Important Note to Mod Users:  I am planning on updating my mods after Dec 16th.    we will have to wait for a while.
This Mod is just what i need.
Title: Re: Password Protect Boards
Post by: say592 on January 01, 2007, 03:00:24 PM
Works on 1.1.1 ;) Thanks! It is great!
Title: Re: Password Protect Boards
Post by: Ranti84 on January 01, 2007, 04:56:57 PM
Quote from: vnc on October 29, 2006, 05:25:49 PM
This mod is fixed a bit to work with SMF 1.1RC3

http://mkportal.thevnchannel.com/passwdBoard_0-2.zip (http://mkportal.thevnchannel.com/passwdBoard_0-2.zip)

VNC


Thank you VNC!  This seems to work perfectly with the latest version ^_^
Title: Re: Password Protect Boards
Post by: babjusi on January 03, 2007, 10:56:01 AM
Thank you for this mod, It has come very handy in my forum
Title: Re: Password Protect Boards
Post by: godzirrraaaaa on January 09, 2007, 07:11:04 PM
Quote from: the budha2000 on October 14, 2006, 02:41:19 AM
Hi have have SMF 1.1 RC3 & TinyPortal v0.9.5

When i go to install the password protect boards mod i get these failures.


1.     Execute Modification     ./Sources/Load.php     Test failed
2.    Execute Modification    ./Sources/BoardIndex.php    Test failed
3.    Execute Modification    ./Sources/ManageBoards.php    Test failed
4.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
5.    Execute Modification    ./Themes/default/ManageBoards.template.php    Test successful
6.    Execute Modification    ./Themes/default/BoardIndex.template.php    Test successful
7.    Execute Code    add_settings.php    
8.    Extract File    ./Sources/passwdBoard.php    
9.    Extract File    ./Themes/default/passwdBoard.template.php

Can anyone help??? please....

Ps: Fresh install of both smf and tinyportal, no other mods installed.

I get that too, only I'm using 1.1.1 with TinyPortal.

It would be really great if someone could tell us what we're doing wrong.  :)
Title: Re: Password Protect Boards
Post by: drgnfireinferno on February 09, 2007, 09:15:39 PM
I'm getting an error when I try installing the mod.
SMF Version: 1.1.1
Installed Mods: http://i23.photobucket.com/albums/b358/drgnfireinferno/mods.jpg (http://i23.photobucket.com/albums/b358/drgnfireinferno/mods.jpg)
the currently uninstalled ones are the ones that are giving me errors.

Error Message:
   Type     Action     Description
1.    Execute Modification    ./Sources/Load.php    Test failed
2.    Execute Modification    ./Sources/BoardIndex.php    Test failed
3.    Execute Modification    ./Sources/ManageBoards.php    Test failed
4.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
Title: Re: Password Protect Boards
Post by: NEMINI on February 09, 2007, 10:09:08 PM
Quote from: drgnfireinferno on February 09, 2007, 09:15:39 PM
I'm getting an error when I try installing the mod.
SMF Version: 1.1.1
Installed Mods: http://i23.photobucket.com/albums/b358/drgnfireinferno/mods.jpg (http://i23.photobucket.com/albums/b358/drgnfireinferno/mods.jpg)
the currently uninstalled ones are the ones that are giving me errors.

Error Message:
   Type     Action     Description
1.    Execute Modification    ./Sources/Load.php    Test failed
2.    Execute Modification    ./Sources/BoardIndex.php    Test failed
3.    Execute Modification    ./Sources/ManageBoards.php    Test failed
4.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful

it's not written for 1.1.1
Title: Re: Password Protect Boards
Post by: godzirrraaaaa on February 20, 2007, 03:35:22 PM
Will this mod be updated for 1.1.2?
I have been looking for a compatible mod like this for some time for the recent versions of SMF.
Title: Re: Password Protect Boards
Post by: [email protected] on February 23, 2007, 08:21:17 AM
Yes would be great if we could work with this mod for latest forums like 1.1.2. :P
Title: Re: Password Protect Boards
Post by: Tapsa2 on February 27, 2007, 12:50:35 PM
Yes, i am also hoping for an update of this mod to work with 1.1.2
Title: Re: Password Protect Boards
Post by: TommytheMook on March 01, 2007, 12:11:26 PM
Thank you Thantos for your excellent mod and thank you VNC for the fix.

Invaluable stuff. Much appreciated.
Title: Re: Password Protect Boards
Post by: Master_Nate on March 22, 2007, 09:24:14 PM
So, are you going to update this mod for SMF 1.1.2?
Title: Re: Password Protect Boards
Post by: Digger on March 26, 2007, 10:32:56 PM
http://mkportal.thevnchannel.com/passwdBoard_0-2.zip

Works with 1.1.RC3 and 1.1.2
Title: Re: Password Protect Boards
Post by: babjusi on March 26, 2007, 10:37:09 PM
Quote from: Digger on March 26, 2007, 10:32:56 PM
http://mkportal.thevnchannel.com/passwdBoard_0-2.zip

Works with 1.1.RC3 and 1.1.2

Are u sure, I mean could a mod from another site be installed in SMF?
Title: Re: Password Protect Boards
Post by: Digger on March 26, 2007, 10:41:32 PM
Quote from: babjusi on March 26, 2007, 10:37:09 PM
Are u sure, I mean could a mod from another site be installed in SMF?
I tested it on 1.1.2
It looks like working  :)
Title: Re: Password Protect Boards
Post by: babjusi on March 26, 2007, 10:47:15 PM
Quote from: Digger on March 26, 2007, 10:41:32 PM
Quote from: babjusi on March 26, 2007, 10:37:09 PM
Are u sure, I mean could a mod from another site be installed in SMF?
I tested it on 1.1.2
It looks like working  :)

I guess it''s ok then, although myself, I wouldn''t install any mod at all which doesn''t come from here and has not been tested and approved by the guys here
Title: Re: Password Protect Boards
Post by: Digger on March 28, 2007, 10:51:54 PM
Quote from: babjusi on March 26, 2007, 10:47:15 PM
I guess it''s ok then, although myself, I wouldn''t install any mod at all which doesn''t come from here and has not been tested and approved by the guys here
It works not so good. :(
There are many ways to read messages from protected board for anauthorized  users.
Title: Re: Password Protect Boards
Post by: matasanos on March 29, 2007, 02:01:54 PM
it works very well

thanks
Title: Re: Password Protect Boards
Post by: David79 on March 29, 2007, 10:38:17 PM
awesome..thanks for the update on this mod
Title: Re: Password Protect Boards
Post by: perplexed on March 31, 2007, 03:41:58 PM
Quote from: Digger on March 28, 2007, 10:51:54 PM
Quote from: babjusi on March 26, 2007, 10:47:15 PM
I guess it''s ok then, although myself, I wouldn''t install any mod at all which doesn''t come from here and has not been tested and approved by the guys here
It works not so good. :(
There are many ways to read messages from protected board for anauthorized  users.

that doesnt sound like it's doing what it's supposed to :(

will there be an official update of this mod for 1.1.2?
Title: Re: Password Protect Boards
Post by: Thantos on April 17, 2007, 01:19:02 PM
I am no longer able to keep my mods up to date since I'd rather spend the time I have on developing SMF.  As such the following mods are up for the taking.  I give my permission to update and/or modify and restribute under your name this mod.  All I request is that you let the Customization Team know if / when you post a new version of the mod so that they can remove my version.  thanks.
Title: Re: Password Protect Boards
Post by: perplexed on April 20, 2007, 07:52:27 AM
thanks fur the update thantos, if anyone could update this mod for 1.1.2, it would be really cool
Title: Re: Password Protect Boards
Post by: JungleBunny on April 20, 2007, 02:01:20 PM
Hi all.

I installed the mod on Ver 1.1.2
Got an error with "BoardIndex.template.php".
OK, I thought, mayne no problem :D
I made a backup of this file and installed a fresh one from the install package of 1.1.2.
All was OK then. Fine install and fine mod.
Then I compared the 2 files and copied the new text to my old template.
Voila !

Working 8) 8) 8)
Title: Re: Password Protect Boards
Post by: JungleBunny on April 20, 2007, 02:35:40 PM
Hmmmm, found a little bug :'( :'( :'(
When you protect a board, the child boards are not protected.
You can go with a direct link into the boards.
Or you protect the child boards, too.
But then you have to give a password for the board and then a password for the child board.

Title: Re: Password Protect Boards
Post by: perplexed on April 21, 2007, 08:28:09 AM
Quote from: JungleBunny on April 20, 2007, 02:35:40 PM
Hmmmm, found a little bug :'( :'( :'(
When you protect a board, the child boards are not protected.
You can go with a direct link into the boards.
Or you protect the child boards, too.
But then you have to give a password for the board and then a password for the child board.



it says in the first post that this mod does not protect the child boards
Title: Re: Password Protect Boards
Post by: nolefan on April 22, 2007, 10:50:17 AM
humm..
the temporary fix for 1.1.2 that was posted earlier no longer exists.. can anyone provide me a copy if they have it?

Title: Re: Password Protect Boards
Post by: JungleBunny on April 26, 2007, 09:54:29 AM
Hi Nolefan,

uploaded it on rapidshare.com :D :D

http://rapidshare.com/files/28029460/passwdBoard_0-2gehtmit112.zip


JungleBunny
Title: Re: Password Protect Boards
Post by: peterstannard on April 26, 2007, 10:59:53 AM
Just installed and tested on my board and it works perfectly.

Here's another mirror too: http://audiohosting.org/smf/passwordboard-smf112.zip
Title: Re: Password Protect Boards
Post by: babjusi on April 27, 2007, 02:48:58 PM
Quote from: peterstannard on April 26, 2007, 10:59:53 AM
Just installed and tested on my board and it works perfectly.

Here's another mirror too: http://audiohosting.org/smf/passwordboard-smf112.zip

It may work but I would caution not to download and use any kind of mod which isn''t downloaded from this site and what''s more important hasn''t been tested by the guys here. Anyway this is a personal opionion and a friendly suggestion
Title: Re: Password Protect Boards
Post by: NoFeaR / NFSMW on April 29, 2007, 04:08:17 AM
It works so i'm happy.
Title: Re: Password Protect Boards
Post by: nolefan on April 30, 2007, 01:52:27 PM
thanks guys.. got it!
Title: Re: Password Protect Boards
Post by: SMdot™ on May 04, 2007, 03:06:35 PM
Quote from: Drakhart on January 13, 2006, 06:17:28 PM
Then, if someone could give me a hand, I'd be grateful. What I do is go to the packages section, browse to this mod, dowload it, and then click on apply mod. And what I get is this:

Error in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.

Installations actions for "Password Protect Boards":
Installing this package will perform the following actions:
   Type    Action    Description
1.    Execute Modification    ./Sources/Load.php    Test failed
2.    Execute Modification    ./Sources/BoardIndex.php    Test failed
3.    Execute Modification    ./Sources/ManageBoards.php    Test failed
4.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
5.    Execute Modification    ./Themes/default/ManageBoards.template.php    Test successful
6.    Execute Modification    ./Themes/default/BoardIndex.template.php    Test successful
7.    Execute Code    add_settings.php    
8.    Extract File    ./Sources/passwdBoard.php    
9.    Extract File    ./Themes/default/passwdBoard.template.php

im having the same problems... can someone tell me what I need to do to the make modifications manually? Not how to ... just what needs to be added/removed/replaced.
Title: Re: Password Protect Boards
Post by: SMdot™ on May 04, 2007, 03:49:47 PM
i downloaded a pack from some other site and it worked..
Title: Re: Password Protect Boards
Post by: nolefan on May 28, 2007, 04:21:22 AM
man.. I just can't figure out what's wrong with this add-on.

I uploadit to the server, install it and all is good. However, when I go to a board's page to try and set a password, I don't see all the options I should see. I just see a small box where I guess the password needs to go. I put it in and bingo. the board is passowrd protected but any attempt to enter it results in an error.

just weird
Title: Re: Password Protect Boards
Post by: babjusi on May 28, 2007, 04:50:59 AM
What is the exact error that you get nolefan? What version of smf are you using?
Title: Re: Password Protect Boards
Post by: nolefan on May 28, 2007, 05:03:05 AM
I'm using 1.1.2 right now.

the error log shows the following:

8: Undefined index: passwdBoard1
File: /home/raoul/public_html/Themes/default/ManageBoards.template.php (eval?)
Line: 412

8: Undefined index: passwdBoard2
File: /home/raoul/public_html/Themes/default/ManageBoards.template.php (eval?)
Line: 413
Title: Re: Password Protect Boards
Post by: nolefan on May 29, 2007, 12:31:35 PM
Anyone at all ?

The install goes just fine and it passes all the tests... I've removed and reinstalled the mod so many times but to no avail...

thanks guys...
Title: Re: Password Protect Boards
Post by: babjusi on May 29, 2007, 12:36:55 PM
Quote from: nolefan on May 29, 2007, 12:31:35 PM
Anyone at all ?

The install goes just fine and it passes all the tests... I've removed and reinstalled the mod so many times but to no avail...

thanks guys...


I think that this mod isn''t supported or ugraded anymore. If you read through the posts a couple of pages before someone has attached a password mod from another site that works fine with smf 1.1.2, but I have to caution you that if you want to use that, do so at your own risk. I just tested that mod in my test forum and it worked fine, but personally I would advise anyone against installing mods that aren''t downloaded from this very site.
Title: Re: Password Protect Boards
Post by: nolefan on May 29, 2007, 01:23:54 PM
I've installed the updated one for 1.1.2 that was linked to a few posts earlier. It seems to install just fine and then it starts returning errors when I try to access the password protected board
Title: Re: Password Protect Boards
Post by: babjusi on May 29, 2007, 01:38:04 PM
Then I should suggest to uninstall it. There are some other mods which can be used to keep a certain group of members away from a certain board, not by setting a requirement to enter a password like this mod does, but by checking the permissions.

By the way, when you installed that mod first, did it gave you any error message or none?
Title: Re: Password Protect Boards
Post by: nolefan on May 29, 2007, 01:57:30 PM
the install itself was fine! I only noticed the error when I checked the error log.

then, after i set-up one of the boards with a password, I went to enter said password . Once I did that, I just landed in a page with a box to enter the password and an error message
Title: Re: Password Protect Boards
Post by: babjusi on May 29, 2007, 02:04:14 PM
Then I would repeat my earlier suggestion to you, uninstall it, don''t use it
Title: Re: Password Protect Boards
Post by: sswithjs on June 24, 2007, 03:19:00 PM
layout broken when i use with joomla-smf
any suggestion?
Title: Re: Password Protect Boards
Post by: ExistenZ on July 09, 2007, 04:01:38 PM
I wish this would become a default feature...
Title: Re: Password Protect Boards
Post by: babjusi on July 09, 2007, 04:18:57 PM
Quote from: ExistenZ on July 09, 2007, 04:01:38 PM
I wish this would become a default feature...

That would be indeed great
Title: Re: Password Protect Boards
Post by: codenaught on July 09, 2007, 04:41:07 PM
Quote from: babjusi on July 09, 2007, 04:18:57 PM
Quote from: ExistenZ on July 09, 2007, 04:01:38 PM
I wish this would become a default feature...

That would be indeed great
Personally I think this would be a very 'bloat' feature to have. Why? Because there is already a much more convenient and secure way to handle board access. Passwords get leaked easily and you can set up group access without nagging the user to type in a password once per login session. Maybe it is a 'fun' thing to have for some, but I think this would definitely be better as a mod.
Title: Re: Password Protect Boards
Post by: ExistenZ on July 09, 2007, 06:29:23 PM
The only thing is that I don't want 10 000 usergroups to allow different people access to different places.

That is why passwords are a nice thing to have.

And you are probably right - they are a nice-to-have, but it would be so much nicer if it were default. Or, at least, the mod was updated regularly.
Title: Re: Password Protect Boards
Post by: nolefan on July 10, 2007, 12:41:43 PM
Quote from: ExistenZ on July 09, 2007, 04:01:38 PM
I wish this would become a default feature...
I agree 1000%.  This would save the hassle of dealing with upgrades and loosing functionality.
I actually switched forums from "Vanilla" to "SMF" just a few months back and this mod was one of the elements that swang the balance, alas.. when it was time to use it. it was incompatible. I ended up having to create so many different user profiles just to do what this mod could have allowed.
Title: Re: Password Protect Boards
Post by: LunaGirl on July 15, 2007, 10:39:59 AM
The mod doesn't work on my forum.
The boards can still be accessed. =|
Title: Re: Password Protect Boards
Post by: nolefan on July 16, 2007, 05:54:26 AM
Quote from: LunaGirl on July 15, 2007, 10:39:59 AM
The mod doesn't work on my forum.
The boards can still be accessed. =|
Hey Luna,
the mod is currently not supported! here's to hoping that someone with better coding skills than myself picks it up and updates it.
Title: Re: Password Protect Boards
Post by: LunaGirl on July 17, 2007, 12:52:37 AM
Thanks for informing me. I downloaded from the other site instead. Thanks!
Title: Re: Password Protect Boards
Post by: askepott on July 17, 2007, 04:28:44 AM
working on 1.1.3 ?
Title: Re: Password Protect Boards
Post by: writerrobert680 on July 26, 2007, 06:31:37 AM
So is the current version not working? Because it's displaying an error message for me.
Title: Re: Password Protect Boards
Post by: Tapsa2 on July 26, 2007, 12:18:28 PM
http://custom.simplemachines.org/mods/index.php?mod=237 (http://custom.simplemachines.org/mods/index.php?mod=237)

This mod hasn´t been updated for almost a year now.
Title: Re: Password Protect Boards
Post by: writerrobert680 on July 26, 2007, 12:38:42 PM
Yes, it should be updated because I really want to use it.
Title: Re: Password Protect Boards
Post by: Bigguy on July 26, 2007, 12:46:29 PM
I have it installed. It will work with a small tweak to the package-info.xml file.
Title: Re: Password Protect Boards
Post by: uspshooter on July 29, 2007, 01:20:52 PM
Quote from: Bigguy on July 26, 2007, 12:46:29 PM
I have it installed. It will work with a small tweak to the package-info.xml file.
Can you share the tweaks?  I looked at the file and was having trouble.  Of course I'm not a programmer no matter how you define it...
Title: Re: Password Protect Boards
Post by: jeremai on August 08, 2007, 01:16:08 PM
Hi all,
Could this mod be available with the 1.1.3 version?
Title: Re: Password Protect Boards
Post by: TrueSatan on August 08, 2007, 05:07:01 PM
You can use it on newer SMF versions at your own risk by using version emulate:

Put ;emulate_version=1.1 RC2 at the end of the Package Manager URL
Title: Re: Password Protect Boards
Post by: Altair on August 16, 2007, 04:04:17 PM
Quote from: TrueSatan on August 08, 2007, 05:07:01 PM
You can use it on newer SMF versions at your own risk by using version emulate:

Put ;emulate_version=1.1 RC2 at the end of the Package Manager URL

With this suggestion, if something goes wrong. How would you manually undo the Mod Add without screwing up the files that it edited?
Title: Re: Password Protect Boards
Post by: pintas on August 18, 2007, 10:46:02 PM
I just found that if you do not set the board permissions right, any member can see the posts in password protected boards simply by clicking 'View the most recent posts on the forum' link.

Any way to bypass this?

Thanks.
Title: Re: Password Protect Boards
Post by: ~Kikoish~ on August 20, 2007, 02:41:32 PM
It doesn't work with mine. It says something about corrupted file.

Any ideas how to fix this?
Title: Re: Password Protect Boards
Post by: 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.
Title: Re: Password Protect Boards
Post by: ~Kikoish~ on August 20, 2007, 07:18:27 PM
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.
Title: Re: Password Protect Boards
Post by: pintas on August 21, 2007, 07:53:44 AM
Download it here:
http://mkportal.thevnchannel.com/passwdBoard_0-2.zip

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.
Title: Re: Password Protect Boards
Post by: Altair 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.
Title: Re: Password Protect Boards
Post by: Jade Elizabeth 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??
Title: Re: Password Protect Boards
Post by: kamili34 on September 10, 2007, 08:26:56 AM
Doesn't work on smf 1.1.3  :'( :'(
Title: Re: Password Protect Boards
Post by: allumius on September 11, 2007, 08:35:06 AM
Please Thantos update to smf 1.1.3  :'(
Title: Re: Password Protect Boards
Post by: Jade Elizabeth on September 11, 2007, 11:12:48 PM
i agree with these crying people ;)
Title: Re: Password Protect Boards
Post by: allumius on September 20, 2007, 09:40:45 AM
Please update the mod
Title: Re: Password Protect Boards
Post by: babjusi 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
Title: Re: Password Protect Boards
Post by: kamili34 on September 20, 2007, 01:32:11 PM
So when will be finish compatible version with smf 1.1.3
Title: Re: Password Protect Boards
Post by: babjusi on September 20, 2007, 01:37:27 PM
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
Title: Re: Password Protect Boards
Post by: Dragooon on September 21, 2007, 11:38:02 AM
1.1.3 Version is out :).
See http://www.simplemachines.org/community/index.php?topic=195938.0
Title: Re: Password Protect Boards
Post by: babjusi on September 21, 2007, 11:39:46 AM
Quote from: Dragooon on September 21, 2007, 11:38:02 AM
1.1.3 Version is out :).
See http://www.simplemachines.org/community/index.php?topic=195938.0

This will make a lot of people happy
Title: Re: Password Protect Boards
Post by: LunaGirl on September 30, 2007, 02:18:53 AM
Will the 1.1.3 version work in SMF 1.1.4?
Title: Re: Password Protect Boards
Post by: TrueSatan on September 30, 2007, 10:52:43 AM
Please see http://custom.simplemachines.org/mods/index.php?mod=922 (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.