MOD download & history

Makes it possible for admin to create users from admin panel
Forum rules
The content in this forum is dated Dec. 21 2005 and can be used as Archive only. This Forum is LOCKED and READ ONLY !

MOD download & history

Postby Niels on Mon 10. Feb, 2003 22:08

Code: Select all
##############################################################
## MOD Title:          Admin add users
## MOD Author:         Niels < ncr@db9.dk > (Niels Chr. Rød) http://mods.db9.dk
## MOD Description:    Admin can now create a new user, using admin panel
##                     user management. In file admin_users.php is defined
##                     witch user should be used as "standard", so you may
##                     configure what default settings new users will have.
## MOD Version:        0.10.5
## Compatibility:      2.0.5->2.0.8
##
## Installation Level: Easy
## Installation Time:  3 Minutes (1mn by EasyMOD of Nuttzy)
## Files To Edit:      4
##      admin/admin_users.php
##      language/lang_english/lang_admin.php
##      templates/subSilver/admin/user_edit_body.tpl
##      templates/subSilver/admin/user_select_body.tpl
##
## Included Files:     0
##
##############################################################
## MOD History:
##
##   2004-04-25 - Version 0.10.5
##   - intruction fix: 2 consecutive FIND -> FIND + IN LINE FIND
##   - add the Dutch, French & German translation in the MOD archive
##
##   2004-03-24 - Version 0.10.4
##   - corrected a bug in 0.10.3, as the FIND tag wasen't good
##
##   2004-03-03 - Version 0.10.3
##   - Changed a find tag, to clearify, what to find
##
##   2003-12-05 - Version 0.10.2
##   - fix a isue wih new users and password
##   2003-12-05 - Version 0.10.1
##      - phpBB template & EasyMOD compliance enhancement
##      - Fix 2 instruction errors
##      - Add delimiters for the MOD code inserted
##
##   2003-08-05 - Version 0.10.0
##      - complete re-write of the mod
##      - support a "user template", witch make it posible to
##        define how standart users should be set up
##      - you may define a "standart" password
##      - new users become members of the same usergroups as
##        the standart user
##      - admin may "cancel" the creation of the user, as long
##        as not submitted
##      - works toghether with protect user account mod
##        (force user to change password)
##      - EM ready
##
##   ????-??-?? - Version 0.9.2
##      - change for 2.0.6. + made compt. with attachemt mod
##
##   ????-??-?? - Version 0.9.1
##      - corrected that add button was showen into user permission
##        page as well
##
##   ????-??-?? - Version 0.9.0
##      - Initial release
##
##############################################################

:arrow: To know the languages already available in the MOD archive, please click here
Last edited by Niels on Fri 14. May, 2004 21:27, edited 8 times in total.
(if a how-to is EM ready, it will mostly be bullet prof, since a machine is more picky than a human. :D)
User avatar
Niels
Poster
Poster
 
Posts: 4390
Joined: Sat 27. Jul, 2002 15:46

Postby Niels on Thu 12. Jun, 2003 00:41

The "add" button was also showing than change a users permission, this is now corrected, new version is 0.9.1.

to upgrade :
in file admin/admin_users.php
Code: Select all
[FIND]
'body' => 'admin/user_select_body.tpl')
);
[AFTER ADD]
$template->assign_block_vars('switch_add_user_on', array());

in file templates/subsilver/admin/user_select_body.tpl
Code: Select all
[FIND]
<input type="checkbox" class="post" name="new_user">{L_CREATE_USER}

[REPLACE WITH]
<!-- BEGIN switch_add_user_on -->
<input type="checkbox" class="post" name="new_user">{L_CREATE_USER}
<!-- END switch_add_user_on -->
User avatar
Niels
Poster
Poster
 
Posts: 4390
Joined: Sat 27. Jul, 2002 15:46

Postby Niels on Fri 29. Aug, 2003 02:08

I have now re-writen this mod, it now works mutch better, the old one was a "quick and dirty" solution.
new version is 0.10.0 - please fed back


- support a "user template", witch make it posible to define how standart users should be set up
- you may define a "standart" password
- new users become members of the same usergroups as the standart user
- admin may "cancel" the creation of the user, as long as not submitted
- works toghether with protect user account mod (force user to change password)
- EM ready


Next to come - email notification to user
(if a how-to is EM ready, it will mostly be bullet prof, since a machine is more picky than a human. :D)
User avatar
Niels
Poster
Poster
 
Posts: 4390
Joined: Sat 27. Jul, 2002 15:46

Postby Niels on Fri 05. Dec, 2003 21:35

the how-to is now improved by -=ET=-
new version is 0.10.1
(if a how-to is EM ready, it will mostly be bullet prof, since a machine is more picky than a human. :D)
User avatar
Niels
Poster
Poster
 
Posts: 4390
Joined: Sat 27. Jul, 2002 15:46

Postby Niels on Mon 22. Dec, 2003 01:32

I have uploaded new version 0.10.2.
to upgrade:
in file admin_users.php

Code: Select all
[FIND]
// Start add - Admin add user MOD
if ($new_user)
{

[REPLACE WITH]
// Start add - Admin add user MOD
else if ($new_user)
{
(if a how-to is EM ready, it will mostly be bullet prof, since a machine is more picky than a human. :D)
User avatar
Niels
Poster
Poster
 
Posts: 4390
Joined: Sat 27. Jul, 2002 15:46

Postby Niels on Wed 03. Mar, 2004 22:37

I have changed a FIND tag, in the how-to on request.
new version is 0.10.3.
there is no need to upgrade any code, as this only involves the how-to
(if a how-to is EM ready, it will mostly be bullet prof, since a machine is more picky than a human. :D)
User avatar
Niels
Poster
Poster
 
Posts: 4390
Joined: Sat 27. Jul, 2002 15:46

Postby Niels on Wed 24. Mar, 2004 15:47

I have uploaded new version 0.10.4, witch does solve a install error, as a FIND tag, wasen't good.

if you have installed specific version 0.10.3, I asume your user management page doesent work any more...
to solve this
in file admin_users.php
Code: Select all
[FIND]
// Start replacement - Admin add user MOD
$user_id = ($new_user) ? $user_id : intval($HTTP_POST_VARS['id']);
// End replacement - Admin add user MOD

[REPLACE WITH]
if ( (
{
// Start replacement - Admin add user MOD
$user_id = ($new_user) ? $user_id : intval($HTTP_POST_VARS['id']);
// End replacement - Admin add user MOD
(if a how-to is EM ready, it will mostly be bullet prof, since a machine is more picky than a human. :D)
User avatar
Niels
Poster
Poster
 
Posts: 4390
Joined: Sat 27. Jul, 2002 15:46


Return to Admin add users [2.0.8/EM]

Who is online

Users browsing this forum: No registered users and 0 guests

cron