
Sorry for being slow.
Use a sql editor and change in table post_edits
Code:
varchar(50) to varchar(100)
Vbul use 100 positions now for nicks afaik.
Add field:
Code:
editorid mediumint(10) UNSIGNED NULL Def NULL
The content of plugin POST-HIST: record_edits becomes:
Code:
if($foruminfo['histstatus'] == 1){
$query = "INSERT INTO `" . TABLE_PREFIX . "post_edits`
( postid, editnum, message, editor, editorid )
VALUES
( " . $postinfo['postid'] . " , " .
($postinfo['numedits']) . " , '" .
addslashes($postinfo['pagetext']) . "' , '" . ($vbulletin->userinfo['username']) . "' , '" . ($vbulletin->userinfo['userid']) . "' ) ";
$db->query_write( $query );
$query = "UPDATE `" . TABLE_PREFIX . "post` SET
numedits = numedits + 1 WHERE
postid = " . $postinfo['postid'];
$db->query_write( $query );
}
The 1st if conditions makes that only hist forums are logged and not just everything (that can be an issue when space is your concern).
The content of plugin POST-HIST: update showthread becomes:
Code:
//global $permissions;
$viewown = ( $permissions['userhiststatus'] & 2 ) != 0;
$viewall = ( $permissions['userhiststatus'] & 1 ) != 0;
if(
(
( $foruminfo['viewhist'] != 0) ||
( $viewall != 0 ) ||
( ( $viewown != 0 ) && ( $vbulletin->userinfo['userid'] == $post['userid'] ) )
)
&&
( $_REQUEST['prev_postid'] == $post['postid'] )
&&
( $_REQUEST['prev_editnum'] < $post['numedits'] )
)
{
$post['pagetext'] = 'matched change post';
$query = "SELECT message FROM " . TABLE_PREFIX . "post_edits WHERE
(postid = " . $post['postid'] . "
AND editnum = " . $_REQUEST['prev_editnum'] . ")";
$post_temp = $db->query_first( $query );
if ($_REQUEST['prev_editnum'] > 0){
$query = "SELECT editor FROM " . TABLE_PREFIX . "post_edits WHERE (postid = " . $post['postid'] . "
AND editnum = " . ($_REQUEST['prev_editnum']-1) . ")";
$editedby = $db->query_first( $query );
$edittxt = "\n \n Edited by: " . $editedby['editor'] . "";
}
else {
$edittxt ="";
}
$post['pagetext'] = $post_temp['message'] . $edittxt;
$post['pagetext_html'] = "";
$post_cachable = 0;
}
Note that it adds an extra query.