Page 1 of 2

[ABD] User Registration by Admin

Posted: Mon May 31, 2004 3:48 pm
by WelcomB
Administrators can now register new users through the admin control panel using only a username and email. No other complicated configuration is needed. Suitable for admins who just want to add users without the hassle of configurations and stuff.

Code: Select all

##############################################################
## MOD Title:          Simple Admin Register User
## MOD Author:         WelcomB < welcomb@hotmail.com > ( )
## MOD Description:    Admin can now create a new user, through the admin control
##                     giving only a user name and email. Password will be randomly
##                     generated and emailed to the given address.
## MOD Version:        0.9.2b
## Compatibility:      2.0.x
##
## Installation Level: Easy
## Installation Time:  1 Minutes
## Files To Edit:      0
##
## Included Files:     4
##                     admin_register.php
##                     lang_admin_register.php
##                     admin_register.tpl
##                     admin_welcome_user.tpl
##
##############################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/ for the
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered
## in our MOD-Database, located at: http://www.phpbb.com/mods/
##############################################################
## Author Notes:
##
##  I know Niels has created a similar mod to this but his mods has several functions lacking
##  which is why I wrote this. This mod installs without any modification of any files. :)
##
##  Features:
##   - Requires no configuration by the admin.
##   - "Drop and go" mod requires minimal effort to install
##   - Only requires admin to supply a user name and email of the new user.
##   - Password is generated randomly so when creating multiple users, each will have a different password
##   - Password and/or activation key is emailed to the new user.
##   - Compatiable with EasyMOD
##
##############################################################
## MOD History:
##
##   0.9.2b - Fixed a bug in emailing the activation code. Now validates username like in normal registration.
##
##   0.9.1b - As requested, added in an optional field for password, and options to email the user or
##            require activation.
##
##   0.9.0b - Initial release
##
##############################################################
##
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################

#
#-----[ COPY ]------------------------------------------
admin_register.php to admin/admin_register.php
lang_admin_register.php to language/lang_english/lang_admin_register.php
admin_register.tpl to templates/subsilver/admin/admin_register.tpl
admin_welcome_user.tpl to language/lang_english/email/admin_welcome_user.tpl

# EoM
Download the package here

Posted: Mon May 31, 2004 5:34 pm
by morpheus2matrix
Looks the same as this one but great !

Posted: Mon May 31, 2004 6:19 pm
by WelcomB
Yup my mod was actually inspired by Niels' Admin Add Users mod. I actually wanted to use that but I found it a hassle to declare a standard user template and was uncomfortable with having a "standard" password for all new registrants.

Also my mod emails the new users with an activation code if that's required in the board's config. I'm not sure if Niels' mod does that cos I haven't tried it. If you notice some code which looks similar, it's cos I did refer to Niels code here and there but since what I'm trying to achieve is a very simple and basic interface, there's much of Niels' code which I couldn't use too.

I'm not sure how much of my code is from Niels' but if there's a need to credit Niels do let me know how it should be placed.

Posted: Tue Jun 01, 2004 10:07 am
by Rookie7
Can you add an option so we can choose whether to send the password or to let admin specify the password instead? Also, can you add an option so we can choose to send email or not?

Thanks.

Posted: Wed Jun 02, 2004 11:31 am
by WelcomB
Added as requested.

Posted: Wed Jun 02, 2004 8:11 pm
by Rookie7
Thanks for adding the requested features. Works great! This mod is awesome since it doesn't require any editting. Great work WelcomB!

questions

Posted: Thu Jun 03, 2004 3:21 am
by honest
does this mod check with the ban list for banned email addresses, and banned usernames?

Posted: Thu Jun 03, 2004 4:40 am
by WelcomB
Edited to use phpbb's username and email validation.
Also fixed a small bug.

thanks

Posted: Sat Jun 05, 2004 9:01 pm
by honest
Thanks :P

umm...one other modification, but can you add an option to the forum so that only admin can register users(General Configuration in the administration)

Posted: Sun Jun 06, 2004 10:24 am
by WelcomB
As this mod is accessed thru the ACP, I assume that only admins have access to it.
If you want to stop normal registrations, take a look at this mod http://www.phpbb.com/phpBB/viewtopic.php?t=72818

Posted: Mon Aug 30, 2004 9:35 pm
by Zypher
Nice mod! Just the mod I need!

Posted: Wed Oct 06, 2004 5:16 pm
by yonatan_ca
can you add a "add to gruop" with list of groups
or dont add to a gruop
sorry my english is not so good!!

i translated it to hebrew!!
do you want me to send it to you!?!?
if you do contact me on
yonatan@iddr.co.il

Posted: Thu Oct 07, 2004 1:32 pm
by yonatan_ca
help

Posted: Fri Oct 15, 2004 4:23 pm
by WelcomB
Sorry for the late reply as I do not check these forums as often as I used to. Form what I gather you just want an option to add the new user into a group or groups?

Do you need it urgently as I am busy with projects atm.
btw, you can just link your hebrew translation here.

Email double spaced

Posted: Wed Nov 30, 2005 9:02 am
by MedMan
A brilliant MOD - just what I needed - and it works so smoothly. Just one problem that I cannot solve - the email sent to new users is double spaced. I have actually added quite a lot to the email, which was very easy to do by editing 'admin_welcome_user.tpl', but no matter how I save it, it comes out double spaced. Everything looks perfect in Notepad but the email just looks silly. Could there be a problem in one of the other files where the email format is defined?