5mok3
Emporia
Well is not a big deal but i bet it'll be useful to some people with big forums. ^_^
THIS IS FOR THE OTFORUM SCRIPT
Demo: Eternia-Online | RPG 24/7
(right column)
This is the code i have in my website
*NOTE*
You need to edit your thread.php so that nobody can post without a title.. otherwise if there's no title on the post in the website it'll show a blank space instead of the title.
If you don't know how just pm and I'll send you mine.
i wouldn't mind some rep+ :thumbup:
THIS IS FOR THE OTFORUM SCRIPT
Demo: Eternia-Online | RPG 24/7
(right column)
This is the code i have in my website
PHP:
<div style="padding-left:20px;">
<?PHP echo $layout_name; ?>/img/top1.bmp" /></a></div>
<div align="left" style="padding-left:20px;">
<?PHP
$order = 0;
$post = $SQL->query('SELECT id,title,date,author,thread FROM posts ORDER BY time DESC LIMIT 10');
foreach($post as $posts) {
$order++;
$last_posts .= '<tr><td align="center">'.$order.'.</td><td align="left"><B><a href="?subtopic=thread&id='.urlencode($posts['thread']).'">'.$posts['title'].'</a></td> <td align="center"><font color="#7073FC"><em>'.$posts['author'].'</em></font></td> <td align="center"><font color="#FE2E2E"></font><br></td>';
}
echo "$last_posts";
?>
</div>
*NOTE*
You need to edit your thread.php so that nobody can post without a title.. otherwise if there's no title on the post in the website it'll show a blank space instead of the title.
If you don't know how just pm and I'll send you mine.
i wouldn't mind some rep+ :thumbup:
Last edited by a moderator: