There is an update, should you prefer to use templates...
Input this code instead of g-force's :
PHP Code:
// +++++++ Last Post Thread ID [ Start ] +++++++
$getid=$DB_site->query("SELECT threadid FROM thread ORDER BY lastpost DESC LIMIT 1");
while ($threads = mysql_fetch_array($getid)) {
eval("\$lastthread = \"".gettemplate("lastthread_id")."\";");
}
$getpid=$DB_site->query("SELECT postid FROM post ORDER BY postid DESC LIMIT 1");
while ($postings = mysql_fetch_array($getpid)) {
eval("\$lastpost = \"".gettemplate("lastpost_id")."\";");
}
// +++++++ Last Post Thread ID [ End ] +++++++
Now make 2 templates, :
Code:
lastthread_id
<a href="showthread.php?s=$session[sessionhash]&threadid=$threads[threadid]">$threads[threadid]</a>
Code:
lastpost_id
<a href="showthread.php?s=$session[sessionhash]&postid=$postings[postid]">$postings[postid]</a>
Now just put $lastthread and $lastpost in the forumhome template...
Satan