paul41598
11-21-2006, 11:59 AM
What do you see wrong with this php file I made? I keep getting a blank page and its driving me crazy. All Im doing is a query and outputting the results in a table.
I think it has to do with fetching the templates. Because if I put a echo "$getadmirername1"; right before the fetch template it shows me results fine.
My templates are made and the right variables placed in em. I dont get it
<?php
$globaltemplates = array(
'jb_bit',
'jb'
);
require_once('./global.php');
$sql = $vbulletin->db->query("
SELECT thread.title as ttitle, thread.forumid, forum.forumid, forum.title as ftitle
FROM " . TABLE_PREFIX . "thread
LEFT JOIN " . TABLE_PREFIX . "forum as forum ON(thread.forumid = forum.forumid)
WHERE vbp_titletextcolor <> ''
");
while($thisuser = $vbulletin->db->fetch_array($sql))
{
$gettitle = $thisuser['ttitle'];
$getforumtitle = $thisuser['ftitle'];
eval('$jb_bits .= "' . fetch_template('jb_bit') . '";');
}
eval('$html = "' . fetch_template('jb') . '";');
?>
n/m figured it out. Guess I needed a:
eval('print_output("' . fetch_template('shell_blank') . '");');
in there... weird
I think it has to do with fetching the templates. Because if I put a echo "$getadmirername1"; right before the fetch template it shows me results fine.
My templates are made and the right variables placed in em. I dont get it
<?php
$globaltemplates = array(
'jb_bit',
'jb'
);
require_once('./global.php');
$sql = $vbulletin->db->query("
SELECT thread.title as ttitle, thread.forumid, forum.forumid, forum.title as ftitle
FROM " . TABLE_PREFIX . "thread
LEFT JOIN " . TABLE_PREFIX . "forum as forum ON(thread.forumid = forum.forumid)
WHERE vbp_titletextcolor <> ''
");
while($thisuser = $vbulletin->db->fetch_array($sql))
{
$gettitle = $thisuser['ttitle'];
$getforumtitle = $thisuser['ftitle'];
eval('$jb_bits .= "' . fetch_template('jb_bit') . '";');
}
eval('$html = "' . fetch_template('jb') . '";');
?>
n/m figured it out. Guess I needed a:
eval('print_output("' . fetch_template('shell_blank') . '");');
in there... weird