the forumid will be $popular[forumid]
i wasn't given enough info to make a hack out of this.
Most Popular Thread by Replies
$popular=$DB_site->query_first("SELECT * FROM thread ORDER by replycount DESC LIMIT 1");
Most Popular Thread by Views
$popular=$DB_site->query_first("SELECT * FROM thread ORDER by views DESC LIMIT 1");
then link to showthread.php?s=$session[sessionhash]&threadid=$popular[threadid]
will be the link to most popular thread.
|