Hi great mod, but I'm having a few problems with getting it to display on my custom pages.
I've done the template edits but I'm a little unsure where exactly to put this in the .php file.
PHP Code:
$templater->register('sidebarext', $sidebarext);
$templater->register('sidebaropen', $sidebaropen);
I've tried it in a few different places, but I either get a white page or just the normal page with no sidebar?
Here is my .php code, could somebody just point out were I need to add the additional code.
PHP Code:
<?php
// ####################### SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);
// #################### DEFINE IMPORTANT CONSTANTS #######################
define('THIS_SCRIPT', 'portal');
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('PORTAL',
);
// 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('' => 'Portal'));
$navbar = render_navbar_template($navbits);
// ###### YOUR CUSTOM CODE GOES HERE #####
$pagetitle = 'Portal';
// ###### NOW YOUR TEMPLATE IS BEING RENDERED ######
$templater = vB_Template::create('PORTAL');
$templater->register_page_templates();
$templater->register('navbar', $navb
Cheers