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!
You'd have to copy the code in the file to produce the results for that; easiest thing to do would be to copy all of the contents of the index.php but remove the print_output() line.
Is there any chance to get the "Quick-Links" of the navbar running on "vBulletin-powered pages"? That would be nice.
Sorry, my fault. forgot the $navbar.
But the other problem exists nevertheless.
Well I haven't looked into how the code creates the events data, but I suppose it would require more than index.php then. I will look into it when I have time, or maybe someone else could give it a go
Yes it's possible but it would be harder to explain and to make it work properly; why not just create a new file?
I was using vBadvanced and had 100+ pages running through it, they're all saved as index_(pagename), I was hoping to be able to do this without making a page for each and keeping them named as index_pagename
Well I haven't looked into how the code creates the events data, but I suppose it would require more than index.php then. I will look into it when I have time, or maybe someone else could give it a go
That would be great. I'll take a look as well, but I tried various things yesterday and none was working.