![]() |
Does this physically remove the old threads from the database? Does the line of code that says "delete_thread($thread['threadid'], false, true, NULL, false, $thread);" use the built in vBulletin functions to remove the thread and posts?
Can someone help me find the "delete_thread" function? Please confirm just what this script does... Thanks! EDIT: OK, I think I figured out what this calls but it will take me some time to figure the code out.. I assume this is using the class_dm_threadpost.php file to handle the removal of the thread and that it will also remove the posts and that these removals are by removal or the rows of data from the database... :alien: |
Hi,
tried this hack - and nothing happened :confused: Ok, read the small text in the forum manager again, and it says: "will automatically prune all Threads from this Forum where the last reply is older then the set amount of days" A-HA! So, if I have threads WITHOUT any replies they won't be deleted. Is that right? How can the code be changed to enable the pruning of threads without replies older than x days??? Possible? TIA and best regards, adusei |
Adusie,
Open the xml file and Edit line #27, by replacing where it says: "lastpost" with "dateline". Then import the product with: "Allow Overwrite" option enabled. btw, Working perfect in 3.6.3 |
Does this work on sub-forums too?
As in will the setting it to prune on the parent effect the child forums too? |
Does anyone know the function to move a thread? I rather have it move all the threads to a dedicated forum, then I can manually prune that single forum when my server is offline, since pruning is extremly CPU intensive when pruning thousands of threads.
I would like to change this: PHP Code:
To move the thread to a dedicated forumID, that I use as a recycle bin. |
works for 3.6.5:D
|
Anyone willing to hold a n00bs hand? I would love to use this to delete all threads in one forum at midnight each night. I need explicit instructions though, not just a bunch of code. Tell me where to put it, copy this, paste here, change this....and I can fly with it. But just giving me code...I'm lost.
|
Yes - over night (once a day) seems like a better idea than runing an intensive script like this each hour. How please? Thanks.
|
Quote:
- Upload in your cron dir (includes/cron/) a php file (e.g. autoprune.php) with this code: Code:
<?php That's all :) |
Is there a better version for this? 3.6.7 ?
|
All times are GMT. The time now is 07:28 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|