Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Automatic Inactive Users Pruning Details »»
Automatic Inactive Users Pruning
Version: 2.1.1, by Revan Revan is offline
Developer Last Online: Jun 2014 Show Printable Version Email this Page

Version: 3.0.7 Rating:
Released: 03-27-2005 Last Update: 05-16-2005 Installs: 20
DB Changes
 
No support by the author.

As requested by Watson here.

What this hack does:
  • Runs a daily cronjob, removing all members according to the script's configuration
  • Flag an user for deletion after x days (15 by default)
  • Email an user that has been flagged (off by default)
  • Has the ability to prune users that match ALL these conditions:
    • Has not visited in the last x days (30 by default)
      AND
    • Has not posted in the last x days (30 by default)
      AND
    • Has x or fewer posts (0 by default)
      AND
    • Has been flagged for deletion earlier than x days (15 by default)
  • Send email to deleted users, notifying them of their terminated membership (off by default)
  • Ability to move to a different usergroup instead of deleting them

To get started, simply read the attached .txt file


//peace

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 04-10-2005, 04:07 PM
Revan's Avatar
Revan Revan is offline
 
Join Date: Jan 2004
Location: Norway
Posts: 1,671
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hm damn, I made a silly mistake.
Find:
PHP Code:
else if (!isset($members['deleflag'])) 
Replace with:
PHP Code:
else if (!$members['deleflag']) 
Reply With Quote
  #13  
Old 04-10-2005, 04:15 PM
Ala21 Ala21 is offline
 
Join Date: Feb 2005
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great, now the flagging works. Thank you *installed*
Reply With Quote
  #14  
Old 04-11-2005, 07:40 PM
djr's Avatar
djr djr is offline
 
Join Date: Nov 2001
Location: Amsterdam
Posts: 220
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Revan
Thanks people
When I get home I will further improve this hack, by flagging the users for deletion, emailing them about the fate of their accounts, then after x amount of days (config), if the user still applies to the "flagged for deletion" groups, delete them (and optionally mail them about it).
This would be very very welcome .. I used to have Amy's excellent hack for vB2, so yours might be a good heir to that throne. Any update on your progress so far? Will install immediately once these features are incorporated.
Reply With Quote
  #15  
Old 04-11-2005, 11:39 PM
laborer75 laborer75 is offline
 
Join Date: Dec 2004
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Revan
Thanks people
When I get home I will further improve this hack, by flagging the users for deletion, emailing them about the fate of their accounts, then after x amount of days (config), if the user still applies to the "flagged for deletion" groups, delete them (and optionally mail them about it).
I too would love to see these options. Then you can warn them and give them so many days to get thier a*ses in gear and post before removing them completely. Then after x amount of days they have been warned, an email telling them they suck. LOL. Hope to see this happen soon. Would love to install this hack....
Reply With Quote
  #16  
Old 04-12-2005, 07:09 AM
Revan's Avatar
Revan Revan is offline
 
Join Date: Jan 2004
Location: Norway
Posts: 1,671
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by djr
This would be very very welcome .. I used to have Amy's excellent hack for vB2, so yours might be a good heir to that throne. Any update on your progress so far? Will install immediately once these features are incorporated.
Quote:
Originally Posted by laborer75
I too would love to see these options. Then you can warn them and give them so many days to get thier a*ses in gear and post before removing them completely. Then after x amount of days they have been warned, an email telling them they suck. LOL. Hope to see this happen soon. Would love to install this hack....
Quote:
Originally Posted by Revan
What this hack does:
[...]
  • Has x or fewer posts (0 by default)
    AND
  • Has been flagged for deletion earlier than x days (15 by default)
Nuff said
Reply With Quote
  #17  
Old 05-17-2005, 12:20 PM
Dave-G Dave-G is offline
 
Join Date: Oct 2001
Location: Cornwall, UK
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Rather than deleting, is it possible to simply move them to another group?

So you'd have two options:

1. notify via email, add to a list, delete.

2. notify via email, add to a list, move to another group.
Reply With Quote
  #18  
Old 05-17-2005, 04:34 PM
Revan's Avatar
Revan Revan is offline
 
Join Date: Jan 2004
Location: Norway
Posts: 1,671
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I wrote some quick code which I think will work, let me know if it doesn't work and/or left some statistic on the forum un-updated
Reply With Quote
  #19  
Old 06-27-2005, 07:25 AM
waza waza is offline
 
Join Date: Apr 2005
Location: Belgium
Posts: 341
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thx,
I have made an addon on this, so you can exclude usergroups from been pruned,
you can find it here: https://vborg.vbsupport.ru/showthread.php?t=91159
Reply With Quote
  #20  
Old 07-25-2005, 10:23 PM
djr's Avatar
djr djr is offline
 
Join Date: Nov 2001
Location: Amsterdam
Posts: 220
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I finally installed this hack, but you forgot one big thing: the deleteflag isn't unset when the user decides to visit the forum again. It will be set forever for that user. Thanks for the great hack, hope this will be solved.

Moreover, I've improved the performance of this script by editing the datatype of the 'deleflag' column to unsigned int (10). This is quite dangerous, as the default value is 0. Therefore the script needs to be modified a little:

PHP Code:
 if ($members['deleflag'] <= (TIMENOW - ($flaggedtime 86400)) AND !empty($members['deleflag'])) 
to
PHP Code:
 if ($members['deleflag'] <= (TIMENOW - ($flaggedtime 86400)) AND $members['deleflag'] > 0
and
PHP Code:
 else if (!$members['deleflag']) 
to
PHP Code:
 else if ($members['deleflag'] == 0
Reply With Quote
  #21  
Old 07-31-2007, 07:54 PM
brfrankl's Avatar
brfrankl brfrankl is offline
 
Join Date: Jul 2007
Posts: 72
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

anyone know if this works with 3.6.7??
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 06:59 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.08813 seconds
  • Memory Usage 2,319KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (6)bbcode_php
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete