Ich hoffe, ich poste jetzt im richtigen Forum..bin mir nicht ganz sicher

habe mir gerade diese Teil von Acid eingebaut und bin sehr zufrieden. Es hat zwar nicht sofort funktioniert....aber nach einer kleinen Änderung war alles ok. Nun zu meinem Problem:
So sieht die Anzeige im Moment aus: http://www.terradreams.de/MainIndex.php
Ich würde gerne noch hinter dem Datum den Poster anzeigen lassenhab aber keinen Plan wo ich im Board und der Datenbank die Einträge finde und dann einbauen kann

Vielleicht kann mir jemand, der mehr Erfahrung hat, etwas helfen?
Hier der Code:
Code: Alles auswählen
<?php
define('IN_PHPBB', true);
/***************************************************************************
* Hack: Recent Topics
* Author: Acid (acid_junky@web.de)
***************************************************************************
* Description: This hack shows the last # topics on any page...
***************************************************************************
* Installation: You can write the whole code in a file (like index.php) or
* include this recent.php wherever you want...
* <?php include("path/recent.php");
* You have to edit $phpbb_root_path and $limit and $css
***************************************************************************/
//$css ="http://www.domain.de/board/templates/name/name.css"; //path and name to your css_sheet - optional
$limit = "4"; // how many topics?
$phpbb_root_path = "/blabla/phpBB2/"; //path to below files
$phpbb_url_path = "http://www.terradreams.de/phpBB2/";
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
//echo "<link rel=\"stylesheet\" href=\"$css\" type=\"text/css\">"; // - optional
$recent_sql = "SELECT topic_id,topic_title,topic_last_post_id,forum_id FROM " . TOPICS_TABLE . " WHERE forum_id !='14' ORDER BY topic_last_post_id DESC LIMIT $limit";
$recent = $db->sql_query($recent_sql);
echo "<table width=\"85%\" align=\"center\"><tr><td colspan=\"4\" align=\"center\"><span class=\"gen\">Aktuelle Themen in Forum:</span></td></tr>";
while ($line = mysql_fetch_array($recent)) {
$security=FALSE;
if($forum_auth == 2 && $userdata['user_level'] == ADMIN) {
$security=TRUE;
}
if($forum_auth == 3 && ($userdata['user_level'] == ADMIN) || ($userdata['user_level'] == 2)) {
$security=TRUE;
}
if($forum_auth == 0) {
$security=TRUE;
}
if($security == TRUE)
{
$lastpost_array=$db->sql_query("SELECT post_time FROM " . POSTS_TABLE . " WHERE post_id =" . $line['topic_last_post_id']);
$lastpost=mysql_fetch_array($lastpost_array);
$lastpost=$lastpost['post_time'];
$lastpost=create_date($board_config['default_dateformat'], $lastpost, $board_config['board_timezone']);
$j = stripslashes($line['topic_title']);
$k = substr($j, 0, 60) . "";
echo "<tr><td align=\"left\"><span class=\"gensmall\">»» </span> <a href=\"$phpbb_url_path/viewtopic.php?t=" . $line['topic_id'] . "\" class=\"genmed\">" . $k . "</a></td>";
echo "<td align=\"left\" width=\"25%\"><span class=\"genmed\">$lastpost</span></td></tr>";
}};
echo "</table>";
?>