The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Find, Optionally Email and Optionally Delete Inactive Members Details »» | |||||||||||||||||||||||||||
Find, Optionally Email and Optionally Delete Inactive Members
Developer Last Online: Nov 2013
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. Show Your Support
|
Comments |
#52
|
||||
|
||||
Quote:
1. Create a new usergroup for those who are about to be deleted. Note the usergroupid. 2. In manageInactive.php Find: Code:
?> Code:
//Final Warning $finalWarning = time() - 1036800; $finalArray=$DB_site->query("SELECT username,userid,usergroupid,email,adminemail,emailDate FROM user WHERE lastactivity<$cutoffdate and emailDate<$finalWarning ORDER BY username"); while ($users=$DB_site->fetch_array($finalArray)) { if ($emailInactive AND $user[adminemail] AND $user[usergroupid]!=X ){ eval("\$subject = \"".gettemplate("inactiveFinalWarningSubject")."\";"); eval("\$message = \"".gettemplate("inactiveFinalMessage")."\";"); mail ($user[email],$subject,$message,"From: \"$bbtitle Mailer\" <$webmasteremail>"); $DB_site->query("UPDATE user set usergroupid=X WHERE userid='$user[userid]'"); echo("Emailed ". $user[username]."<br>"); } 3. Create two new templates:inactiveFinalWarningSubject and inactiveFinalMessage. Put whatever message and subject you choose in them. Please note: THIS ADDON IS UNTESTED. |
#53
|
||||
|
||||
You're AWESOME! Wow, that was REAL quick. I'll let you know how it goes!
When will you be moving this out of beta? The hack is superb as is, or are you waiting for the first user who's got his board pruned - djr |
#54
|
||||
|
||||
I am waiting for you to report sucess
Amy |
#55
|
|||
|
|||
This has been working extremely well for me, Amy.
My only "complaint" is that the first time I ran it, I had (obviously) an extremely large group of people e-mailed. Now, every day I run it, I only have 8-10. But when it hits the 31st day since the first time I ran it, it's going to grab that huge list again, minus the people who actually came back. Since I don't use the delete option...If you use it, you don't have that problem It's too bad I didn't plan ahead, and slowly decrease the number of "inactive days" when I first ran it. |
#56
|
||||
|
||||
Glad it's working for you The first delete one has me interested cause it's probably going to be rather query intensive. After the first one for larger boards though, I am not expecting any problems.
Amy |
#57
|
||||
|
||||
Quote:
Amy |
#58
|
|||
|
|||
hi amy,
i have install your Hack and its work, but now i have a aktiv User there have gotten a email in 15 Days he is deleted. why? i dont want delete a aktiv user, he have 30 Postings and the last today subu1 |
#59
|
||||
|
||||
Quote:
Sorry, been away to CEBIT in Hannover to see new cool gadgets. The first prune went without any flaw at all, though I lost approx 1750 members. OUCH! Well, there's over 3000 left, and more joining day in day out. I had problems with the Final Warning addon, so I removed that one again. I was getting parse errors, and due to being extremely busy didn't have the time to give it another try. All in all I'm extremely happy with the hack. Tme to move it out of beta! :banana: |
#60
|
||||
|
||||
Glad it worked for you djr Losing so many members must have been painful though.
Amy |
#61
|
||||
|
||||
Quote:
Amy |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|