header($params); echo '
';
if (!$result || db_numrows($result) < 1) {
echo ' '._('Error - this news item was not found').' '; } else { $user = user_get_object(db_result($result,0,'submitted_by')); $group = group_get_object($params['group']); if (!$group || !is_object($group) || $group->isError()) { exit_no_group(); } echo '
'._('Posted by').': '.$user->getRealName().' | '; echo $HTML->boxTop(_('Latest News')); echo news_show_latest($params['group'],5,false); echo $HTML->boxBottom(); echo ' |
'._('By:').
$msg->getPosterRealName().
' '; $msgforum =& $msg->getForum(); $ret_val .= $am->PrintAttachLink($msg,$group_id,$msgforum->getID()) . ' '. html_image('ic/msg.png') . $bold_begin. $msg->getSubject() . $bold_end .' '. ' '. date(_('Y-m-d H:i'),$msg->getPostDate()) .' |
'. $msg->getBody() .' |
';
$params = array('user_id' => $msg->getPosterID(), 'size' => 's', 'content' => '');
plugin_hook_by_reference("user_logo", $params);
if ($params['content']) {
$ret_val .= $params['content'];
}
$ret_val .= $bold_begin. $msg->getSubject(). ' [ '._("reply").' ]'. $bold_end;
$ret_val .= ' '._('By:').' '.util_make_link_u ($msg->getPosterName(),$msg->getPosterID(),$msg->getPosterRealName()); $ret_val .= ' on '.date('Y-m-d H:i',$msg->getPostDate()); $ret_val .= ' | ';
$ret_val .= '[forum:'.$msg->getID().'] '; if (forge_check_perm ('forum_admin', $msgforum->Group->getID())) { $ret_val .= $fa->PrintAdminMessageOptions($msg->getID(),$group_id,$msg->getThreadID(),$msgforum->getID()); } $ret_val .= $am->PrintAttachLink($msg,$group_id,$msgforum->getID()); $ret_val .= ' |
'; if (strpos($msg->getBody(),'<') === false) { $ret_val .= nl2br($msg->getBody()); //backwards compatibility for non html messages } else { $ret_val .= $msg->getBody(); } $ret_val .= ' |
no messages actually follow up to $msg_id"; } return $ret_val; } function showSubmessages(&$msg_arr, $msg_id, $level) { /* Recursive. Selects this message's id in this thread, then checks if any messages are nested underneath it. If there are, it calls itself, incrementing $level $level is used for indentation of the threads. */ global $total_rows,$forum_id,$current_message,$group_id; if (!isset($msg_arr["$msg_id"])) return ""; $rows=count($msg_arr["$msg_id"]); $ret_val = ""; //echo "
ShowSubmessages() $msg_id | $rows"; if ($rows > 0) { for ($i=($rows-1); $i >= 0; $i--) { /* Is this row's background shaded or not? */ $total_rows++; $ret_val .= '