Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: vbgamer45 on February 07, 2010, 03:04:38 PM

Title: Join Password
Post by: vbgamer45 on February 07, 2010, 03:04:38 PM
Link to Mod (https://custom.simplemachines.org/mods/index.php?mod=2424)

Join Passwords



Original Author:live627 (http://www.simplemachines.org/community/index.php?action=profile;u=154736)
SMF Version: 2.0.X
Mod Version: 1.1

Description:
This mod enables the admin to require a given password on signup.

Compatible with SMF 2.0

The settings for this mod are in AdminCP => Members => Registration Settings

Password is encrypted with SHA1, this means if you forget the password it cannot be retrieved.  This is done for security.

Changelog
Version 1.1
! Taken over by Runic
! Updated for 2.0.x

Version 1.0.3
* Update for SMF 2.0 RC3

Version 1.0.2
! moved a language string

Version 1.0.1
! Registration would pass without the correct password

Legend:
--------------------------------------------------------------------------------
! Minor change or bugfix
* Feature edit
& Known bug
+ Feature addition
- Feature removal

Why Not Visit:
http://www.smfhacks.com (http://www.smfhacks.com)
Title: Re: Join Password
Post by: Capion on February 08, 2010, 07:06:03 AM
before I install it, I have a question.
Can I "restrict" the predefined password to open access for a particular group?

( Im running a Multigaming clan site, and we have different approaches to the main clans forum and single-game-members.. then it would be nice to be able to "automate" it. )
Title: Re: Join Password
Post by: Bugo on February 10, 2010, 07:21:01 AM
I entered the wrong password and still pass the registration:)

And found an error in the text: "Plase..." => instead "Place..."
Title: Re: Join Password
Post by: live627 on February 11, 2010, 10:37:20 PM
Quote from: Bugo on February 10, 2010, 07:21:01 AM
I entered the wrong password and still pass the registration:)

And found an error in the text: "Plase..." => instead "Place..."

Both those errors have been fixed in the update 1.0.1
Title: Re: Join Password
Post by: Bugo on February 12, 2010, 04:19:51 AM
Russian translation

index.russian-utf8.php
// Join Password
$txt['join_pass'] = 'Пароль доступа';
$txt['join_pass_enabled'] = 'Требовать пароль для доступа к регистрации';


Errors.russian-utf8.php
// Join Password
$txt['error_join_pass'] = 'Место для ввода пароля, требующегося для получения доступа к регистрации на форуме.';
Title: Re: Join Password
Post by: Tanks on February 18, 2010, 06:12:32 AM
Hello Live

I had to move this from error.english.php to index.english.php - i was getting hits in my error logs about undefined index. This solved it.

$txt['error_join_pass'] = 'Please enter the password required to register on the forum.';
Title: Re: Join Password
Post by: Capion on February 18, 2010, 11:01:56 AM
mm anyway.. is it possible to direct logins to a particular forum with this mod ?
Title: Re: Join Password
Post by: live627 on February 18, 2010, 12:39:31 PM
Can you explain?
Title: Re: Join Password
Post by: TheListener on February 18, 2010, 12:54:36 PM
Would I be right in saying this mod will show new registers a password which they have to use before they can set their own after joining?

Title: Re: Join Password
Post by: live627 on February 18, 2010, 01:01:44 PM
Yes new registrants must have the password provided by the admin
Title: Re: Join Password
Post by: Capion on February 18, 2010, 01:03:54 PM
SRY!.. bad choice of words This is what I meant. Most forums have several Boards, where the admins can make some private and other public and so on.
I was curious to know if this mod has the ability to direct users to particular boards, or maybe make the user member of a particular group ( with the given password ) ?
By directing the user with the predefined password to a specific group or board, the admin(s) can control who has access to where, thus saving a lot of administrationtime when new users are joining.
Title: Re: Join Password
Post by: TheListener on February 18, 2010, 01:04:52 PM
Thought so.

This will be yet another of your mods I have installed.

:D
Title: Re: Join Password
Post by: live627 on February 18, 2010, 02:07:23 PM
Quote from: Capion on February 18, 2010, 01:03:54 PM
SRY!.. bad choice of words This is what I meant. Most forums have several Boards, where the admins can make some private and other public and so on.
I was curious to know if this mod has the ability to direct users to particular boards, or maybe make the user member of a particular group ( with the given password ) ?
By directing the user with the predefined password to a specific group or board, the admin(s) can control who has access to where, thus saving a lot of administrationtime when new users are joining.


That I think is for another mod. When I get some free time I'll look into that. Join Password does everything it was originally designed to do, eg. requiring a password on the registration page so unwanted users should not be able to register
Title: Re: Join Password
Post by: Tanks on February 18, 2010, 02:51:17 PM
Live - I've reported a bug in this mod, and also in your relative dates mod, but you seem to ignore my replies.

What's up with that ? :p
Title: Re: Join Password
Post by: Brahman on February 19, 2010, 10:48:27 PM
Hi,

thank you for this very useful mod.

If the registrant enters the wrong or no password the error box at the top only shows the following message:
"The following errors were detected in your registration. Please correct them to continue:" ... but does not give a reason for the new user why his registration failed.

I think it would be important to tell him/her that he has entered an incorrect or no access password, especially when it is misspelled, since typos can easily happen.

Also I think to use specific passwords to direct users to a specific user group as requested before, would be a great addition to this mod.

Regards,

B.
Title: Re: Join Password
Post by: Tanks on February 20, 2010, 01:31:45 AM
Quote from: Tanks on February 18, 2010, 06:12:32 AM
Hello Live

I had to move this from error.english.php to index.english.php - i was getting hits in my error logs about undefined index. This solved it.

$txt['error_join_pass'] = 'Please enter the password required to register on the forum.';

Brahman, this would fix that ;)
Title: Re: Join Password
Post by: Brahman on February 20, 2010, 09:46:32 AM
Isn't this a bug in the mod?

I can see this text in the mod installation file english.xml.
But there it was supposed to be inserted in:
<file name="$languagedir/index.english.php" error="skip">
and/or
<file name="$languagedir/Errors.english-utf8.php" error="skip">

However, when installed like this it does not show at the registration error page. :-[

If the mod developer would want to eliminate this bug, should not the above two lines be simply changed to:
<file name="$languagedir/index.english.php" error="skip">
and/or
<file name="$languagedir/index.english-utf8.php" error="skip">

so that the mod would function correctly?

The mod is brilliant and this would simply be icing on the cake if the kind developer would change that.  :)

Regards,

B.
Title: Re: Join Password
Post by: DoctorMalboro on February 20, 2010, 10:05:22 AM
Cool mod, very useful, especially for secret forums  ;D

Spanish translation

Errors.spanish_es.php
$txt['error_join_pass'] = 'Por favor ingrese la clave requerida para registrarse al foro.';

Index.spanish_es.php
$txt['join_pass'] = 'Ingresar clave.';
$txt['join_pass_enabled'] = 'Requerir de una clave para registrarse.';
Title: Re: Join Password
Post by: live627 on February 20, 2010, 03:03:16 PM
Version 1.0.2 moves the language string into the correct file

And apologies for not fixing it earlier - quite a busy schedule
Title: Re: Join Password
Post by: Brahman on February 21, 2010, 08:44:00 PM
Thank you live627 for the update.

It works very well now.

The only thing I notice is following error from your mod in my log:
Undefined offset: 1 in ManageRegistration.php Line 314.

This line is:
$_POST['join_pass'][1] = sha1($_POST['join_pass'][1]);
Title: Re: Join Password
Post by: Mayfair on February 22, 2010, 07:57:47 PM
I've just installed this mod and get problems. everytime someone enters the password I chose it comes up with an error.

Please enter the password required to register on the forum

The password I set up to accept is mpatient2574 and yet when I asked one of my friends to try they got the above error.  I am using the latest version 1.0.2 so I don't understand why I would be getting these problems and I won't open my new SMF forum until I get a proper invite/password only mod.. Any help would be much appreciated
Title: Re: Join Password
Post by: live627 on February 22, 2010, 10:38:39 PM
I can't reproduce the last two errors

@Brahman: Did you fill both fields with the same password?

@Mayfair: Did you set the password?
Title: Re: Join Password
Post by: Mayfair on February 23, 2010, 08:44:21 AM
Yeah, I did. It's supposed to be mpatient2574
Title: Re: Join Password
Post by: Brahman on February 24, 2010, 06:54:19 AM
The error does not occur any more. May have been caused by another mod (registration password) which was not properly set up with all groups assigned a password at the time.

BTW I can confirm that your mod works well with the Registration Password mod. Both mods together give an Admin the ability to set up a password protected (join password mod) forum with several subforums and at registration time the user will be assigned a specific group with access to a specific forum (through the registration password mod).

The join password mod is necessary in this case, because the registration password mod does not have the ability to block registration if a wrong password is entered, it just assigns the member to the default group in this case.

It would be nicer though, if there could be one mod which integrates both these capabilities.

Regards,

B.
Title: Re: Join Password
Post by: Mayfair on February 25, 2010, 11:47:30 PM
It still doesn't work and I cannot open at all until this is set up.
Title: Re: Join Password
Post by: Mayfair on February 28, 2010, 10:45:41 PM
I'm sorry but I'm starting to get a little frustrated. I understand that your a busy person but I cannot open AT ALL until I have a working password required registration mod installed. I posted my problem more than a week ago. You've been online today and didn't bother to help me with my problem.
Title: Re: Join Password
Post by: live627 on March 01, 2010, 06:11:42 PM
I have no idea what is causing the problem. I have tried that password and I was able to register a test account. There could be a mod conflict or Join Password needs uninstalled and reinstalled again
Title: Re: Join Password
Post by: JaredBlake1 on April 04, 2010, 08:32:17 PM
Hello Live627,

MOD "Join Password" worked great on SMF ver 2.0 RC2 but I upgraded to SMF ver 2.0 RC3 and now I'm unable to use this AWESOME MOD.

Will there be an update soon?   :-[

Many Regards,
Jared Blake
Title: Re: Join Password
Post by: Mayfair on April 09, 2010, 09:28:27 PM
It was another mod interference, thanks :) I'm now in the same boat as Jared though. I've just upgraded to keep it more secure and it no longer works.

Do you plan on updating it eventually?
Title: Re: Join Password
Post by: JaredBlake1 on April 18, 2010, 04:38:18 AM
Hey Live,

Can I modify the mod myself to make it work with SMF 2.0 RC3?

Please just let me know the steps and I will do it...

Thank you...Regards, Jared
Title: Re: Join Password
Post by: JaredBlake1 on April 20, 2010, 03:30:20 AM
Dang I didn't know it would be that easy to fix.....works great now!

Regards,
Jared

Test it here:
social-whamx.com
Title: Re: Join Password
Post by: live627 on May 20, 2010, 01:46:20 PM
Version 1.0.3 - May 20, 2010, 04:40:39 PM
+ Adds Russian thanks to Bugo
+ Adds Spanish thanks to DrHouse
* Update for SMF 2.0 RC3
Title: Re: Join Password
Post by: Bugo on May 20, 2010, 02:26:04 PM
Please add these both files into your package, because russian-utf8 must be separate from russian-ansi...
Title: Re: Join Password
Post by: Ian Holl on December 06, 2011, 05:33:51 AM

I've just installed Join Password 1.0.3 into 2.01 and although it installed OK when typing in the correct password in the registation process the triangular shaped yellow exclamation mark fails to turn into a tick to acknowledge the input.  I know this isn't a big issue, although it can be off putting for people as it gives the impression that the wrong password is being inputted.  Can you fix this Live or tell me how to do it?


Cheers Ian
Title: Re: Join Password
Post by: mdp on March 12, 2012, 05:32:20 PM
Just installed this mod and now my account password as admin is not working.  Puzzled as to why my password isn't working, I tried the access password and it doesn't work neither so I had to get the forum to send me new password but never got the email??

I am using SMF 2.0.2 with ADK Portals mod on it.  Your mod is 2nd mod in the system.  I can no longer access to the forum even as an admin.
Title: Re: Join Password
Post by: live627 on March 13, 2012, 12:19:48 AM
Does it work if you uninstall the mod?
Title: Re: Join Password
Post by: SpiffySax on July 07, 2012, 01:56:15 PM
Quote from: Ian Holl on December 06, 2011, 05:33:51 AM
I've just installed Join Password 1.0.3 into 2.01 and although it installed OK when typing in the correct password in the registation process the triangular shaped yellow exclamation mark fails to turn into a tick to acknowledge the input.  I know this isn't a big issue, although it can be off putting for people as it gives the impression that the wrong password is being inputted.  Can you fix this Live or tell me how to do it?

I am having this same problem running version 1.0.3 on SMF 2.0.2.  I don't know if there is something wrong with my database, or if there is a small bug in the mod.  Is it possible that because of the SHA1 encryption, it cannot be determined whether or not the password is correct?

If I come up with a fix shortly, I will be glad to share it.

Thanks,
SpiffySax
Title: Re: Join Password
Post by: live627 on July 07, 2012, 05:16:10 PM
I just now tried it myself. Indeed, the icon isn't changing. I'll fix that.
Title: Re: Join Password
Post by: live627 on July 07, 2012, 06:12:36 PM
Fixed!
Title: Re: Join Password
Post by: Kinesthesia on May 09, 2014, 10:35:27 AM
I installed this mod and it displays multiple password requests.  Even if all of them are filled out, the registration will not go through.  So I uninstalled the mod and the questions remain.  Please help.

http://www.knightsoftheshattering.com

If you attempt to register, you will see what I mean.
Title: Re: Join Password
Post by: Ian GSD on May 24, 2022, 03:18:42 PM
Does this mod work in SMF 2.1?
Title: Re: Join Password
Post by: vbgamer45 on May 24, 2022, 03:23:28 PM
I have not tested or updated it.