$postStructure = "";
$postStructure .= "<tr><td width='20%' class='forum_post' valign='top'>$authorinfo</td><td width='80%' class='forum_post' valign='top'>\n";
$postStructure .= "<table width='100%' cellspacing='0' cellpadding='0'>";
$postStructure .= "<tr><td class='forum_post_minititle'>"._DATE_.": $post_date$subtitle</td><td class='forum_post_minititle' align='right' valign='top'><a name='post$post_id' id='post$post_id'>#post$post_id</a></td></tr>";
$postStructure .= "<tr><td colspan='2'><div style='padding: 15px 0;'>$post_text</div>$plus$user_signature</td></tr>";
$postStructure .= "</table>";
$postStructure .= "</td></tr>\n";
$postStructure .= "<tr><td colspan='3' class='forum_post' align='right'>";
//*** added by -ROL- **//
if (isAdmin($admin) isModerator($forumid,$user)) {
$postStructure .= "<a href='http://www.memht.com/index.php?page=forum&op=deletePost&id=$post_id' title='"._DELETE_."' rel='nofollow'><img src='templates/".$siteConfig['template']."/images/forum/buttons/delete.gif' border='0' alt='Delete'></a>";}
if (isAdmin($admin) OR isModerator($forumid,$user) OR $user==$post_author) {
$postStructure .= "<a href='http://www.memht.com/index.php?page=forum&op=editPost&id=$post_id' title='"._EDIT_."' rel='nofollow'><img src='templates/".$siteConfig['template']."/images/forum/buttons/edit.gif' border='0' alt='Edit'></a>";}
$postStructure .= "<a href='http://www.memht.com/index.php?page=forum&op=reply&id=$threadid"e=$post_id' title='"._QUOTE_."' rel='nofollow'><img src='templates/".$siteConfig['template']."/images/forum/buttons/quote.gif' border='0' alt='Quote'></a>";
$postStructure .= "</td></tr>\n";
$postStructure .= "<tr><td colspan='3' class='forum_spacer'> </td></tr>\n";
return $postStructure;
|