vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   [REQ]I need a hack that deletes members with 0 posts automaticly (https://vborg.vbsupport.ru/showthread.php?t=14358)

rickjansen105 04-17-2001 04:48 AM

anyone can make a hack for this?
i don't like people who don't discuss...
thanks in advance,

rickjansen105 04-17-2001 07:50 AM

maybe that it is automaticly done every single day or once every week?

Wayne Luke 04-17-2001 01:59 PM

Set the following up as a cron job. The time check is to skip any new users who joined in the last 24 hours.
PHP Code:

<?
//Delete non-participating members

require ("./global.php");

$DB_site->query ("DELETE FROM user WHERE posts=0 AND joindate > '".(time() - 86400)."' AND usergroup=2");

?>


rickjansen105 04-18-2001 04:32 AM

Quote:

Originally posted by wluke
Set the following up as a cron job.
What's a cron job?

Wayne Luke 04-18-2001 06:30 AM

Cron is a task scheduler on Unix/Linux machines.

A job is a task it runs at a predefined time.

Talk to your host about them.


All times are GMT. The time now is 11:44 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.00927 seconds
  • Memory Usage 1,714KB
  • 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_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete