[ABD] - Delete Inactive User Timer

Any abandoned MODs will be moved to this forum.

WARNING: MODs in this forum are not currently being supported or maintained by the original MOD author. Proceed at your own risk.
Forum rules
IMPORTANT: MOD Development Forum rules

WARNING: MODs in this forum are not currently being supported nor updated by the original MOD author. Proceed at your own risk.
TCR_500
Registered User
Posts: 175
Joined: Thu Mar 19, 2009 11:30 pm
Name: Timothy Chapman
Contact:

[ABD] - Delete Inactive User Timer

Post by TCR_500 »

Modification Name: Delete Inactive User Timer
Author: TCR_500

Modification Description: This mod adds a timer to the common.php file to delete users that have registered an account, but have not activated it yet. The time interval can be adjusted directly from the common.php file to any interval you want. By default, it's a 24-hour interval.

Modification Version: 0.5.1.2

Requirements: Use only if your Account activation setting is set to "By User". Otherwise, you will be in a race against time to activate the user before the user is deleted.

Make a backup of your database and your common.php file.

phpBB v3.0.7-LP1 or newer recommended.

Features:
  • Automatically deletes a user after a set time interval if the user has registered, but not activated their account.
  • 0.5.1.2 Update: Fixes a few bugs and adds a list of user-friendly variables to help with programming.
  • Detailed instruction set on how to install and modify this mod are included.
Demo URL: Delete Inactive User v0.5.1.2 Beta Demo
Modification Download: Delete Inactive User v0.5.1.2 Beta Download
Last edited by TCR_500 on Sun Jan 30, 2011 2:17 pm, edited 1 time in total.
Ather
Registered User
Posts: 1032
Joined: Fri May 08, 2009 9:42 am
Location: Kingdom of Bahrain
Name: Ather Akber

Re: [BETA] - Delete Inactive User Timer

Post by Ather »

incase some 1 doesnt know, you can edit this line to change the time

Code: Select all

    if($user_inactive_time == $user_regdate and $usercheck_time == $user_inactive_time + (24 * 60 * 60)) 
also, note that this mod will replace your existing common.php so if you have a forum with modifications, you'll need to be extra careful
CPL Syed Ather Akbar
Regional Command Southwest
Camp Leatherneck, Afghanistan

My Mods/Snippets
jmjm003
Registered User
Posts: 275
Joined: Sat Dec 22, 2007 7:05 pm

Re: [BETA] - Delete Inactive User Timer

Post by jmjm003 »

Lets do this again after looking at your file better versus mine.

Is it correct to say. All we need to do is find

Code: Select all

?>
in common.php

And add before

Code: Select all

$usercheck_time = time();
$sql_usercheck = "SELECT * FROM " . USERS_TABLE . " WHERE user_inactive_reason='1' ";
$result_usercheck = $db->sql_query($sql_usercheck);
while($row_usercheck = $db->sql_fetchrow($result_usercheck))
{
	$user_id = $row_usercheck['user_id'];
	$user_inactive_time = $row_usercheck['user_inactive_time'];
	$user_regdate = $row_usercheck['user_regdate'];
	if($user_inactive_time == $user_regdate and $usercheck_time == $user_inactive_time + (24 * 60 * 60))
	{
		$sql_usercheck_remove = "DELETE FROM " . USERS_TABLE . " WHERE user_inactive_time='$user_inactive_time' ";
		$result_usercheck_remove = $db->sql_query($sql_usercheck_remove);
	}
}
I appreciate the mod. It's dangerous to just give a new copy of a file. You and I both know someone is going to overwrite their current one and possibly cause issues with other mods. Should they? No.

If you could confirm the changes then it's simple enough to just mod your own file.
TCR_500
Registered User
Posts: 175
Joined: Thu Mar 19, 2009 11:30 pm
Name: Timothy Chapman
Contact:

Re: [BETA] - Delete Inactive User Timer

Post by TCR_500 »

Those are the changes I made to the file. I will fix that problem with the files being overridden so it won't accidentally override any other modifications that might be there.
User avatar
heredia21
Registered User
Posts: 942
Joined: Sun Apr 18, 2010 6:14 pm
Contact:

Re: [BETA] - Delete Inactive User Timer

Post by heredia21 »

Have you fixed the problem?
Best BlackBerry website for all users! BlackBerry News - http://blackberryempire.com
TCR_500
Registered User
Posts: 175
Joined: Thu Mar 19, 2009 11:30 pm
Name: Timothy Chapman
Contact:

Re: [BETA] - Delete Inactive User Timer

Post by TCR_500 »

Not yet. I'm not that fast at coding. Plus, I can't find the control that tells the software if the user is an admin or not.
jmjm003
Registered User
Posts: 275
Joined: Sat Dec 22, 2007 7:05 pm

Re: [BETA] - Delete Inactive User Timer

Post by jmjm003 »

A new, unactivated user wouldn't be an admin to begin with. Or, did I completely miss what you were talking about?
TCR_500
Registered User
Posts: 175
Joined: Thu Mar 19, 2009 11:30 pm
Name: Timothy Chapman
Contact:

Re: [BETA] - Delete Inactive User Timer

Post by TCR_500 »

I'm building an install file that adds the code at the end of the common.php file. It requires an admin to run the script.
User avatar
robra
Registered User
Posts: 147
Joined: Thu Dec 09, 2010 2:09 am
Location: Brazil

Re: [BETA] - Delete Inactive User Timer

Post by robra »

Hi.
The link to download is broken.

Thanks
User avatar
robra
Registered User
Posts: 147
Joined: Thu Dec 09, 2010 2:09 am
Location: Brazil

Re: [BETA] - Delete Inactive User Timer

Post by robra »

IS IT A JOKE ???

Now, the download link is redirecting to Walmart comercial page(*no spamming please* )
Could someone fix that problem to download the correct MOD ?

Thank you.
Last edited by marian0810 on Thu Jan 20, 2011 9:53 am, edited 1 time in total.
Reason: http://www.phpbb.com/rules/#rule1k , http://www.phpbb.com/rules/#rule1h
User avatar
tumba25
Former Team Member
Posts: 4430
Joined: Wed Jun 06, 2007 6:42 am
Location: Kokkola, Finland.
Name: Jari Kanerva
Contact:

Re: [BETA] - Delete Inactive User Timer

Post by tumba25 »

The MOD author has not replied in this topic since July 29th 2010, so I'll lock this as abandoned.

If you, the MOD author, wants to continue developing this MOD, please contact a MOD team member.
Need a mod/extension created/installed, other custom-coded solution or a server admin? https://tumba25.net
User avatar
tumba25
Former Team Member
Posts: 4430
Joined: Wed Jun 06, 2007 6:42 am
Location: Kokkola, Finland.
Name: Jari Kanerva
Contact:

Re: [ABD] - Delete Inactive User Timer

Post by tumba25 »

The MOD author wants to continue developing this MOD so I'll unlock the topic.
Need a mod/extension created/installed, other custom-coded solution or a server admin? https://tumba25.net
User avatar
robra
Registered User
Posts: 147
Joined: Thu Dec 09, 2010 2:09 am
Location: Brazil

Re: [ABD] - Delete Inactive User Timer

Post by robra »

Great...

The TCR_500 gave me the new link address to download:
Delete Inactive User v0.5.1.2 Beta
I already installed it and I have one question:
If I will want change the delete time of the inactive user for 3 days(72 hours), then I will change the line:

Code: Select all

// Use above variables as referance.
$delete_user_time = 24 * $timespan_hour;	// 24 hours is default!
To:

Code: Select all

// Use above variables as referance.
$delete_user_time = 72 * $timespan_hour;	// 24 hours is default!
Or:

Code: Select all

// Use above variables as referance.
$delete_user_time = 3 * $timespan_day;    // 24 hours is default!
Thank you, very much.
Last edited by robra on Sat Jan 29, 2011 1:35 am, edited 1 time in total.
User avatar
robra
Registered User
Posts: 147
Joined: Thu Dec 09, 2010 2:09 am
Location: Brazil

Re: [ABD] - Delete Inactive User Timer

Post by robra »

Hi, TCR_500.

If could look my request of MOD on page http://www.phpbb.com/community/viewtopi ... &t=2118741, I will appreciate a lot.
This request MOD is about "Auto Remind Inactives Users + Auto Delete Them".
The idea is that it work basically this way:
An user created an account but not activated it.
After the first day of created your account, the user will receive an e-mail automatically reminding him that your account was created but not activated yet and he has 2 days more to do that.
After the second day of created your account, the user will receive an e-mail automatically reminding him that your account was created but not activated yet and he has 1 days more to do that.
After third day of created your account, the user will receive an e-mail automatically notifying that your account was deleted because expired the time to activate it.
It's a suggestion only.

Thank you. ;)
User avatar
robra
Registered User
Posts: 147
Joined: Thu Dec 09, 2010 2:09 am
Location: Brazil

Re: [ABD] - Delete Inactive User Timer

Post by robra »

robra wrote:Great...

The TCR_500 gave me the new link address to download:
Delete Inactive User v0.5.1.2 Beta
I already installed it and I have one question:
If I will want change the delete time of the inactive user for 3 days(72 hours), then I will change the line:

Code: Select all

// Use above variables as referance.
$delete_user_time = 24 * $timespan_hour;	// 24 hours is default!
To:

Code: Select all

// Use above variables as referance.
$delete_user_time = 72 * $timespan_hour;	// 24 hours is default!
Or:

Code: Select all

// Use above variables as referance.
$delete_user_time = 3 * $timespan_day;    // 24 hours is default!
Thank you, very much.
The 2 ways are right.

Thanks.
;)
Locked

Return to “[3.0.x] Abandoned MODs”