vbulletin custom page.

I hate propriety software, when it come to customization and developing you have almost no resource to look upon. To write a page that integrate components from (header, navigationbar, footer, etc…) you have to:

// #################### DEFINE IMPORTANT CONSTANTS #######################
define('THIS_SCRIPT', 'ly_lich_sv');
define('CSRF_PROTECTION', true);
define('CSRF_SKIP_LIST', '');
define('VB_ENTRY', 'ajax.php');
define('LOCATION_BYPASS', 1);
define('NOPMPOPUP', 1);
define('VB_ENTRY_TIME', microtime(true));

THEN:

// ######################### REQUIRE BACK-END ############################
require_once('./global.php');

then:

$navbar = render_navbar_template(construct_navbits($navbits));	

and finally:

// Finish the main template

$templater = vB_Template::create('ly_lich_sv');
	$templater->register_page_templates();
	$templater->register('navclass', 		$navclass);
	$templater->register('HTML', 			$HTML);
	$templater->register('navbar', 			$navbar);
	$templater->register('pagetitle', 		$pagetitle);
	$templater->register('template_hook', 	$template_hook);
	$templater->register('includecss', 		$includecss);
print_output($templater->render());

But that is not all, it just the code. You will need the template. The template is some freaking file that this forum software read and the convert into html.