query("SELECT * FROM thread ORDER BY lastpost DESC LIMIT $numposts"); if ($viewprivate == "off") { while ($thread = $DB_site->fetch_array($threadsql)) { $perms = getpermissions($thread[forumid]); if ($perms[canview]) { eval("\$latest .= \"".gettemplate("latestbit")."\";"); } } } else { while ($thread = $DB_site->fetch_array($threadsql)) { eval("\$latest .= \"".gettemplate("latestbit")."\";"); } } eval("dooutput(\"".gettemplate('latest')."\");"); //////////////////////////////// // I can't believe I was able // // to do this in so little // // code. There MUST be some- // // thing wrong with it. If // // you have something to point// // out, do it on the thread at// // vBulletin.org! Don't e- // // mail me...I will ignore ya // //////////////////////////////// ?>