Quote:
If your main page was information.php you would have to write multiple request methods such as: information.php?do=main information.php?do=contact information.php?do=about You would create your templates and put them all into the $globaltemplates array() like $globaltemplates = array( 'main', 'contact', 'about' ); When working with multiple templates, I do advise to use some prefix such as info_ or something. Then you setup your php file to handle the requests. PHP Code:
but basically, you have to handle the code for your different url requests, then write the different eval() to fetch the templates within those requests. I suggest looking into the code of a product that uses multiple urls to get a better understanding. ****************************** Quote:
But, if you want it to be contained within your forum layout, there are several variables you must call such as $headinclude,$header,$navbar and $footer This places your content within the vbulletin page. Simply by pasting the code provided into a new template should work for you. As far as the PHP file, there are really only two areas you need to edit. These areas MUST conform to the template name you just created. Code:
// pre-cache templates used by all actions Code:
eval('print_output("' . fetch_template('TEMPLATENAME') . '");'); You would edit the supplied php code in this thread to: Code:
$globaltemplates = array( Code:
eval('print_output("' . fetch_template('aboutme') . '");'); Save the file as aboutme.php and upload to your forum root so when people visit www.yoursite.com/forum/aboutme.php it will display the contents of the template you created. If you need assistance with a simple page, contact me. I'd like to add that sometimes the forumjump menu does not work on pages in which case you need to add PHP Code:
Also, if you would like to have the name appear in the navbar when viewing the page,use PHP Code:
|
All times are GMT. The time now is 05:59 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|