It shows recent posts from NewBB ... but I don't want this ... I want just to show comments from Articles and Poll (like default "recent comments" block").
Can someone help me out ?
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)) . "<br/>";
/*
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)) . "<br/>";
}*/
}
return $post_edit;
}