vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Auto Delete Move Threads After X Day (https://vborg.vbsupport.ru/showthread.php?t=113324)

louis_chypher 05-22-2006 01:57 PM

Thanks! Worked as advertised. I'm not using the delete functions, just the move.

Now for a "request". A forum pair setting for the move function. This way I can create seperate "archive" forums. The syntax for the setting could be "(X,Y)(X1,Y1)" where "()" designates the pairs, "X" is the souruce forum and "Y" is the destination forum. In this way I could 'archive' My forums into their respective archives without dumping all the forums into one archive forum.

NilinHost 05-25-2006 12:07 PM

WoW,
so nice
may allah bless you

**** installed :)

Sculli 05-27-2006 02:52 AM

Installed this hack, this is awesome, however, small problem that I may be able to fix on my own if someone could tell me how:

Code:

Fatal error: Maximum execution time of 30 seconds exceeded in /home/qcdnorg/public_html/includes/class_core.php on line 666
Error on line 666! Creepy!

Edit:
Also a suggestion, it would be nice if sticky threads were excluded from the move/delete. Or at least if there was an option to exclude stickies.

Edit2::
I think I figured it out. PHP problem, doesn't have anything to do with the hack.

Sculli 05-29-2006 05:54 PM

I have installed this and got it to work, but not quite as I expected, it moves threads that are not older than the 7 days that I specified, i.e. it moved a thread from today with zero replies.

I have a couple of questions:

If I were to remove
Code:

AND `replycount` = '0'
from autodelete.php, then it would also move threads that have replies, right?

If I were to set the zero in
Code:

$threadman->set('sticky', 0);
to 1, then it would not move stickies?

HaMaDa4eVeR 05-30-2006 09:08 AM

Quote:

Originally Posted by Sculli
I have installed this and got it to work, but not quite as I expected, it moves threads that are not older than the 7 days that I specified, i.e. it moved a thread from today with zero replies.

I have a couple of questions:

If I were to remove
Code:

AND `replycount` = '0'
from autodelete.php, then it would also move threads that have replies, right?

If I were to set the zero in
Code:

$threadman->set('sticky', 0);
to 1, then it would not move stickies?

yes you're right

Quote:

but not quite as I expected, it moves threads that are not older than the 7 days that I specified, i.e. it moved a thread from today with zero replies.
make sure you don't put zero in created date option
this is sql query :

PHP Code:

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

thank you so much :)

Losha 06-19-2006 05:29 PM

Thanks dear for this hack , i`v been rated toy ,
Regards

Slave 06-21-2006 07:37 AM

Quote:

If I were to remove

Code:

AND `replycount` = '0'
from autodelete.php, then it would also move threads that have replies, right?
Any chance you could make this an option within the acp?

HaMaDa4eVeR 06-24-2006 11:33 AM

Quote:

Originally Posted by Slave
Any chance you could make this an option within the acp?

in next version

thanks you :)

KuJoe 07-17-2006 08:57 PM

I can't figure out why this isn't working for me. I installed and set it up, but so far the schedule hasn't run and when I click on "Run Now" it says "Done" but I have threads in the "Effected Forum" that the created date is older than 30 days (what I have it set for). Also, according to my Scheduled Task logs this cron job has not run since I installed it 2 months ago. Any ideas? I'm going to try uninstalling it and reinstalling it to see if it fixes it, but has anybody else had this kind of trouble?

KuJoe 07-17-2006 10:00 PM

Negative, still not working.


All times are GMT. The time now is 03:30 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.01205 seconds
  • Memory Usage 1,749KB
  • 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_code_printable
  • (1)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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