
06-28-2002, 05:01 PM
|
|
|
Join Date: Jun 2002
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally posted by TWTCommish
Sure. In your forumdisplay.php file, replace this:
PHP Code:
eval("dooutput(\"".gettemplate('forumdisplay')."\");");
...with this...
PHP Code:
$shout = $DB_site->query_first("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 1");
$shout[timestamp] = vbdate('n-j-y, g:i:s a', $shout[timestamp]);
$shout[shout_text] = bbcodeparse($shout[shout_text]);
eval("\$the_shoutbox .= \"".gettemplate("forumhome_shoutbox")."\";");
eval("dooutput(\"".gettemplate('forumdisplay')."\");");
Whatcha got in mind, out of curiousity? I'd be interested to see where you put it. You'd probably want to change the HTML in the forumhome_shoutbox template, however...it's designed specifically for the mainpage, what with the colspan and all.
|
hi, i have done this but it still doesn't show up on my main forum page...?
|