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)

voclain 07-19-2007 03:26 PM

I got the SCHEDULED TASK situation fixed.....I read in post number: 10 the following:

Quote:

could you make it with inactive threads, because its kinda useless moving a thread that is still active. It should be handy that when a thread is inactive and X days old is moved to an archive forum...
to do that you should change the /cron/cronautodelete.php file in line 31 :
find:

Code:

AND `replycount` = '0'
just delete it and it will delete/move the threads that created before X days ago.

==========

I did this and it only deleted threads that had ZERO posts in them.

What I want this to do is this.....

I have a forum where my members SELL stuff....and usually after 30 days...the stuff they are selling is OLD, SOLD, or they are not going to sell it.

So...I want all threads...and all posts....that are more than 30 days old to just be deleted...every night.....is that want this will do for me?

I have done what you suggested above...but it again....only deleted threads that had ZERO posts.

HELP!!!

Kirk

AzzidReign 07-20-2007 03:12 PM

How did you get the cron to work? I'm still having problems with it.

voclain 07-20-2007 03:35 PM

All I did was make a NEW SCHEDULED TASK and had it point to .php file that I uploaded into the "CRON" folder.

Just like that...it works.

But....I seriously, seriously, SERIOUSLY need to get this working so that it DELETES ALL threads....older than 35 days....even the ones that have posts to them....JUST like you do in the "PRUNE" section manually.

Kirk

AzzidReign 07-20-2007 04:19 PM

I think you put back what you deleted.
Code:

AND `replycount` = '0'
That seemed to work for me. I was testing it with moving the threads and it moved the threads with replies in it...but I didn't check to see if the reply date was x days old.

voclain 07-20-2007 06:28 PM

Quote:

Originally Posted by AzzidReign (Post 1296695)
I think you put back what you deleted.
Code:

AND `replycount` = '0'
That seemed to work for me. I was testing it with moving the threads and it moved the threads with replies in it...but I didn't check to see if the reply date was x days old.

Azz:

I did not TEST to see if it work on MOVING THEM??? HUM??? That could be the answer??? All I did was test to see if it would work on me DELETING them...

I'm off to test that.

Kirk

voclain 07-20-2007 06:43 PM

Quote:

Originally Posted by AzzidReign (Post 1296695)
I think you put back what you deleted.
Code:

AND `replycount` = '0'
That seemed to work for me. I was testing it with moving the threads and it moved the threads with replies in it...but I didn't check to see if the reply date was x days old.

Azz!!!!!!!

Thank you, THANK YOU!!!!

That did it...I had the "AUTO MOVE" feature OFF....and when I removed the "AND 'replycount' = '0' command....it did not apply to "DELETING"...only MOVING.

Which I can make work. I just set up a dummy forum....made it so nobody can see in it...and I'll just DELETE from it every now and then....EASY!!!!

Thank you, thank you thank you!!!!!

I vote that this be the best HaCK ever!

Kirk

AzzidReign 07-20-2007 10:14 PM

Your welcome! :)

That's what I've done...I've set up a "recycle bin" that I'll manually prune. I just got done pruning over 10k THREADS! It's almost like giving lipo to someone who weighed 300 lbs and now weighs 100 lol j/p But the site is loading much quicker now :)

paulo_b 09-22-2007 03:30 AM

After install I ran the Task manager and get this error message...
Invalid SQL:
SELECT * FROM `vbthread` Where forumid IN(11,40,25,29,12,17,27,15,22,18,30,26,19,44,24,23 ,28,20,) AND `replycount` = '0' AND `postuserid` NOT IN (1,2) AND `dateline` <= '1190175911';

MySQL Error : You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ') AND `replycount` = '0' AND `postuserid` NOT IN (1,2) AND `da
Error Number : 1064

I have no idea what this means, please help

paulo_b 09-27-2007 03:54 AM

Anyone home??

paulo_b 10-01-2007 01:51 PM

I removed te trailing comma, 20,), that was the problem, seems to work now.


All times are GMT. The time now is 01:57 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.01111 seconds
  • Memory Usage 1,747KB
  • 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
  • (4)bbcode_code_printable
  • (3)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