I removed Newest Members but now I am faced with another issue. I would like to add the forum name in where the latest post is from - like an additional column with that data. This is how it was in Cyb's Forum Stats hack and I really liked it. I tried coding it myself but got a database error when I put it up live and I just don't know how to do it. All I really need is the code to insert - like:
Code:
$latestposts = $vbulletin->db->query_read("SELECT * FROM " . TABLE_PREFIX . "thread WHERE visible=1 $excluded_forums_query ORDER BY lastpostid DESC LIMIT 0,".$howmany_latestposts);
$latest_posts .= '<table width="100%"><tr><td width="60%">Latest Posts</td><td width="40%">Top Posters</td></tr><tr><td><table width="100%" border="0" cellspacing="3" cellpadding="3">';
$count=1;
while ($post = $vbulletin->db->fetch_array($latestposts))
{
$latest_posts .= '<tr><td><a href="showthread.php?t='.$post['threadid'].'&goto=newpost#'.$post['lastpostid'].'">'.substr($post['title'],0,50).'...</a></td><td><a href="member.php?u='.$post['lastposterid'].'">'.$post['lastposter'].'</a></td><td><a href="showthread.php?t='.$post['threadid'].'"><img src="images/buttons/collapse_40b.png" alt="" /></a></td></tr>';
$count++;
}
$latest_posts .= '</table>
</td><td>
I know you need to query the forum table and get the forum[title] from there so all I need is a little code modification in what I pasted above. Many thanks!