vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Hack for delete all 0 posters (https://vborg.vbsupport.ru/showthread.php?t=19973)

kreker 06-11-2001 04:22 PM

Hi

I have a lot of 0 posters in my board (about 130) and I'm coming mad for delete all!

Someone can made an hack for delete in once time all the member have 0 post??

thanks!

Zorg 06-12-2001 03:34 AM

Kreker,

I have a lot of members that register and then never come back. I think my board has around 200-300. So I'm in the same boat as you Kreker.

Maybe adding to your suggestion, add a "last visited" and "register before xxxx-xx-xx".
That way I can remove users that have not visited since last year.

Dakota 06-12-2001 01:05 PM

I would like to see this hack too. I have almost 7500 members on my forums, and about 700 accounts that don't have any posts. There are more that are inactive, but I haven't looked at that yet.

Castel 06-12-2001 04:45 PM

That hack is already made, just search for "mass user delete"

Toliman 06-12-2001 08:12 PM

run this query in phpmyadmin:

delete from user where posts='0';

that's it. :D

kreker 06-12-2001 08:40 PM

I have this error

Warning: Cannot add header information - headers already sent by (output started at /web/sites/13/kreker/****/bherp/config.inc.php:478) in /web/sites/13/kreker/****/bherp/sql.php on line 87

Me2Be 06-12-2001 09:16 PM

Quote:

Originally posted by Toliman
run this query in phpmyadmin:

delete from user where posts='0';

that's it. :D

Be careful when you run this though -- you'll delete new members and those who lurk but never post with this command.

Toliman 06-12-2001 09:37 PM

I'm sorry of not advicing of runing this query, as Me2be told you, it is dangeours because it will delete ALL users with 0 posts, all of them. This is a better query, since it will delete all users that have 0 posts and haven't visited the forum in one month.

DELETE FROM user WHERE posts=0 AND lastvisit < unix_timestamp(DATE_SUB(NOW(),interval 1 month))

kreker 06-13-2001 08:58 AM

ok but I have the similar errorr

Toliman 06-13-2001 08:51 PM

that error is from your phpmyadmin... seems that your file's are somehow corrupted, you should try re-uploading them.


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

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.01475 seconds
  • Memory Usage 1,725KB
  • 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
  • (1)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
  • (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