hi all,
try this ... delete users not automatically but with a PlugIn :
PlugIn : Delete all registered users with no action on website during the last xx days
Here is the del_users.php ... copies this file into the folder : /admin/plugins .
<?php // PLUGIN_TITLE: Delete Users
$nozip = 1;
define('IN_CP', 1);
$root_path = "./../../";
define('ROOT_PATH', $root_path);
require(ROOT_PATH.'admin/admin_global.php');
define('DELETE_USERS_TITEL', "Delete Users ( Caution ! )");
define('DELETE_USERS_DAY', "Delete all registered users with no action on website during the last xx days <small><span style=\"FONT-WEIGHT: normal\">[ Here register the days ]</span></small> :");
define('DELETE_USERS_BUTTON_DEL', "Delete Users");
show_admin_header();
show_form_header("del_users.php", "del_users");
show_table_header(DELETE_USERS_TITEL, 2);
show_input_row(DELETE_USERS_DAY, "no_action", "90", 25);
show_form_footer(DELETE_USERS_BUTTON_DEL, "", 2);
$no_action = $HTTP_POST_VARS['no_action'];
if ($no_action!= ""){
$sql_del_users = "DELETE FROM ".USERS_TABLE."
WHERE user_level = 2
AND user_lastaction < ".(time()-$no_action*24*3600);
$result = $site_db->query($sql_del_users);
echo "Users deleted !";
}
show_admin_footer();
?>
Now you can go to ACP -> PlugIns -> Delete Users and delete all registered users with no action on website during the last xx days with one klick.
mawenzi