fantastic mate, I had only one small problem in shoutbox_postshout I had to change
<form action="/shoutbox.php" too
<form action="shoutbox.php"
also if anyone else wants to have the shoutbox on their forumhome page with more then 1 shout do the below,
PHP Code:
$shoutz = $DB_site->query('SELECT u.username, s.userid, s.shout_text, s.timestamp FROM user u, shoutbox s WHERE u.userid = s.userid ORDER BY s.timestamp DESC LIMIT 10');
while ($shout10top = mysql_fetch_array($shoutz)):
++$shout10topnbsp;
$shout[timestamp] = vbdate('n-j-y, g:i:s a', $shout10top[timestamp]);
$shout[shout_text] = bbcodeparse($shout10top[shout_text]);
$shouts .= "<smallfont><b>Posted by <a href=\"member.php?s=$sesion[sessionhash]&action=getinfo&userid=$shout10top[userid]\" class=\"small\">$shout10top[username]</a><br> Posted @ $shout[timestamp]</b></smallfont><br/><smallfont>$shout[shout_text]</smallfont><br><br>";
endwhile;
eval("\$the_shoutbox .= \"".gettemplate("forumhome_shoutbox")."\";");
open
forumhome_shoutbox and replace it with,
PHP Code:
<tr id="cat">
<td bgcolor="{tableheadbgcolor}" colspan="6"><a href="$bburl/shoutbox.php?s=$session[sessionhash]" title="The Shoutbox"><normalfont color="{tableheadtextcolor}"><b>The Shoutbox - Latest Shout</normalfont></b></a></td>
</tr>
<tr>
<td bgcolor="{firstaltcolor}" colspan="6">$shouts</td>
</tr>
thanks for the hack again mate, great work!