Quote:
Originally Posted by Stryker412
How can you get your page to auto adapt to the current theme a user is running (ie. font and panel colors)?
|
Be careful, this is not the correct and safe way to do it, but if you build your test.php page like this :
PHP Code:
<?php
error_reporting(E_ALL & ~E_NOTICE);
define('NO_REGISTER_GLOBALS', 1);
define('GET_EDIT_TEMPLATES', true);
define('THIS_SCRIPT', 'releases');
$phrasegroups = array();
$specialtemplates = array();
$globaltemplates = array();
$actiontemplates = array();
// require_once('./includes/vba_cmps_include_template.php');
// chdir('/srv/www/www.bodyweb.it/forums/');
require_once('./global.php');
// $vbulletin->options['homeurl'];
$navbits = array();
$navbits[''] = 'Prodotti';
$navbits = construct_navbits($navbits);
eval('$navbar = "' . fetch_template('navbar') . '";');
// eval('print_output("' . fetch_template('prodotti') . '");');
// **** include code
// **** Template HTML echo instead of eval template and plugin ****
echo"
$stylevar[htmldoctype]
<html dir='$stylevar[textdirection]' lang='$stylevar[languagecode]'>
<head>
<title>$vboptions[bbtitle] - Prodotti</title>
$headinclude
<script type='text/javascript' src='./forums/clientscript/vbulletin_global.js'></script>
<script type='text/javascript' src='./forums/clientscript/vbulletin_menu.js '></script>
</head>
$header
$navbar
// **** more code.
$footer
</body>
</html>";
?>
You just need one page, you can also include part of header template and footer template