Thank you, that got line of code got me a bit further but still having problems. It displays the header, but it doesn't display the navbar or footer. It is almost like it stops loading after that line.
PHP Code:
<?php
/* vBulletin Information Retrieval*/
$curdir = getcwd ();
chdir('/home/shhh/public_html/');
require_once('/home/shhh/public_html/global.php5');
chdir ($curdir);
/* Name and User Id of User*/
$user_id = $vbulletin->userinfo['userid'];
$user_name = $vbulletin->userinfo['username'];
/*Find out what style a user has selected and retrieve the CSS for that style */
$user_sql = "SELECT * FROM user WHERE username = '$user_name'";
$execute_user_sql = mysql_query($user_sql);
$number_of_retrievals = mysql_num_rows($execute_user_sql);
if($number_of_retrievals == "1"){
$user_information = mysql_fetch_array($execute_user_sql);
$style_id = $user_information[styleid];
if($style_id == "0" || $style_id == "1"){
$style_sql = "SELECT * FROM style WHERE styleid = '1'";
$execute_style_sql = mysql_query($style_sql);
$style_information = mysql_fetch_array($execute_style_sql);
$style_css = $style_information[css];
echo $style_css;
}
else{
$style_sql = "SELECT * FROM style WHERE styleid = '$style_id'";
$execute_style_sql = mysql_query($style_sql);
$style_information = mysql_fetch_array($execute_style_sql);
$style_css = $style_information[css];
echo $style_css;
}
}
else{
$style_sql = "SELECT * FROM style WHERE styleid = '1'";
$execute_style_sql = mysql_query($style_sql);
$style_information = mysql_fetch_array($execute_style_sql);
$style_css = $style_information[css];
echo $style_css;
}
echo eval('print_output("' . fetch_template('header') . '");');
echo eval('print_output("' . fetch_template('navbar') . '");');
echo eval('print_output("' . fetch_template('footer') . '");');
?>