vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Administrative and Maintenance Tools - Auto Delete/Move Thread After X days (https://vborg.vbsupport.ru/showthread.php?t=139646)

R1lover 05-07-2009 01:57 AM

can we get this fixed / ported to 3.8.2 please

KevinL 05-07-2009 02:16 AM

It works fine on 3.8

Allen 05-10-2009 07:07 PM

Is there anything like this hack but for posts?

I want users to have an option to auto delete their post after a set (by them or Admin) period of time.

kyle 07-11-2009 07:10 AM

Can this hack be setup to move/delete thread if the original poster doesn’t respond within a x amount of time?

xlguy 08-18-2009 02:46 PM

Quote:

Originally Posted by rammbs (Post 1376367)
need help please. i get the error below when i run the scheduled task..

Quote:

Originally Posted by majordork82 (Post 1471146)
nevermind, i figured it out. The program doesn't like it if you leave the protected users blank

Ah interesting, thanks. I was getting an error in 3.8.x and think it might because I left out any input in the protected users part.

danyz81 10-15-2009 04:35 PM

mmmh not working for me.
I've 3.84. Created the cron manually with the modific by AtoZ (`replycount` = '0' to `replycount` >= '0' ) but nothing.
I try to run the cron, straight afterwards it tells me "Done" but nothing happends on the forum.

Any help?

tonyzhou 11-02-2009 07:21 PM

I have modified this hack to exclude stickies and to delete threads that haven't gotten replies in X days rather than ones that have been opened x days ago. It also disregards the amount of posts in that thread.

PHP Code:

$check=$vbulletin->db->query_read("
            SELECT * from `" 
TABLE_PREFIX "thread` 
                        Where  forumid  IN(
$from) AND `postuserid` NOT IN (".$vbulletin->options['Admin'].") AND `sticky` = '0' AND `lastpost` <= '" . (TIMENOW - ($vbulletin->options['created'] * 86400)) . "'"); 

PHP Code:

$deletedthreads $vbulletin->db->query_read("SELECT * FROM `" TABLE_PREFIX "thread` Where  forumid  IN($from) AND `sticky` = '0'  AND `postuserid` NOT IN (".$vbulletin->options['Admin'].") AND `lastpost` <= '" . (TIMENOW - ($vbulletin->options['created'] * 86400)) . "'"); 

these are the modifications to the queries for anyone who needs this as well.

Reef Man 07-14-2010 07:53 PM

Does this work on vb 4.0.x ???

MagicThemeParks 09-11-2010 04:37 PM

Just to confirm: Do you have to add the manual cron to get this work?

HolyKiller 11-10-2010 09:57 PM

Quote:

Originally Posted by Reef Man (Post 2069214)
Does this work on vb 4.0.x ???

Same question ... anyone tryed this on vB 4.0.x ? (4.0.8 for me..)


All times are GMT. The time now is 12:49 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.01052 seconds
  • Memory Usage 1,743KB
  • 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_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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