View Full Version : seeking tutorial to have vbheader & footer on nonvb php page
sross
05-30-2006, 12:47 AM
i see photopost can integrate vb header and footer, is there a tutorial for achieving this with other php apps? Been looking for a while and can't find it. Thanks for any help!
Quarterbore
05-30-2006, 03:19 PM
I have not see a tutorial myself but I struggled through the standard files to figure this much out...
<?php
// ####################### SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);
// ############# REQUIRE BACK-END #######################
require_once('./global.php');
// ############# Get Some templates #######################
eval('$headinclude = "' . fetch_template('headinclude') . '";');
eval('$header = "' . fetch_template('header') . '";');
eval('$navbar = "' . fetch_template('navbar') . '";');
// ############# Output templates #######################
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">';
echo '<html dir="' . $stylevar[textdirection] . '" lang="' . $stylevar[languagecode] . '">';
echo $headinclude;
echo '<body>';
echo $header;
echo $navbar;
echo '<center> <img src="http://www.timeshareforums.com/images/welcome.gif"> </center>';
echo $footer;
echo '</body>';
echo '</html>';
?>
The output is like this:
http://www.timeshareforums.com/navbar-testing.php
I don't know if there is anything above that can be removed and still have this work but it is pretty close to the minimum if there is anything else that can be removed!
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.