Back to vBulletin 4.x Template Modifications

Create 404 Page
Mod Version: 1.00, by ALBCODERS

vB Version: 4.0.x Rating: (3 votes - 3.67 average) Installs: 44
Released: 29 Jun 2010 Last Update: 29 Dec 2010 Downloads: 214
Not Supported Template Edits  

I am not a proffessional Coder but I just fixed a 404 page for my Forum.
If you want to create one follow me;

Crate a new template wich will called 404_error on your style:

HTML Code:
{vb:stylevar htmldoctype}
<html xmlns="http://www.w3.org/1999/xhtml" dir="{vb:stylevar textdirection}" lang="{vb:stylevar languagecode}" id="vbulletin_html">
  <head>
    {vb:raw headinclude}
<title>Gabim  404 - Faqja nuk u Gjet</title>
  </head>
  <body>
    {vb:raw header}
    {vb:raw navbar}
    <div id="pagetitle">
<h2 class="blockhead" align="center">404 ERROR</h2>
					<h3 class="blocksubhead">ERROR 404  Page Not Found.! </br> (( PUT YOUR CODE OR IMAGE HERE )) </h3>
</br>
{vb:raw footer}
</body>
</html>
Change the text (( PUT YOUR CODE OR IMAGE HERE )) whith your Code that you want.

So Now you need a 404.php lets create one;

PHP Code:
<?php

error_reporting
(E_ALL & ~E_NOTICE);

define('THIS_SCRIPT''404_error');
define('CSRF_PROTECTION'true);
define('CSRF_SKIP_LIST''');
define('VB_ENTRY''404.php');

$phrasegroups = array();


$specialtemplates = array();


$globaltemplates = array('404_error',
);


$actiontemplates = array();


require_once(
'./global.php');

$navbar render_navbar_template(construct_navbits($navbits));

$templater vB_Template::create('404_error');
$templater->register_page_templates();
$templater->register('navbar'$navbar);
print_output($templater->render());

?>
Now open .htaccess file and add this ;
PHP Code:
RewriteEngine On
ErrorDocument 404 http
://www.albcoders.com/404.php 

Download

File Type: %1$s 404.php (598 Bytes, 171 downloads)


vblts.ru supports vBulletin®, 2022-2024