Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Automatic Inactive Users Pruning - vB3.7 RC2 Details »»
Automatic Inactive Users Pruning - vB3.7 RC2
Version: 1.00, by J98680Bxxxxx J98680Bxxxxx is offline
Developer Last Online: Oct 2011 Show Printable Version Email this Page

Category: Add-On Releases - Version: 3.7.0 RC 2 Rating:
Released: 04-27-2008 Last Update: Never Installs: 55
DB Changes
Re-useable Code Translations  
No support by the author.

Originally Created by NeoRevan (in 2005) for vB 3.0.7.

I could not run NeoRevan?s version on vB3.7 CR2.

I also took a look at a similar Mod by Paul M (Dr Pepper Addict) on Inactive Users, but I missed some of NeoRevan?s features on it.

Thus I decided to update NeoRevan?s version to suit my needs on vB 3.7 CR2. If needed, I Will update it accordingly for vB3.7 Gold, once it?s released.

Feel free to use this Mod as you see fit, I just wished to share it with this Community. :up:

What this Mod does:
  1. Runs a daily cronjob, removing all members according to the script's configuration
  2. Exclude selected usergroups from been pruned
  3. Flag automatically selected user(s) for pruning after x days (7 by default)
  4. Email automatically selected user(s) that have been flagged (on by default)
  5. Has the ability to prune users that match ALL the following conditions:
    1. Has not visited in the last x days (30 by default)
    2. Has not posted in the last x days (30 by default)
    3. Has x or fewer posts (0 by default)
    4. Has been flagged for pruning earlier than x days (7 by default)
  6. Send email to pruned users, notifying them of their change in status membership (on by default)
  7. Send email to the admin (webmaster) for book keeping.

Installation instructions in the attachment.

Show Your Support

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

Comments
  #22  
Old 05-21-2008, 07:31 PM
J98680Bxxxxx J98680Bxxxxx is offline
 
Join Date: Jan 2008
Location: Bridge - Enterprise
Posts: 325
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Super Jinni View Post
and what about if the users who got pruned signed in and/or post a thread or post?
do they automatically remove to the group which they were belonged to before pruning?

thank you for this, I didn't notice it just now..
and currently I'm using Paul's which I really like.. but as you said, it has not features as yours..

are they work in the same way with Paul's or there is differences?
There is no automatic removal from the "Pruned Usergroup", simply because, in my forum for example, moderator(s) must ensure that pruned users are not just posting non sense of the type "Thank you, nice thread" or "Thank you, keep up the good work", etc... over and over just to get unpruned.

The basic principle for pruning is the same as with Paul's Mod. Read the "What this Mod does" from the Thread text above.
Reply With Quote
  #23  
Old 05-22-2008, 11:13 AM
Super Jinni Super Jinni is offline
 
Join Date: Mar 2008
Posts: 437
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok, I think I like this one more than Paul's Mod

I guess I have to uninstall Paul's Mod in order to install this one right?

and I think if you can make an option for the automatic removal from the "Pruned Usergroup" to turn it on/of according to some conditions depending on the cases that user has moved to the "Pruned Usergroup"

to be honest with you, I've been using Paul's Mod for a while no, and there are some users who they have been in the "Inactive Usergroups" ,and I'm afraid if I Uninstall Paul's Mod I'll have some problems with those who are now in the "Inactive Usergroup".

any suggestions?

Reply With Quote
  #24  
Old 05-22-2008, 11:38 AM
J98680Bxxxxx J98680Bxxxxx is offline
 
Join Date: Jan 2008
Location: Bridge - Enterprise
Posts: 325
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi Super Jinni,

It's up to you how you want to use these two mods. I don't think that this Mod and the one from Dr. Peper conflict. Just ensure that you specify the same usergroup Id for prumed members. In any case, you can always move pruned members to any other usergroup manually from your ACP -> Usergroups -> Usergroup Manager.

It is possible to have an automatic removal from the "Pruned Usergroup" according to some conditions. You can use the cron of this mod as basis and just change the SQL query accordingly.
Reply With Quote
  #25  
Old 05-22-2008, 12:55 PM
Super Jinni Super Jinni is offline
 
Join Date: Mar 2008
Posts: 437
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok then, I'm gonna give it a try.. I'll install it beside Paul's Mod..

if I have any problem, I'll post it here..

thanks

Reply With Quote
  #26  
Old 05-26-2008, 03:31 PM
Zelda-King's Avatar
Zelda-King Zelda-King is offline
 
Join Date: Nov 2002
Location: London, England
Posts: 674
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just ran the first cron job on 3.7 Gold. Some users were 'pruned' but they weren't put in the specified usergroup. Would that be because they'd already been inactive for well over the specified time and thus immediately deleted or what?

Am using the following config:
Code:
// The user must had logged in the forum in the last x days
$lastactivity = 365;

// The amount of days an user stays "flagged" before been pruned
$flaggedtime = 7;

// The user must have posted in the forum in the last x days
$lastpost = 365;

// Users with more than this amount of posts will not be pruned
$maxposts = 1;

// Set this to true to email the members that are been pruned
$sendmail = true;

// This is the UserGroup that will receive pruned members. 
// If you do not have such usergroup already available, 
// please create one and refer to its id number here.
$groupid = 23;

// Set here the usergroups you do NOT wish to have modified,
// seperate each groupid with a space 
$exclude = "5 6 7 10 22";
Reply With Quote
  #27  
Old 05-26-2008, 06:13 PM
J98680Bxxxxx J98680Bxxxxx is offline
 
Join Date: Jan 2008
Location: Bridge - Enterprise
Posts: 325
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Zelda-King View Post
I just ran the first cron job on 3.7 Gold. Some users were 'pruned' but they weren't put in the specified usergroup. Would that be because they'd already been inactive for well over the specified time and thus immediately deleted or what?
...
Hi Zelda-King,

On the first cron job, users get flagged, not pruned yet. Nothing get deleted. Users are moved from one usergroup to another only after the specified flagged time.

Ensure that you actually have the specified usergroup Id = 23 created, also checkout the usergroup ID of those members that were 'pruned'.

Reply With Quote
  #28  
Old 05-26-2008, 06:22 PM
Zelda-King's Avatar
Zelda-King Zelda-King is offline
 
Join Date: Nov 2002
Location: London, England
Posts: 674
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello!

Well that would explain it then. Nicely timed response too! I was just wondering why no one had changed to that usergroup and yet my member count hadn't gone down either.

What I'm not sure about is how to find which users have been flagged. Oh, and are they e-mailed at this stage or on being pruned?
Reply With Quote
  #29  
Old 05-26-2008, 08:23 PM
J98680Bxxxxx J98680Bxxxxx is offline
 
Join Date: Jan 2008
Location: Bridge - Enterprise
Posts: 325
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,

Those members flagged receive an e-mail notifying them of their situation and asking them to improve their activity status. When the specified flagged time expire, they get 'pruned' and also receive a second e-mail notifying them of their change in status.

To find users that have been flagged, you can use phpMyAdmin (on your server CPanel) and view the (last column of) user table.

Hope it help.
Reply With Quote
  #30  
Old 05-26-2008, 10:17 PM
Mum Mum is offline
 
Join Date: Jun 2006
Location: New Zealand
Posts: 660
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What does the email say? (i'm not sure how to find it to read it)
Reply With Quote
  #31  
Old 05-27-2008, 03:45 AM
Zelda-King's Avatar
Zelda-King Zelda-King is offline
 
Join Date: Nov 2002
Location: London, England
Posts: 674
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Perfectly clear. Thanks for clearing that up!
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 09:16 AM.


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.05997 seconds
  • Memory Usage 2,311KB
  • 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
  • (1)bbcode_code
  • (2)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
  • (4)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