Creating Custom vBulletin Pages

sith717

New Member
Ever wonder how you could add custom vBulletin pages to your site?

Now you can with 3 easy steps!

First go into your AdminCP then Styles & Templates, then go to Template Options, then Add New Template.

For the Title, name it what ever you want.
(MAKE SURE YOU REMEMBER WHAT YOU NAMED IT!)
Then into Template, insert this code.



HTML:
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<title>$vboptions[bbtitle] - $pagetitle</title>
$headinclude
</head>
<body>
$header
$navbar

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">

<tr class="tcat">
  <td><strong>TITLE PAGE!</strong></td>
</tr>

<tr>
    <td class="alt1">

YOUR CONTENT HERE!


    </td>
</tr>
</table>

$footer
</body>
</html>

Click Save.



Then go into your file manager and create a page, I am going to create a page called testing.php!

Next insert this html code into the testing.php page:

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 ############################
require_once('./global.php');

// #######################################################################
// ######################## START MAIN SCRIPT ############################
// #######################################################################

$navbits = array();
$navbits[$parent] = 'Test Page';

$navbits = construct_navbits($navbits);
eval('$navbar = "' . fetch_template('navbar') . '";');
eval('print_output("' . fetch_template('[color=Red]testing[/color]') . '");');

?>
See the word testing in red? Well, you have to remember what you named your Template. Rename that word to the template name you made before.

Then Save.

Your done! You have successfully created a vBulletin integrated page!

Now go to your page by going to YOURSITE.COM/forums/YOURPAGE.php

The YOURPAGE should be replaced with what you named your .php file.

This is mine: Forums


PLEASE THANK ME OR I WILL DELETE THIS POST! THANK YOU!​
 

Hoxxy

New Member
Do not threaten members with "THANK ME OR I WILL DELETE THIS POST!" and do not shout in your posts....

...actually go a head and delete it as its already been posted by me ages ago! and while your at it remove your link!
 

DjMorley

New Member
the lammer who posted is forum link as had is accout suspended lol and im not goin to thank you as well as no one tells me what to do LMAO
 
Top