Thanks tht helped.
I am facing a problem now with scripts placed outside the vbulletin directory
See
http://www.genportal.org/team/team_builder.php
The forum is located at genportal.org/forum/
The images and the links do not work because they dont get the right path...
Here is the code i have used. What have i done wrong
Code:
<?php
// ######################## SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);
// ##################### DEFINE IMPORTANT CONSTANTS #######################
// change the line below to the actual filename without ".php" extention.
// the reason for using actual filename without extention as a value of this constant is to ensure uniqueness of the value throughout every PHP file of any given vBulletin installation.
define('THIS_SCRIPT', 'team_builder');
// #################### 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(
// change the lines below to the list of actual templates used in the script
'team_builder',
'team_builder2',
);
// pre-cache templates used by specific actions
$actiontemplates = array();
// ########################## REQUIRE BACK-END ############################
chdir('../forum');
require_once('./global.php');
if (!$vbulletin->userinfo['userid'])
{
print_no_permission();
}
// #################### HARD CODE JAVASCRIPT PATHS ########################
$headinclude = str_replace('clientscript', $vbulletin->options['bburl'] . '/clientscript', $headinclude);
// ########################################################################
// ######################### START MAIN SCRIPT ############################
// ########################################################################
$navbits = array();
// change the line below to contain whatever you want to show in the navbar (title of your custom page)
$navbits[$parent] = 'Team Builder';
$navbits = construct_navbits($navbits);
eval('$navbar = "' . fetch_template('navbar') . '";');
$hello = "Hello World";
// change the line below to contain the name of the actual main output template used in your script
eval('print_output("' . fetch_template('team_builder') . '");');
?>