Nice I love the concepts you guys have been working on. I am looknig forward to something like this to clean up some of the clutter that is happening of inactive users or inactive emails. I really like theidea of it deleting everything that was related to that one user including his posts. Nice idea's. Again I am glad I have recieved some great fedback here. You guys are fantastic. Looking forward to something to help me out here.
delete user is functional -just dont delete ALL my test users -if you do add a few back in for others to test with
suspend user isn't implemented yet
i have discovered though if i use nuke_users_temp i have to either modify the structure (and potentially any file that uses that table) or drop all the extra user data (sig, icq, aim, etc) so i think i'm just gonna create a table with the exact structure of nuke_users and call it nuke_users_suspend
that also means i'll have to create a re-activation section for Your_Account
i'll prolly just make it an add in file like
modules.php?name=Your_Account&file=reactiv&code=E4h5G6af
my goal is to have this only add files to nuke rather that hack up exsisting ones (it'll make upgrading nuke easier)
Lestat Sergeant
Joined: Aug 31, 2003
Posts: 127
Posted:
Sun Nov 02, 2003 12:10 am
I love it!! that is exactly what I am looking for in helping me clean some of the unused space on the site. disgruntledtech you DA MAN!!! I am very excited to see the finished product! Nice JOB! Are you going to place a link for download for us when done?
Boy I am really happy you guys took this project on. Very thankful to all of you! Especially disgruntledtech !! And to the forum Moderator who made this a sticky for me! NukeCops has been very helpful to me for a long time now. I am still a beginner whenit comes to PHP but learning. I cannot stop trying to write though. It is addictive.... HOpefully one day I can become as good as you all... If anyone has any good sies for php tutorials I would be appreciative in some links to be posted here. ) Again thanks disgruntledtech for spending your time making this for us.
disgruntledtech Site Admin
Joined: Apr 14, 2003
Posts: 994
Location: Tulsa, OK
Posted:
Sun Nov 02, 2003 12:44 am
Lestat wrote:
thanks disgruntledtech for spending your time making this for us.
no thanks needed really. thanks for letting giving us the idea!
and of course i'll have it for d/l once i get suspend/unsuspend worked in.
the delete option only deletes the user from the usertable eventually i want to add a radio next to delete/suspend for 'purge' whice will wipe all traces of a user from the db
Erased.... from existence! -i dug that one up earlier LOL
i think i could also add an optional portion to notify the user if they try to login to a susended account but it would require editing the exsisting Your_Account module
Lestat Sergeant
Joined: Aug 31, 2003
Posts: 127
Posted:
Sun Nov 02, 2003 12:56 am
LOL love the wav!!
Yeah you have come up with some nice ideas. You definitly deserve a thanks for this one. You Da Man! Damn I am so excited!! I cannot wait to see what you have when done. You keep throwing more and more ideas out on this one. I love it...
Lestat Sergeant
Joined: Aug 31, 2003
Posts: 127
Posted:
Tue Nov 04, 2003 1:30 am
Any luck on a release soon?
mikem Theme Guru
Joined: Jan 13, 2003
Posts: 1582
Location: Corn fields of Indiana
Posted:
Wed Nov 05, 2003 12:12 pm
Quote:
And to the forum Moderator who made this a sticky for me!
Looks good so far. One feature that would be nice is a 'select all' button to suspend or delete. I were to run it for all accounts last seen 6 months ago, I'd probably get 50 000. Kinda hard to click suspend for each
Looks good so far. One feature that would be nice is a 'select all' button to suspend or delete. I were to run it for all accounts last seen 6 months ago, I'd probably get 50 000. Kinda hard to click suspend for each
yeah that kinda thing is best handled with javascript so i kinda left it out until the end but it will be in the final version.
i haven't laid down much code in the last few days but heres how i've decided to manage users when suspended:
all users data is moved to nuke_users_suspend (which is identical in structure except it has an extra field for suspend date and activation code)
now that will get them suspended. to reactivate a user i'll have to add a reactivate.php so the link in their email will look like modules.php?name=Your_Account&file=reactivate&code=463123379
but that will allow a user account to stay in suspend forever so i'll have to write a section that we can add to any file that is view frequently that clears 'dead' users from the db if they are past thier reactivation time.
but what do we do about users who dont check their mail?
should the login process be modified to tell a user 'your un/pw is correct but your account has been deactivated please check your email at superguy@hotmail.com for your reactivation instructions' or should we just modify it so that if they login their account becomes unsuspended.
thoughts?
Lestat Sergeant
Joined: Aug 31, 2003
Posts: 127
Posted:
Sun Nov 09, 2003 11:44 pm
Hmm good question considering not all emails go out to hotmail, yahoo, aol, and others all the time. I currently use resend email module to resend these type of emails not going out. I have to check daily.
Code:
<?php
/************************************************************************/
/* PHP-NUKE: Web Portal System */
/* =========================== */
/* */
/* Copyright (c) 2002 by Francisco Burzi */
/* http://phpnuke.org */
/* */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License. */
/************************************************************************/
/************************************************************************/
/* Module by Gaylen Fraley */
/* http://gaylenandmargie.com/phpwebsite */
/* For use with nuke 6.5 - it may work on 6.0 though. */
/* 05/09/2003 - Released */
/* 05/18/2003 - Fixed password display in email and added hyperlink */
/* to the display to allow the Admin to activate the user */
/* right from the module. The password will now be changed */
/* when resending the email. */
/* 05/19/2003 - Added Modification facility to allow the Admin to make */
/* selected modifications to the temporary record. */
/************************************************************************/
if (!eregi("modules.php", $_SERVER['PHP_SELF'])) {
die ("You can't access this file directly...");
}
require_once("mainfile.php");
if (!is_admin($admin)) die ("Access Denied");
$module_name = basename(dirname(__FILE__));
get_lang("Your_Account");
$userpage = 1;
This is the resend module I have to use every day and check on what is sitting the nuke_users_temp . So this question you ask is a tough one......
disgruntledtech Site Admin
Joined: Apr 14, 2003
Posts: 994
Location: Tulsa, OK
Posted:
Sat Nov 15, 2003 2:42 am
alrighty heres a progress update:
there are now 3 types of searches:
missing information
last seen
suspended
step 2 now has nifty javascript for select all/unselect one
suspend is functional (no email sent yet)
all users info is backed up in nuke_users_suspend when suspended
unsuspend by user using modules.php?name=Your_Account&file=reactivate&username=whatever&code=jf45g64g6d6 (should work regardless of any changes to the Your_Account module)
todo before release:
do send email when account is suspended
do send email when account is deleted (as an option)
add date suspended to _suspend
do unsuspend by admin
currently all fields are deactivated then activated by javascript. once the format is done i'll deactivate them with an onload event (to ensure compatibility for non javascript browsers)
do activate users in _temp
added after initial release:
search types for "unactivated" and "information matches(email contains @hotmail.com, sig is too big, etc)"
add search type for dead avatar(and an action to reset it)
add "super delete" or "purge" option -remove everything associated with a user -posts, PMs, journals, etc
user table backup/export
user table restore/import
NOTE: the script makes use of simple javascript to help understand the form and prevent mistakes but it will NOT rely on it
i still havn't figured out how i want to handle a user logging in but being in the suspend table -currently it'll just give them a bad user/pass error -might have to hack an option to change email/resend email to when a suspended user logs in.
Last edited by disgruntledtech on Sat Nov 15, 2003 1:52 pm; edited 1 time in total
hamesh Support Mod
Joined: Feb 13, 2003
Posts: 170
Location: Canada
Posted:
Sat Nov 15, 2003 10:13 am
Wow. Interface is much cleaner. Nice job on the select-all function. I was thinking the same thing for when a suspended user tries to login. Probably need to hack the Your_Account login so it checks nuke_users_suspend and if user is in table, display a message like 'this account has been suspended. Click here to sent activation email' or maybe just 'email admin to re-activate account' or something like that.
_________________
Lestat Sergeant
Joined: Aug 31, 2003
Posts: 127
Posted:
Sun Nov 16, 2003 12:05 am
AWESOME job! I am salavating over here! Looking forward to your release once done. Well done Disgruntletech!
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum