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!
headinclude template is included in the page that already has the default METAINFO. How do I overwrite it ?
Thanks
Simply copy your meta tags from the in between <head></head> from the forumhome template (as your own meta tags should be there) and paste in between the <head> tags in the newpage!
What style are you using when you go to look at the page? If you've created a template in a particular style, it will only show up when viewing the page in that style. If your currently browsing the forums using another style then you'll get a blank page.
Under Style & Templates I have the "default style" and under that style I have a template called "CarTemplate" my forum uses the "CarTemplate" style....
Under Style & Templates I have the "default style" and under that style I have a template called "CarTemplate" my forum uses the "CarTemplate" style....
And when you go to look at that page, what style are you personally using as you view it?
And when you go to look at that page, what style are you personally using as you view it?
I am using vbadvanced dynamics, I have it set by default to override everyone to use that template "CarTemplate" so I know it isn't using the old default style....
Simply copy your meta tags from the in between <head></head> from the forumhome template (as your own meta tags should be there) and paste in between the <head> tags in the newpage!
I think I didn't get you or you didn't get me
FORUMHOME template DOES NOT HAVE keywords/description meta tags. Just the headinclude template has that info.
See the problem is that when we create a custom page, we include $headinclude in OUR NEW template (that is associated with the newpage).
Now this makes the same old metainfo for the newpage. If however, I try to add my own meta tags to the template, they are added twice (because of the headinclude template).
How do I overwrite those default meta tags with mine??