I found the problem after just 4 hours of my time..:D
This is the problem here:
<div class="block">
<h2 class="block2"><span>Top 10 Posts</span></h2>
<div class="box">
<div class="inbox">
<ul>
<?php
$trunc_len = 20; // Fill this in
$result = $db->query('SELECT subject, id FROM '.$db_prefix.'topics ORDER BY last_post DESC LIMIT 10') or error('Unable to fetch post info', __FILE__, __LINE__, $db->error());
while($cur_topics = $db->fetch_assoc($result))
{
?>
<li><img style="vertical-align: middle;" src="img/icon_dot.gif" alt="" /> <a href="viewtopic.php?id=<?php echo $cur_topics['id']; ?>"><?php echo substr($cur_topics['subject'], 0, $trunc_len); ?>...</a></li>
<?php
}
?>
</ul></div>
</div>
</div>
The above code resides in a file called: recenttopics.inc.php and you will notice that I have changed "topic" to "topics". I had to do this because there was a conflict using $cur_topic so I had to make it $cur_topics instead. Once logged into the site it works great. However, it messes with quite a bit of options, such as maoderate.php (viewing users ip) and logging in as well. Does anyone know how I can resolve this issue?
Thanks
Bingiman