I've got this as my HTML page :
Code:
{vb:stylevar htmldoctype}
<html xmlns="http://www.w3.org/1999/xhtml" dir="{vb:stylevar textdirection}" lang="{vb:stylevar languagecode}" id="vbulletin_html">
<head>
<title>{vb:raw vboptions.bbtitle} - {vb:raw pagetitle}</title>
{vb:raw headinclude}
{vb:raw headinclude_bottom}
</head>
<body>
{vb:raw header}
{vb:raw navbar}
<div id="pagetitle">
<h1>{vb:raw pagetitle}</h1>
</div>
<h2 class="blockhead">Page not found</h2>
<div class="blockbody">
<div class="blockrow">
<h1> OOOPs </h1>
<h2> You've either made a typo, or tried to find a page that doesn't exist!
</br>
Now you have a choice, you can either look at this all day.
Or click <a href="http://www.primodoux.com/index.php"><span style =color:Red><h1>HERE</h1></span></a> to take you back to the index page. <br/>
<br/>
</div>
</div>
{vb:raw footer}
</body>
</html>
and I have this as the php :
Code:
<?php
// ####################### SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);
// #################### DEFINE IMPORTANT CONSTANTS #######################
define('THIS_SCRIPT', 'test');
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('notfound',
);
// 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('' => 'notfound'));
$navbar = render_navbar_template($navbits);
// ###### YOUR CUSTOM CODE GOES HERE #####
$pagetitle = 'Page not found';
// ###### NOW YOUR TEMPLATE IS BEING RENDERED ######
$templater = vB_Template::create('notfound');
$templater->register_page_templates();
$templater->register('navbar', $navbar);
$templater->register('pagetitle', $pagetitle);
print_output($templater->render());
?>
What I get from that is this :
{vb:stylevar htmldoctype} {vb:raw headinclude} {vb:raw headinclude_bottom} {vb:raw header} {vb:raw navbar}
{vb:raw pagetitle}
Page not found
OOOPs
You've either made a typo, or tried to find a page that doesn't exist!
Now you have a choice, you can either look at this all day. Or click
HERE
to take you back to the index page.
{vb:raw footer}
I think I need some help.
I'm using 4.2.1 if thats any help, and I'm trying to create a friendly 404 redirect page
TIA