Want to create your very own vBulletin powered page which includes the header, footer, and the user permissions system as well?
Well now you can
Want to know how it will look? Take a look at the attached screenshot below!
Now includes the Who's Online modification! Also, instructions included on how to create your own pages that are integrated with current vBulletin files!
I'm going to give you a generic page but you can easily modify the contents of the page by changing the template
So here we go
Instructions:
Create a new file, whatever you want to call it (let's say test.php).
Open up test.php and add the following (replace TEST with whatever template you want to show):
PHP 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(
Be sure to change 'TEST' to the actual template name, and change 'test' to the filename. Also, change 'Test Page' to whatever you want to show in the navbar, such as 'Viewing Member Profile' (just an example).
Now create the template, called TEST with the following content:
Replace 'xxx' with whatever you want ?do= in the query string to be (for example, replace 'xxx' with 'showprofile' so then someone would type in example.php?do=showprofile to view this template.) Then of course, change TEMPLATE_XXX to your template name, it's that simple!
Take out chdir('/home/username/public_html/'); for right now. Put yourtest.php in your forum root folder, like so: www.mknexusonline.com/forums/test.php. It should start working for you now.
that i know it will works but i want to add this pagehere
That's not how this tutorial works. You'll notice it says to create a template called TEST, not custom_TEST. It's says nothing about adding a prefix. That URL that you posted takes you to misc.php and is very much how the custom pages within vBadvanced work. But how can you possibly get to a file named test.php when your navigating to misc.php? Their two different pages. This tutorial teaches you how to create a page without the do= string at the end.
Dude, did you miss the part where I said I have over 40 pages created like this? Each page .php page has it's own name and that name matches up with custom_same page name.
Dude, did you miss the part where I said I have over 40 pages created like this? Each page .php page has it's own name and that name matches up with custom_same page name.
Don't tell me it doesn't work, because this is how this mod works.
I didn't say it didn't work. I said that's not how this tutorial works. This tutorial creates individual .php pages with unique names for each one. With your method, the .php pages your creating aren't even being used. Not to mention, the point of the tutorial is to navigate to a page called test.php, not misc.php. You'll notice that nothing your saying is even mentioned in this tutorial.