I got my test page (test.php) to work, but it comes up without showing my forum style (it shows the original vB style). Here's the code of the page (oh yeah, the page is outside the vB directory):
PHP Code:
<?php
// ####################### SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);
// #################### DEFINE IMPORTANT CONSTANTS #######################
define('NO_REGISTER_GLOBALS', 1);
define('THIS_SCRIPT', 'test'); // 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(
'test',
);
// pre-cache templates used by specific actions
$actiontemplates = array(
);
// ######################### REQUIRE BACK-END ############################
chdir('/home/kowlcla/public_html/forum/');
require('./global.php');
// #######################################################################
// ######################## START MAIN SCRIPT ############################
// #######################################################################
$navbits = array();
$navbits[$parent] = 'vB Test Page;
$navbits = construct_navbits($navbits);
eval('$navbar = "' . fetch_template('navbar') . '";');
eval('print_output("' . fetch_template('test') . '");');
?>
1. What's wrong here?
2. And the links all point to my website's root directory, not my forum's root directory. For example:
http://domain.com/usercp.php instead of
http://domain.com/forum/usercp.php.
3. And the navbar drop down menus don't work. How do I fix this also?
Thanks for answering all my questions.