![]() |

The JacquiiDesigns Blog contains random posts by Jacquii Cooke. Mostly there will be uncategorized tidbits you may or may not be interested in...
No doubt the posts will be unique, witty & one-of-a-kind as is JacquiiDesigns.
Of course - If you're interested in obtaining any of our services (creative content writing is available...) don't hesitate to use our system or Send An Email to Jacquii.
As always - Enjoy the site and feel free to post commentary if you like.
Print
Email
Creating Custom vBulletin Pages
Adding customized, vBulletin-powered pages to your forum is easy as Grandma's blueberry cobbler. There are only a few steps to complete and you will have your own vBulletin pages which will use your own header, footer and usergroup permissions! The easy-to-follow steps for vBulletin custom page implementation follows below:
First you will create a new .php file which you will upload to your forum's root directory. For instance - if your forum is in a folder called "forum" -- Upload your new .php file to the "forum" directory. If your forum is in your main site root "public_html" -- Then upload your new .php file to that directory. Please be assured that your newly created .php file is uploaded into the same directory as your index.php file.
So - We shall start off by opening a text editor of your choice. JacquiiDesigns recommends you use the open source Notepad++, a freely available, easy-to-use, notepad replacement source code editing application. Paste the following code into a blank page:
|
<?php error_reporting(E_ALL & ~E_NOTICE); define('NO_REGISTER_GLOBALS', 1); define('THIS_SCRIPT', 'NAME OF CUSTOM PHP FILE NAME'); $phrasegroups = array( ); $specialtemplates = array( ); $globaltemplates = array( 'NAME OF CUSTOM TEMPLATE', ); $actiontemplates = array( ); require_once('./global.php'); $navbits = array(); $navbits[$parent] = 'TITLE PAGE TO APPEAR IN NAVIGATION'; $navbits = construct_navbits($navbits); eval('$navbar = "' . fetch_template('navbar') . '";'); eval('print_output("' . fetch_template('NAME OF CUSTOM TEMPLATE') . '");'); ?> |
Please take special notice to four (4) capitalized text fields which will need to be edited in the code above as follows:
Now save & upload your newly created .php file to your forum's root directly as mentioned above. 1st Step is now complete. Congratulations.
So... Now that the new .php file has been created and uploaded, you will need to add the new template mentioned in your .php file. You will add the template via your vBulletin AdminCP. This step is about as easy as Mama's sweet sweet applie pie. 
Moving forward: To create your new template -- Please browse to your AdminCP --> Styles & Templates --> Style Manager --> ((Select from the dropdown menu of your style)) Add New Template. Then include the following for your template creation:
| $stylevar[htmldoctype] <html xmlns="http://www.w3.org/1999/xhtml" dir="$stylevar[textdirection]" lang="$stylevar[languagecode]"> <head> $headinclude <title>TITLE OF PAGE - $vboptions[bbtitle]</title> </head> <body> $header $navbar <!-- CONTENT OF YOUR CUSTOM PAGE /--> $footer </body> </html> |
| <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <tr> <td class="tcat">TABLE TITLE</td> </tr> <tr> <td class="alt1">TABLE CONTENTS</td> </tr> </table> |
Highly Recommended | Affordable, Quality VPS & Dedicated Webhosting With HostV!
(Let us know if you choose HostV or shared hosting from Cirtex as your web host solution...)
This is a fantastic walkthrough. Any chance of releasing one for vb 4.0? I would love to see it.