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 Zero-Reply Pruning (https://vborg.vbsupport.ru/showthread.php?t=79120)

Revan 03-30-2005 10:00 PM

Automatic Zero-Reply Pruning
 
This hack was requested by T3MEDIA here.


What this hack does:
  • Runs a cronjob every 15 days, deleting threads with zero replies
  • Uses vBulletin own thread deletion function. Accept no BS ;)
  • Rebuilds forum counters after thread deletion. Clean!

Well thats about it :)

kall 03-31-2005 05:39 PM

Odd... your php file seems to be a ph p file.

:)

tnguy3n 03-31-2005 05:44 PM

I'd look to thread table, and check for dateline = lastpost date. If they'r the same, then prune the thread (excepts for ones of admins). ;)

edit: nvm me. lol

Revan 03-31-2005 06:37 PM

Quote:

Originally Posted by kall
Odd... your php file seems to be a ph p file.

:)

Reupped the attachment, and it stays that. It looks fine in Edit Post and on my desktop tho... :ermm:

Marco van Herwaarden 03-31-2005 07:31 PM

Looks like a ph p file here also. But saving as php, strange.

T3MEDIA 04-02-2005 01:04 PM

Question does it have usergroup permision? Thank you btw.
edit just looked it over. It does.

Bounce 04-17-2005 10:06 PM

has anyone installed this ?

what will happen if I install it with 137,000 posts on my forumjust now...

will it delete the current 0 reply's ??? or will it only be from when I install it :nervous:

Bounce 04-18-2005 07:56 PM

It says I have an error

Fatal error: Call to undefined function: delete_thread() in /var/www/html/forum/includes/cron/deletezerothreads.php on line 49

line 49 is:- "delete_thread($threads['threadid'], 1, $deletetype, $delinfo);"

I uploaded to /var/www/html/forum/includes/cron/ ???? :ermm: Is this right??

Marco van Herwaarden 04-18-2005 08:31 PM

How are you running it? By directly going to the URL?

Bounce 04-18-2005 08:32 PM

Quote:

Originally Posted by MarcoH64
How are you running it? By directly going to the URL?

in admin cp

scheduled tasks "RUN NOW"
then the error comes up :rolleyes:

Edit:-I've took a screenie of it..am thinking its a typo in the file..I uploaded in ANSI


All times are GMT. The time now is 07:00 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.00991 seconds
  • Memory Usage 1,728KB
  • 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
  • (2)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