I have changed my
vBulletin php file to:
PHP Code:
<?php
// ####################### SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);
// #################### DEFINE IMPORTANT CONSTANTS #######################
$_shopfile = basename($_SERVER['SCRIPT_FILENAME'], '.php');
if (($pos = strrpos($_shopfile, '.')) !== false) {$_shopfile = substr($_shop, 0, $pos);}
define('THIS_SCRIPT', 'osc_' . $_shopfile);
//define('CSRF_PROTECTION', true);
// change this depending on your filename
// ################### PRE-CACHE TEMPLATES AND DATA ######################
// get special phrase groups
$phrasegroups = array();
// get special data templates from the datastore
$specialtemplates = array();
// pre-cache templates used by all actions
$globaltemplates = array(
'oscShop',
'oscShop_headinclude'
);
// pre-cache templates used by specific actions
$actiontemplates = array();
// ######################### REQUIRE BACK-END ############################
// if your page is outside of your normal vb forums directory, you should change directories by uncommenting the next line
// chdir ('/path/to/your/forums');
require_once('./global.php');
// #######################################################################
// ######################## START MAIN SCRIPT ############################
// #######################################################################
$navbits = construct_navbits(array('' => 'osc Shopping Cart'));
$navbar = render_navbar_template($navbits);
// ###### YOUR CUSTOM CODE GOES HERE #####
$pagetitle = 'osc Shopping Cart';
// ###### NOW YOUR TEMPLATE IS BEING RENDERED ######
$templater = vB_Template::create('oscShop');
$templater->register_page_templates();
$templater->register('navbar', $navbar);
$templater->register('pagetitle', $pagetitle);
$templater->register('includeshopbody', $includeshopbody);
$templater->register('oscShop_headinclude', $oscShop_headinclude);
print_output($templater->render());
?>
I changed in it, the $globaltemplates and $templater->
Is that correct.
Not sure what else to do.
Hope someone can help, please.