Version: 1.00, by calorie
Developer Last Online: Nov 2023
Version: 3.0.3
Rating:
Released: 10-02-2004
Last Update: Never
Installs: 8
No support by the author.
The purpose of this mini mod is to block replies to old threads, prompting the user to start a new thread instead. There is a similar mod at https://vborg.vbsupport.ru/showthread.php?t=69591 but the difference is that this mod does not place the post in a moderation queue. Instead, if a user tries to reply to an old thread, with or without quoting, this mod shows the user a message with a link to start a new thread in the same forum. If you use this mod, a click of the install button is appreciated.
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
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)
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.
pretty cool hack, i think its useful for those big boards where their are new ignorent users who just post in really old threads just to get in a higher rank
i would suggest a different approach on this hack, as it's using a template for nothing:
simplier, but as efficient:
PHP Code:
/////////////////////////// step 1 ///////////////////////////
/*
Add new Phrase:
Type : Front-End Errors
Varname : zzzz_oldthread
Text: This thread is old. Consider starting a <a href="newthread.php?$session[sessionurl]do=newthread&f=$foruminfo[forumid]">new thread</a> instead.
*/
/////////////////////////// step 2 ///////////////////////////
//In forum/newreply.php at about line 108 find:
// ### CHECK IF ALLOWED TO POST ###
//And afterwards add the following:
if ($threadinfo['lastpost'] < TIMENOW - 2592000) // 30 days in seconds
{
eval(print_standard_error('zzzz_oldthread'));
}
Damm i just finished my hack vB Expired Threads, same thing as this. But its ACP. Turn on/off, Change the days till closed and the forums you want to lock, blank for all forums. beat me to it!