Can someone help me apply this feature to this MOD?
Taken previously from the "3.0.x Prevent Double Posting"
Quote:
In your includes/functions_newpost.php, find the following:
Code:
// we are here, so we may have a doublepost -> do more exact checkings
$doublepost = $DB_site->query_first("
SELECT postid, pagetext, post.title, post.userid, post.attach
and replace by:
Code:
// we are here, so we may have a doublepost -> do more exact checkings
$doublepost = $DB_site->query_first("
SELECT postid, pagetext, post.title, post.userid, post.attach, post.dateline AS dateline
Then find:
Code:
$post['message'] = $doublepost['pagetext'] . $dp_settings['spacer'] . $post['message'];
and replace by:
Code:
$post['message'] = $doublepost['pagetext'] . $dp_settings['spacer'] . "$bbuserinfo[username] posted " . ((TIMENOW - $doublepost[dateline]) / 60) . " minutes later:\n" . $post['message'];
|
I compared the code but I just can't seem to figure out how to apply these changes. Basically I want output simillar to this.
JohnBee added 9 Minutes later...
Instead of the standard merge. All other things work very nicely btw!