Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Find, Optionally Email and Optionally Delete Inactive Members Details »
Find, Optionally Email and Optionally Delete Inactive Members
Mod Version: 1.00, by amykhar (Member) amykhar is offline
Developer Last Online: Nov 2013 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 2.2.x Rating: (0 vote - 0 average) Installs: 17
Released: 16 Feb 2003 Last Update: Never Downloads: 19
Not Supported Is in Beta Stage  

This hack is designed to allow you to:

a) Find users who have not logged in to your board in X days. X is configurable by you in the control panel.

b) Email the inactive users. When the email is set, the date is recorded so that you will not email them again within X days

c) Delete the inactive users. This can happen in two ways:
1) If you don't have email users set, it will simply delete users who have not logged in to your forums in the past X days.
2) If you have emails turned on, it will delete users who have not logged in during the past X days AND who were sent the warning email more than 15 days before.

The email is a template configurable by you.

Here is how this hack will behave:

If you have email on and delete off, it will email inactive users every X days.

If you have email on and delete on, it will email a warning then delete 15 days later.

If you have emails off and delete on, it will delete users who have been incactive for X days.

If you have email off and delete off, it will list the inactive users for you in a very crude plain text list.

This is not a hack for newbies. If you don't know how to run Queries, don't touch this hack. It is still In Beta. If I get bored and ambitious, I will write an install script and make it idiot-proof.

Screen Shots to Follow

I will Support this hack for users with some hacking experience. I will fix bugs. I will not teach hacking basics though.


!Important - After You Install the hack, go to your Control Panel and Set the Options! Otherwise it will NOT work.

Download Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Optionally Show thread preview explicitly on forumdisplay amykhar vBulletin 3.0 Template Modifications 9 30 Nov 2006 04:34
Optionally open thread in new window ericgtr vBulletin 3.5 Template Modifications 25 29 May 2006 13:12

  #16  
Old 16 Feb 2003, 21:03
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Real name: Amy
Originally posted by tkeil69575
hi amy,
thank you for this great hack

i have a couple of questions. the variable $daysInactive in the inactiveEmailMessage template doesnt seem to be working. its not including the number of days inactive in the email.

Is it correct the in the colum emailDate in the user table all values are "127" ? and that they dont change when users are emailed? I have a feeling there should be a unix timestamp in there? or is that the 15 days value?

thanks for your help
tina
You caught a glitch in the install instructions. Change the emailDate to Int instead of TinyInt and it should fix that problem.

Regarding the $daysInactive, it worked for me. I will look into it.

I have updated the zip file reflecting the query change.
__________________
amykhar.com
----------------------------------------
I do not respond to PM requests for coding assistance.
Reply With Quote
  #17  
Old 16 Feb 2003, 21:05
tkeil69575 tkeil69575 is offline
 
Join Date: Nov 2001
great stuff - thanks amy
Reply With Quote
  #18  
Old 16 Feb 2003, 21:11
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Real name: Amy
Found the problem. In the message template, change daysInactive to inactiveDays. That should do it.
__________________
amykhar.com
----------------------------------------
I do not respond to PM requests for coding assistance.
Reply With Quote
  #19  
Old 16 Feb 2003, 21:18
tkeil69575 tkeil69575 is offline
 
Join Date: Nov 2001
yep that did it - working great now - thanks
Reply With Quote
  #20  
Old 16 Feb 2003, 21:19
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Real name: Amy
No prob. Thanks for helping to test it.

Amy
__________________
amykhar.com
----------------------------------------
I do not respond to PM requests for coding assistance.
Reply With Quote
  #21  
Old 17 Feb 2003, 16:43
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Real name: Dean Clatworthy
Sounds good so far... I'll wait till this is out of beta before i install

Regards

- miSt
__________________
Dean Clatworthy - Web Developer/Designer
Reply With Quote
  #22  
Old 17 Feb 2003, 17:28
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Real name: Amy
I am going to give it a few more days. I think It's good to go, but want to wait and see if anyone else has issues.

Amy
__________________
amykhar.com
----------------------------------------
I do not respond to PM requests for coding assistance.
Reply With Quote
  #23  
Old 17 Feb 2003, 22:57
djr's Avatar
djr djr is offline
 
Join Date: Nov 2001
Real name: Jean-Paul
Does this email every users with xxx inactive days regardless of their usergroup? I have a seperate usergroup 'inactive' which holds all members who were inactive for a year and longer. I want to test it on myself first though (by manually putting myself to 365 inactive days)

Great hack! Absolutely what I've been waiting for!

/me clicks *installed*

- djr
Reply With Quote
  #24  
Old 17 Feb 2003, 22:59
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Real name: Amy
Regardless of the user group, it emails them.

Amy
__________________
amykhar.com
----------------------------------------
I do not respond to PM requests for coding assistance.
Reply With Quote
  #25  
Old 17 Feb 2003, 23:03
djr's Avatar
djr djr is offline
 
Join Date: Nov 2001
Real name: Jean-Paul
Sorry, already found out! The answer is obviously in the output of manageInactive.php
Ok, have to set myself to a longer inactive time then!

Thanks for the prompt answer

- djr
Reply With Quote
  #26  
Old 18 Feb 2003, 19:56
djr's Avatar
djr djr is offline
 
Join Date: Nov 2001
Real name: Jean-Paul
I'm having troubles, or I don't understand the hack. It installed without problems. I've set the options 'Email' and 'Delete' both to ON, so users will be warned first, wait for 15 days and then deleted if I understood correctly?

I add a user via vB Admin CP with the following info:
Username: Testuser
Usergroup: Inactive
Join Date: 1999-01-01 01:00:00
Last Activity: 1999-01-01 01:00:00 (same for Last Post and Last Visit)
All other relevant info set.

Fire up manageInactive.php. Output: Email Testuser
And boom! The user is deleted immediately, instead of waiting for fifteen days.

The e-mail got sent out, though (I used my own email-address). When I search for 'Testuser' in phpMyAdmin in the User table, NADA! Same for vB Admin CP.

What am I doing wrong? Please advise.

- djr
Reply With Quote
  #27  
Old 18 Feb 2003, 20:24
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Real name: Amy
I know what the problem is. Back in a sec with the fix.

Amy
__________________
amykhar.com
----------------------------------------
I do not respond to PM requests for coding assistance.
Reply With Quote
  #28  
Old 18 Feb 2003, 20:28
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Real name: Amy
K, fixed. I updated the zip file. To upgrade, open your manageInactive.php and

Find:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Add After

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

__________________
amykhar.com
----------------------------------------
I do not respond to PM requests for coding assistance.
Reply With Quote
  #29  
Old 18 Feb 2003, 20:57
djr's Avatar
djr djr is offline
 
Join Date: Nov 2001
Real name: Jean-Paul
Thanks for the quick fix!
I have been looking up and down the .php file, but just couldn't find it.. shows I'm better at hacking than coding

All working great now.

If you want the lost password added to the message:
If you lost your password for $bbtitle, please click the following link and follow the procedure. A new password will be set and emailed to you.
$bbtitle/member.php?s=&action=lostpw
Reply With Quote
  #30  
Old 18 Feb 2003, 21:38
djr's Avatar
djr djr is offline
 
Join Date: Nov 2001
Real name: Jean-Paul
Sorry, back again

As this hacks only deletes the user, but leaves the redundant user settings (customavatar, private messages, etc etc) in the db, I was wondering if it's possible to update this hack so it deletes everything bound to that userid?
In admin/user.php there's already the php code for it (find // ###################### Start Remove #######################). Or maybe alot easier, just redirect to the user.php with all the paramaters necessary (userid, http_action 'kill'). I'd love to do it myself, but as said in my earlier post, I can't code :-(

Thanks for looking into it!

- djr
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 15:42.

Layout Options | Width: Wide Color: