############################################################## 
## MOD Title:          Prune users 
## MOD Author:         Niels < ncr@db9.dk > (Niels Chr. Rd) http://mods.db9.dk
## MOD Description:    Admin plug-in that makes it posible to
##                     delete users who are inactive/haven't
##                     posted or like. 
## MOD Version:        1.4.3
## MOD Compatibility:  2.0.x
## 
## Installation Level: Easy
## Installation Time:  2 Minutes (1mn by EasyMOD of Nuttzy)
## Files To Edit:      2
##      memberlist.php 
##      language/lang_english/lang_admin.php
##
## Included Files:     5
##      delete_users.php 
##      admin/admin_prune_users.php
##      language/lang_english/lang_prune_users.php
##      language/lang_english/email/delete_users.tpl
##      templates/subsilver/admin/prune_users_body.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: 
## 
## 1. Full MOD description
## -----------
## Admin plug-in that makes it posible to delete users who are
## inactive/haven't posted or like.
## Makes it posible to make links for deletion of specific users.
## A example of how to use this is included with the memberlist.
## After this, a delete user button is showen in the memberlist.
##
## 2. EasyMOD
## -----------
## This MOD is compatible and can be installed by EasyMOD
## of Nuttzy (but is not officially EasyMOD Compliant)!
## http://area51.phpbb.com/phpBB22/viewforum.php?sid=&f=15
##
## However, on alpha releases of EM and meanwhile beta or 
## final release some actions are NOT performed.
## You'll have to do them manually !
##
## 2.1 Translation are not managed
## -----------
## EM can not already manage actions for any other
## language than English (but language intructions are proceed
## to all installed languages in order to prevent errors).
## So the translations provided with this MOD must be installed
## manually if you need them.
##
## 3. Official last version link
## -----------
## Meanwhile the phpBB group validation and as the MOD is not yet
## in the phpBB MOD database, check this official link for updates...
## http://mods.db9.dk/viewtopic.php?t=21
##
############################################################## 
## MOD History: 
## 
##   2004-02-19 - Version 1.4.3
##	- upgraded the included file delete_users.php
##
##   2003-12-19 - Version 1.4.2 
##      - phpBB template & EasyMOD compliance enhancement
##      - Danish, Dutch, French, German & Spanish translations
##        now provided with the MOD
## 
##   ????-??-?? - Version 1.4.1
##      - corrections to the language files
## 
##   ????-??-?? - Version 1.4.0
##      - inlcuded more translations
## 
##   ????-??-?? - Version 1.3.3
##      - ready for EM
## 
##   ????-??-?? - Version 1.3.2
##      - corrected different details, reported by my user "jtp10181"
## 
##   ????-??-?? - Version 1.3.1
##      - now support email notification of deleted users
## 
##   ????-??-?? - Version 1.3.0
##      - language file are now sepperated as a plug-in file
## 
##   ????-??-?? - Version 1.1.2
##      - new version of delete_users.php, witch solve a usue
##        about ' in usernames
## 
##   ????-??-?? - Version 1.1.1
##      - confirmed for phpBB2 ver 2.0.2, no changes needed
##      - changes to lang_admin.php
## 
##   ????-??-?? - Version 1.1.0
##      - imporent update, the delete_users.php file have been
##        updated, if you have used previous versions and at the
##        same time have used user permissions on deleted user
##        you should manual inspect your auth_access table
##
##   ????-??-?? - Version 1.0.7
##      - lang['prune'] is already in use, so changed the name
##        to ['Prune_commands']
## 
##   ????-??-?? - Version 1.0.6
##      - and now it also includes the RIGTH admin_prune_users.php
##        Sorry once more
## 
##   ????-??-?? - Version 1.0.5
##      - now includes the RIGTH template file....sorry
## 
##   ????-??-?? - Version 1.0.4
##      - modifyed admin plug-in, to easyely be moded with
##        more options
## 
##   ????-??-?? - Version 1.0.3
##      - history started, added admin plug-in module
## 
##   ????-??-?? - Version 1.0.0
##      - initial release phpBB2 ver 2.0.0.
## 
##   ????-??-?? - Version 0.9.0
##      - initial BETA
##
############################################################## 
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD 
##############################################################
# 
#-----[ COPY ]------------------------------------------------ 
# 
copy root/delete_users.php to delete_users.php
copy root/language/lang_english/lang_prune_users.php to language/lang_english/lang_prune_users.php
copy root/language/lang_english/email/delete_users.tpl to language/lang_english/email/delete_users.tpl
copy root/admin/admin_prune_users.php to admin/admin_prune_users.php
copy root/templates/subSilver/admin/prune_users_body.tpl to templates/subSilver/admin/prune_users_body.tpl

# 
#-----[ OPEN ]------------------------------------------------ 
# 
memberlist.php

# 
#-----[ FIND ]------------------------------------------------ 
# 
'ROW_NUMBER' => $i + ( $HTTP_GET_VARS['start'] + 1 ),

# 
#-----[ IN-LINE FIND ]---------------------------------------- 
# 
,

# 
#-----[ IN-LINE BEFORE, ADD ]--------------------------------- 
# 
.(($userdata['user_level']==ADMIN)?'<a href="' . append_sid("delete_users.$phpEx?mode=user_id&amp;del_user=$user_id") . '"><img src="' . $images['icon_delpost'] . '" alt="' . $lang['Delete'] . ' '.$username.'" title="' . $lang['Delete'] . ' '.$username.'" border="0" /></a>&nbsp;':'')

# 
#-----[ OPEN ]------------------------------------------------ 
# 
language/lang_english/lang_admin.php

# 
#-----[ FIND ]------------------------------------------------ 
# 
?>

# 
#-----[ BEFORE, ADD ]----------------------------------------- 
#

// Start add - Prune users MOD
$lang['Prune_users'] = 'Prune users'; 
// End add - Prune users MOD

# 
#-----[ SAVE/CLOSE ALL FILES ]-------------------------------- 
# 
# EoM