
07-24-2008, 10:49 PM
|
 |
|
|
Join Date: Oct 2006
Location: PopCulturalReferenceLand
Posts: 5,171
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by Sergio68
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
|
All you really need to do is make a template for each respective style on your forum, using this same tutorial.
|