The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
|||
|
|||
Old top Ten thread code no longer works, help?
Hey there all,
I had the following code that pulled the top ten latest threads from any given forum (worked fine until upgrading to 3.5.0): Code:
<?php error_reporting(7); $templatesused='latest_hostedthreadbits,latest_hostedthreads'; require('./global.php'); $latest = $DB_site->query("SELECT * FROM thread WHERE forumid='$fid' ORDER BY lastpost DESC LIMIT 10"); while ($recent = $DB_site->fetch_array($latest)) { $title = $recent['title']; $id = $recent['threadid']; eval("\$latest_threads .= \"".fetch_template("latest_hostedthreadbits")."\";"); } eval("print_output(\"".fetch_template('latest_hostedthreads')."\");"); ?> Code:
<?php include("http://www.ultimatemetal.com/forum/hosted10.php?s=&fid=294&size=1"); ?> Code:
<?php error_reporting(7); $templatesused='latest_hostedthreadbits,latest_hostedthreads'; require_once('./global.php'); $latest = $db->query_read("SELECT * FROM thread WHERE forumid='$fid' ORDER BY lastpost DESC LIMIT 10"); while ($recent = $db->fetch_array($latest)) { $title = $recent['title']; $id = $recent['threadid']; eval("\$latest_threads .= \"".fetch_template("latest_hostedthreadbits")."\";"); } eval("print_output(\"".fetch_template('latest_hostedthreads')."\");"); ?> Code:
<html> <body bgcolor="" text="" link="" vlink="" alink=""> </body></html> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|