Quote:
Originally Posted by SaN-DeeP
seems a very easily done mod..
but a small question -> we have some forums which runs some jokes threads which are running since 4 months.. (over 2600 replies and still on)
how can we take care of them ?
|
This mod has the following line:
PHP Code:
if ($threadinfo['lastpost'] < TIMENOW - 2592000) // 30 days in seconds
so when the
last post in a thread is over 30 days old, the user will be prompted to start a new thread.
If you want to prompt the user to start a new thread when the
first post in a thread is over 30 days old, then use:
PHP Code:
if ($threadinfo['dateline'] < TIMENOW - 2592000) // 30 days in seconds
If you want to prompt the user to start a new thread when the
first or last post in a thread is over 30 days old, then use:
PHP Code:
if (($threadinfo['lastpost'] < TIMENOW - 2592000) OR ($threadinfo['dateline'] < TIMENOW - 2592000))
Of course, you could also use something like:
PHP Code:
if (($threadinfo['lastpost'] < TIMENOW - 2592000) OR ($threadinfo['dateline'] < TIMENOW - 5184000))
to prompt the user to start a new thread when the last post is over 30 days old or the first post is over 60 days old.