The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
I have this code, which isn't grabbing the variable from the URL string, but if I hard code a forum id it works. Code:
Code:
<?php
error_reporting(7);
$templatesused='latest_hostedthreadbits,latest_hostedthreads';
require('./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:
<?php include('http://www.ultimatemetal.com/forum/hosted10.php?s=&fid=143&size=1&face=verdana&vlink=666699&link=336699&alink=000000&body=&text=000000'); ?>
Am I doing something wrong or has something change in 3.5.0 that makes it to where I can no longer grab that variable in that format? EDIT: This script grabs the top ten latest threads in any given forum and allows bands (in my case) to display this on their sites. Everything worked pre-3.5.0 upgrade. |
|
#2
|
|||
|
|||
|
You will need to make those variables available first. Add the following after global.php:
PHP Code:
|
|
#3
|
|||
|
|||
|
Thank you sir! Works now
|
|
#4
|
|||
|
|||
|
Glad to help you.
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|