Mansour
09-17-2004, 10:00 PM
Hi,,
I tray to find a good sloution for this problem.
I have problem, some member add new post in old thread and other think this is new thread and add new posts also. The problem is some threads are old news and can't have new post because other think this is a new news.
what I want was to insert the post in "post moderation queue" if there are 10 days (for example) between this post and the last post in the thread.
I think there are no hacks for this problem, so I tray to make some modifications. I test it in test forum and I want to make sure if it is correct?
in \includes\functions_newpost.php
befor : "// ### DUPE CHECK ###"
add :
##################added by Mansour##################
if ($type == 'reply'){
$lastpostdate = $DB_site->query_first("SELECT dateline FROM `post` WHERE threadid = $threadinfo[threadid] and visible=1 ORDER BY `dateline` DESC LIMIT 0, 1");
if(TIMENOW > $lastpostdate['dateline'] + 86400){
$post['visible'] = 0;
}
}
##################added by Mansour##################
86400 = 10 day
Please tell me if ther any wrong
Thanks :)
I tray to find a good sloution for this problem.
I have problem, some member add new post in old thread and other think this is new thread and add new posts also. The problem is some threads are old news and can't have new post because other think this is a new news.
what I want was to insert the post in "post moderation queue" if there are 10 days (for example) between this post and the last post in the thread.
I think there are no hacks for this problem, so I tray to make some modifications. I test it in test forum and I want to make sure if it is correct?
in \includes\functions_newpost.php
befor : "// ### DUPE CHECK ###"
add :
##################added by Mansour##################
if ($type == 'reply'){
$lastpostdate = $DB_site->query_first("SELECT dateline FROM `post` WHERE threadid = $threadinfo[threadid] and visible=1 ORDER BY `dateline` DESC LIMIT 0, 1");
if(TIMENOW > $lastpostdate['dateline'] + 86400){
$post['visible'] = 0;
}
}
##################added by Mansour##################
86400 = 10 day
Please tell me if ther any wrong
Thanks :)