1
NewBB 2 Pictures improvementI think NewBB 2 pictures look great but only on white background. I suggest to repair those pictures to look good on a dark background too. That should be repaired in new NewBB version. Is there anyone, who can do this ? Just have to repair the transparency for dark backgrounds.
Edit fixedLast weekend I wrote to Predator and he helped me out:
If you want only the last edit of the post to be shown, you have to do this:Predator wrote:In the folder newbb/class/ edit post.php
search for the function displayPOstEdit()
must be start at line 248
replace the function with this function:
function displayPostEdit()
{
global $myts, $xoopsModuleConfig;
if( empty($xoopsModuleConfig['recordedit_timelimit']) ) return false;
$post_edit = '';
$post_edits = $this->getVar('post_edit');
if (!empty($post_edits)) $post_edits = unserialize(base64_decode($post_edits));
if (!isset($post_edits) || !is_array($post_edits)) $post_edits = array();
if (is_array($post_edits) && count($post_edits) > 0) {
$i=count($post_edits)-1;
$edit_time = intval($post_edits[$i]['edit_time']);
$edit_user = $myts->stripSlashesGPC($post_edits[$i]['edit_user']);
$post_edit .= _MD_EDITEDBY . " " . $edit_user . " " . _MD_ON . " " . formatTimestamp(intval($edit_time)) . "
";
/*
foreach($post_edits as $postedit) {
$edit_time = intval($postedit['edit_time']);
$edit_user = $myts->stripSlashesGPC($postedit['edit_user']);
$post_edit .= _MD_EDITEDBY . " " .$edit_user . " " . _MD_ON . " " . formatTimestamp(intval($edit_time)) . "
";
}*/
}
return $post_edit;
}
Now you see only the last Edit.
If someone wants to use it.