Author |
Topic |
MotoX
Junior Member
201 Posts |
Posted - 25 February 2002 : 12:14:54
|
OK, this mod is pretty simple, it's my first MOD so don't be terribly disappointed if it's a little lame.
Purpose: I had a lot of people registering on my forums and never returning. Also, I had some people who had joined and posted once or twice, but never returned. Insead of fishing through the members.asp page to find who I should delete, I decided to write a page that makes the decision based on criteria that is hard-coded into the page. (Pretty stupid, huh?)
How it works: Open admin_iamem.asp in a text editor and look for the lines:
' ###########Set your time in days here for members with no posts ########### if strOnlineTDays > 90 then ' ################### strShowDelete = 1 strOnlineTDays = " Inactive Member " else strShowDelete = 0 strOnlineTDays = " Active Member " end if elseif rs("M_POSTS") <> 0 then ' ###########Set your time in days here for members with posts ############ if strOnlineTDays > 180 then ' ###################### strShowDelete = 1 strOnlineTDays = " Inactive Member " else strShowDelete = 0 strOnlineTDays = " Active Member " end if
The top one that you change is to specify how many days a member with no posts should not be seen to be consdered inactive. (Obviously) the bottom one is the same but for members WITH posts. (That one is more critical, and depends on how often you archive, you don't want to delete members with posts that are still active)
Installation: Look for the changes in admin_home.asp (All this does is add a link on the admin options page)
Upload -admin_iamem.asp -pop_warn_mail.asp -not.gif
That's it. super easy.
Useage: When you go to admin_iamem.asp, you will see all of your members, paged, and in descending order from their last visit. Anyone who meets the "inactive" criteria will have the delete icon, everyone else will have the not icon.
PLEASE, if anyone knows ASP, FEEL FREE to tweak this, by no means is this meant to be a finished product.
Revision History: rev .0001.1 Added a column with the ability to warn members via e-mail before deleting them. (zip updated)
Download: http://www.provthunder.com/iamem.zip
Sorry, no demo.
Edited by - MotoX on 25 February 2002 17:50:13
Edited by - motox on 22 March 2002 08:48:51 |
|
freddydoes
Junior Member
108 Posts |
Posted - 25 February 2002 : 17:04:44
|
motox, this is a very cool mod, it would be cooler is after like 30 days an email could be sent to the inactive user warning them that thier account will be deleted soon.
and if there could be a check box to delete large amounts of users at once.
http://www.physicsforums.com
Edited by - freddydoes on 25 February 2002 17:05:55 |
|
|
MotoX
Junior Member
201 Posts |
Posted - 25 February 2002 : 17:46:43
|
freddydoes, ask and you shall receive. I added a mail column to the table that does a pop_mail type thing to the user with a pre-defined message.
|
|
|
freddydoes
Junior Member
108 Posts |
Posted - 26 February 2002 : 01:36:46
|
great moto, talk about service!
everything works great! however is there an automatic way to warn everyone? clicking all those icons is hard on the hands.
http://www.physicsforums.com
Edited by - freddydoes on 26 February 2002 02:00:21 |
|
|
MotoX
Junior Member
201 Posts |
Posted - 26 February 2002 : 07:42:15
|
that's where I was kina torn...
I didn't want to make the whole process too automated, as I din't want the script to go blasting at my members table. However, it could be done so that a checkbox is put next to each member and a button at the bottom would delete them all.
The problem with that is, that I am not THAT good at asp to effectively set that up. COULD, but it would take forever. If anyone can help with this part please let me know. Otherwise, I will try to do it myself... ugh!
|
|
|
freddydoes
Junior Member
108 Posts |
Posted - 26 February 2002 : 11:30:18
|
i'll see what I can come up with, i have around 800 members, so if there were a button i would press what would warn all inactive members... not delete... yet, it would really be useful.
http://www.physicsforums.com |
|
|
stwilson
Junior Member
USA
385 Posts |
Posted - 18 March 2002 : 14:42:43
|
Where do I get the download? I'm getting a 404 on the one in the first post.
STW |
|
|
Classicmotorcycling
Development Team Leader
Australia
2084 Posts |
|
MotoX
Junior Member
201 Posts |
|
mortioli
Average Member
United Kingdom
898 Posts |
Posted - 19 March 2002 : 16:52:49
|
Nice, but problem. The images don't do anything!
Oli
www.mortioli.co.uk |
|
|
MotoX
Junior Member
201 Posts |
Posted - 20 March 2002 : 07:27:25
|
quote: Nice, but problem. The images don't do anything!
Good description of your problem. It makes it easy to help you troubleshoot...
Which images?? On what page? What do you think they are supposed to "do"?
|
|
|
mortioli
Average Member
United Kingdom
898 Posts |
Posted - 20 March 2002 : 08:45:31
|
I mean...
The images on iamem.asp (or whatever its called), don't do anything. The images as in the little red circle with a line through, and they show up for all my members, even though most of them are active people!
I don't have any option to delete, or send an email.
Oli
www.mortioli.co.uk |
|
|
MotoX
Junior Member
201 Posts |
Posted - 21 March 2002 : 11:19:21
|
you need to read the readme again.
Active users will NOT be deleted. That's why they get the red circle w/ the line through them. They are considered active.
Try plaing with the criterial also, this will make some of your users inactive....
|
|
|
netanel
New Member
Israel
89 Posts |
Posted - 21 March 2002 : 21:24:36
|
the link dosent work.....
|
|
|
MotoX
Junior Member
201 Posts |
Posted - 22 March 2002 : 08:50:06
|
I changed the link in the original post for everyone who didn't see the post I made with the new link.
Please read this entire thread and the readme included with the download
|
|
|
Vidar13
New Member
USA
51 Posts |
Posted - 28 March 2002 : 14:09:57
|
MotoX, this is a great little mod! It's simple, yet brilliant! Would like to see a future version that has a global email and delete as an option, instead of having to do each one. I have, for example, about 2,000 members that either need to be warned or deleted, so this would be a great time-saver.
Suburbia: Where they tear out trees and then name streets after them. |
|
|
Topic |
|