![]() |
Fixed and tested
|
How about making it so we can give different boards different XX days. On less active boards we might want to do 60 days for example.
Or even better, delete threads after XX days. And is this XX days after the last reply, or the first post? |
How can make it to close threads in specific forums by id?
I want this active but not in all forums. This can be done in a easy way? Please? Somebody? By the way, this affect all threads? Even the sticky ones? :rolleyes: (If it is, how do to not affect sticky?) |
Try this;
[sql]$DB_site->query(" UPDATE " . TABLE_PREFIX . "thread SET open = 0 WHERE forumid IN (1,2,3) AND open = 1 AND sticky = 0 AND lastpost < " . intval(TIMENOW - (86400 * 30)) ); [/sql] Where (1,2,3) is the list of forum id's you want it to work for, and 30 is the number of days |
Quote:
Thanks Paul :D |
well done guys :)
|
Thank you. This is very useful! :D *clicks install*
Rebecca |
Your welcome :)
|
can this be set for one particular forum or is this for ALL threads because I want to have threads auto close after 8 days in 1 particular forum on my site....is that possible with this hack?
|
bump
|
All times are GMT. The time now is 04:54 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|