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

Vitaly 07-09-2009 11:16 AM

Frondy, could you publish statistics for your forum? Last user ID and total members after cleanup?

Frondy 07-09-2009 11:21 AM

Quote:

Originally Posted by Vitaly (Post 1845692)
Frondy, could you publish statistics for your forum? Last user ID and total members after cleanup?

20.354 last ID
10,880 after

I have filtered just members not active for 365 days and with no posts

:D

thedvs 07-09-2009 03:40 PM

this is a big ask, but could you add an addon like a counter for the post thanks hack?
some boards, we just use the thanks hack so people dont post useless threads

so we can check 0 posts 0 thanks etc

Vitaly 07-09-2009 04:13 PM

I'm not sure, that will customize this mod in nearest future for third-party products. The only good news, that mod is reuseable :)

TWTCommish 07-09-2009 07:04 PM

Looks interesting; what's the difference between vBulletin's built-in user pruning options and this? More criteria?

Vitaly 07-09-2009 07:16 PM

Quote:

Originally Posted by TWTCommish (Post 1845974)
Looks interesting; what's the difference between vBulletin's built-in user pruning options and this? More criteria?

1. Completely automated.
2. Manage multiple rules.
3. More flexible criterias.

PS. added to mod description.

Black Tiger 07-11-2009 12:10 PM

Thank you Vitaly, I was just looking for something like this! Marked installed! :)

smirkley 07-11-2009 05:26 PM

I like this.

I used to have a mod that removed unverified accounts after 7 days if the member did not verify by email.

What settings would I use to do the same with your mod?

Black Tiger 07-14-2009 12:10 AM

Question. How does this get automated? I just installed and configured and marked the rule active. But I don't see any crontab appearing in the Scheduled task manager. How is it made automated then?

Alfa1 07-14-2009 03:42 PM

Would be really useful to my board, if inactive members get reminder emails first. This would certainly increase the number of active members on a board. Just deleting the inactive accounts without trying to get those members active first, seems to be missing the boat.

a9eel 07-14-2009 07:24 PM

thx Vitaly keep the good work

Vitaly 07-18-2009 10:56 AM

Quote:

Originally Posted by Alfa1 (Post 1848671)
Would be really useful to my board, if inactive members get reminder emails first. This would certainly increase the number of active members on a board. Just deleting the inactive accounts without trying to get those members active first, seems to be missing the boat.

Sorry, no. I consider such methods as "abusing".

Sunka 08-10-2009 02:50 AM

Quote:

Originally Posted by Black Tiger (Post 1848346)
Question. How does this get automated? I just installed and configured and marked the rule active. But I don't see any crontab appearing in the Scheduled task manager. How is it made automated then?

Installed and want to know answer for quoted question too!
And how to manually delete users? ==> Click on test and then delete users???

Vitaly 08-10-2009 03:43 AM

Quote:

Originally Posted by Sunka (Post 1864329)
Installed and want to know answer for quoted question too!

There should be "Users Cleanup" crontab after import. Look for code in end of XML-file.
Quote:

Originally Posted by Sunka (Post 1864329)
And how to manually delete users? ==> Click on test and then delete users???

Yes.

Sunka 08-10-2009 04:29 AM

aaaaa, I see now
So, by default it is run every 4 hours and 10 minutes?

Cpacibo!

Vitaly 08-10-2009 04:33 AM

Every day in 04:10. That's enougth.

Frondy 08-10-2009 10:11 AM

Is there any chance to add filter for members without e-mail?
I use one mod to remove nonvalid emails from users profile

Thank you

Vitaly 08-10-2009 11:42 AM

No such plans.

You could use email validation during registration, and the make rule to remove members from "validating email" group.

Frondy 08-10-2009 02:38 PM

Quote:

Originally Posted by Vitaly (Post 1864521)
No such plans.

You could use email validation during registration, and the make rule to remove members from "validating email" group.

Yes, that is my plan, tu use mail validation, but it is too late for older members...

Thank you anyway :up:

LI_Pets 08-14-2009 10:18 AM

Not sure why you would want toss members away like this, it doesn't cost anything to keep them.

I have old members that haven't posted in a long time, but when they get the birthday email they come back sometimes.

I would suggest a reminder email based on criteria, they signed up that is NOT abuse.

Also rather then deleting anyone ever they should be moved to another user group like "inactive"

Never discard members totally IMO.

artpapa 09-23-2009 04:52 AM

Hi Vitalik!
I'm trying to install it, but "Invalid File Specified" still came out while I'm importing xml file in my admin control panel.
please помогите.

Vitaly 09-23-2009 08:06 AM

Seems you haven't uploaded files from "upload" folder.

dwkmi 09-27-2009 10:11 PM

What happens to user's posts once the user is deleted?

Vitaly 09-27-2009 10:22 PM

Nothing. Result is the same, as when you delete user manually.

TheInsaneManiac 09-28-2009 03:03 AM

Quote:

Originally Posted by Ronald0 (Post 1845628)
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?

Believe me... After awhile you just need to start as fresh as possible. Any server will crumble a few times when you DB is 200 MB. I went in cleaned up posts that haven't been replied to within the last year and I deleted all members that have no posts that registered over 2 weeks ago.

AzzidReign 10-11-2009 02:08 AM

What's the purpose of cleaning users? And if I clean up my users, will it decrease my "users" stat on my site?

webhost 01-17-2010 06:31 AM

Hello, uploaded all the files but can not get the file imported, exact steps for this please.

BillieJoe 01-17-2010 06:46 AM

this seems to be a very usefull mod!

but is there a chance to have the option that a user needs to have for example 3 posts within the last 30 days or otherwise he will get banned?

greetz

billiejoe

webhost 01-17-2010 08:16 PM

How are you guys importing this in vb admin please, havign issues here gettign it done

mgurain 01-19-2010 08:32 AM

Hi,
1. Does it work correctly with you ?
2. Can it display the users to be deleted for confirmation ? I may put by mistake undesired rules, then I loose my users without knowing !

Thanks,,


All times are GMT. The time now is 06:11 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,818KB
  • 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
  • (11)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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