Hmm, well I installed this on my test forum last night, and yes, it has (had) two problems ;
1. The post dateline is not updated on a merge, so it doesn't get seen as unread.
2. The one everyone complains about - no ajax refresh (unless you alter the time stamp, then you get two versions of the same post).
So, since I wanted this on our forum I have fixed both locally - this is what I have done.
1. To fix the timestamp ;
Find ;
Add below it ;
PHP Code:
$dataman2->set('dateline', TIMENOW);
2. To fix the ajax issue, use this nasty hack ;
Find ;
PHP Code:
if ($isdoublepost)
{
$id = $doublepost['postid'];
$dataman->save();
//now add edited by
if ($dp_settings['editedbymsg'] != '')
{
$vbulletin->db->query_write("
REPLACE INTO " . TABLE_PREFIX . "editlog (postid, userid, username, dateline, reason)
VALUES ($id, " . $vbulletin->userinfo['userid'] . ", '" . addslashes($vbulletin->userinfo['username']) . "', " . TIMENOW . ", '" . addslashes($dp_settings['editedbymsg']) . "')
");
}
}
Replace with ;
PHP Code:
if ($isdoublepost)
{
// Ugly hack added by Paul M to fix ajax merge //
if (!$vbulletin->GPC['ajax'])
{
$id = $doublepost['postid'];
$dataman->save();
if ($dp_settings['editedbymsg'] != '')
{
$vbulletin->db->query_write("
REPLACE INTO " . TABLE_PREFIX . "editlog (postid, userid, username, dateline, reason)
VALUES ($id, " . $vbulletin->userinfo['userid'] . ", '" . addslashes($vbulletin->userinfo['username']) . "', " . TIMENOW . ", '" . addslashes($dp_settings['editedbymsg']) . "')
");
}
}
$vbulletin->url = 'showthread.php?' . $vbulletin->session->vars['sessionurl'] . "p=$post[postid]#post$post[postid]";
eval(print_standard_redirect('redirect_postthanks', true, false));
}
Seems to work okay for me, feel free to try it.