vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Administrative and Maintenance Tools - Users Cleanup (https://vborg.vbsupport.ru/showthread.php?t=218210)

Vitaly 07-08-2009 10:00 PM

Users Cleanup
 
1 Attachment(s)
This mod helps to automatically delete user account upon custom-defined rules. For example, you can delete members, who didn't comfirmed emails after 3 days, delete members, who have zero posts and didn't visited your forum for a long time, and so on.

Any conditions can be defined! Cleanup can be done in both automatic and manual mode.

Difference between built-in vB user pruner:

1. Completely automated.
2. Comfotable management of multiple rules.
3. More flexible prune criterias.

Some stat for my forum (only zero-posts users were cleared):

- last user ID 50652
- total users left 19359

60% effectivity!!!

Installation:

Upload files and import product XML.

Configuration:
  • Enter ACP and go to Users -> Cleanup.
  • Create cleanup rules you needs, and save in inactive state.
  • Test you rules. Do manual cleanup, if you wish.
  • Activate rules (enable automatic cleanup), if you are satisfied with testing results.
Warning! Don't activate cleanup rules without testing! Don't forget to backup your forum database!

PS. Product is marked as beta, because i can't test all possible rules combinations. But those been used - works fine. If you have strange results duging testing, don't hesitate to post screenshot with your rule, and explain what is wrong.

Was NOT tested with 3.6.x & 3.7.x, but probably works.

This mod is delelopped here http://github.com/rcdesign/vb-users_cleanup . Patches are welcome.

Vitaly 07-09-2009 07:18 AM

Some hints. Here is current config at my site. Can't recomment to everyone, but that can give you some ideas.

User groups (upgraded on time basis):

1. Just registered - no posting permissions, upgraded after 1 day. Nice way to beat spammers.
2. Novice - specific for my forum. Limited access. Can make posts, but no writing access to "trading" categories. Upgraded after 30 days.
3. Full memfer

Cleanup rules:

1. Delete "Just registered" after 7 inactivity days.
2. Delete "Novice" with zero posts after 21 inactivity days.
3. Delete "Full Members" with zero posts after 180 inactivity days.
4. Delete "not validated emails" after 3 days.

Effectivity - 60%.

Also tested this rule: "delete old members, less than 5 posts, gone more than 2 years ago". - only 5% effectivity.

Ronald0 07-09-2009 07:55 AM

Wow, this is a very useful module, might end up using it in the future. Depending on whether or not i want to keep my statistics or not.

When you say above "havent viewed in a long time", what do mean like whats the set time?

Vitaly 07-09-2009 08:02 AM

I'm not sure, that understand your question. Any rule set depends on forum policy, and can't be generalised. All possible conditions are shown on screenshot, but values depend on each forum owner.

YISRAEL 07-09-2009 08:27 AM

Not so useful but still thanks a lot

Vitaly 07-09-2009 08:44 AM

Quote:

Originally Posted by YISRAEL (Post 1845645)
Not so useful but still thanks a lot

I don't agree. More than 50% accounts are dummy, and can be cleared, to free usernames. That make sense for big forums, and simplify maintenance in some cases.

Stats for mu forum:

- last user ID 50652
- total users (after cleanup) 19359

PS. Added statistics to mod description.

ishare 07-09-2009 10:00 AM

Vitaly you do great works.. And i appreciate it very much. This is very very useful and i will sure use it in near future. Right now i will tag it for future use. But i did want to thank you for this great job.

Frondy 07-09-2009 10:14 AM

Very useful, thanx!

installed

Little suggestion:

When testing, it displays all users defined by rule on sinle page, maybe will be better to split on several pages, e.g. 100 per page?

Vitaly 07-09-2009 10:30 AM

Added "live config" example to second post. Enjoy :)

Quote:

Originally Posted by Frondy (Post 1845675)
Little suggestion:

When testing, it displays all users defined by rule on sinle page, maybe will be better to split on several pages, e.g. 100 per page?

When your rules are active, those are applyed every days, and test results are very small. Big list can exist ONLY before first cleanup. So, I don't see reasons to overcomplicate code :)

Hint: you can increase "inactivity" value and clear users manually with several passes.

Frondy 07-09-2009 10:59 AM

Quote:

Originally Posted by Vitaly (Post 1845681)
Added "live config" example to second post. Enjoy :)



When your rules are active, those are applyed every days, and test results are very small. Big list can exist ONLY before first cleanup. So, I don't see reasons to overcomplicate code :)

Hint: you can increase "inactivity" value and clear users manually with several passes.

Yes, that is true. Before first clean up, my Firefox stops responding, but now, everithing works fine :up:

Thank You


All times are GMT. The time now is 12:34 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01278 seconds
  • Memory Usage 1,740KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete