if(iGUEST){
echo trimlink(nl2br(striplashes($data['news_body'])), 500);
}elseif(iMEMBER){
echo nl2br(striplashes($data['news_body']));
}
function render_news($subject, $news, $info) {
if(iGUEST){
$text = substr($news,0,500).'...';
}elseif(iMEMBER){
$text = $news;
}
echo "<table cellpadding='0' cellspacing='0' style='width:100%;'>";
echo "<tr>";
echo "<td class='capmain-left'></td>\n";
echo "<td class='capmain'>".$subject."</td>\n";
echo "<td align='right' class='capmain-right'></td>\n";
echo "</tr>\n";
echo "</table>\n";
echo "<table width='100%' cellpadding='0' cellspacing='0'>";
echo "<tr>";
echo "<td class='purple-left'></td>";
echo "<td class='main-body middle-border'>".$text."</td>\n";
echo "<td align='right' class='purple-right'></td>";
echo "</tr>\n<tr>\n";
echo "<td class='purple-left'></td>";
echo "<td align='center' class='news-footer middle-border'>\n";
echo newsposter($info," ·").newsopts($info,"·").itemoptions("N",$info['news_id']);
echo "</td>\n";
echo "<td align='right' class='purple-right'></td>";
echo "</tr>\n";
echo "</table>\n";
echo "<table cellspacing='0' cellpadding='0' style='width:100%;'>";
echo "<tr>";
echo "<td><img src='".THEME."images/purple-btm-left.png' alt='purple-btm-left.png' /></td>\n";
echo "<td class='purple-btm' style='width:100%;'></td>\n";
echo "<td align='right'><img src='".THEME."images/purple-btm-right.png' alt='purple-btm-right.png' /></td>\n";
echo "</tr>\n";
echo "</table>\n";
echo "<div class='spacer'></div>\n";
}
Category Forum
User Administration - 8Labels
None yet
Statistics
2 participants
Notifications
You are not receiving notifications from this thread.
Related Questions