vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Automatic Inactive Users Pruning (https://vborg.vbsupport.ru/showthread.php?t=78952)

Revan 04-10-2005 04:07 PM

Hm damn, I made a silly mistake.
Find:
PHP Code:

else if (!isset($members['deleflag'])) 

Replace with:
PHP Code:

else if (!$members['deleflag']) 

:)

Ala21 04-10-2005 04:15 PM

Great, now the flagging works. Thank you *installed*

djr 04-11-2005 07:40 PM

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.

laborer75 04-11-2005 11:39 PM

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....

Revan 04-12-2005 07:09 AM

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 ;)

Dave-G 05-17-2005 12:20 PM

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.

Revan 05-17-2005 04:34 PM

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 :)

waza 06-27-2005 07:25 AM

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

djr 07-25-2005 10:23 PM

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


brfrankl 07-31-2007 07:54 PM

anyone know if this works with 3.6.7??


All times are GMT. The time now is 09:47 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.01237 seconds
  • Memory Usage 1,748KB
  • 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
  • (6)bbcode_php_printable
  • (5)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