The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Using header, navbar, and footer on custom html pages?
I want to use the vB header, navbar, and footer on some of my custom (non forum) pages.
Should I create custom php and call those templates and bring in my other html pages? Is there an easier way? Like having the templates called from my html? What's the easiest way to do this? Thank you, rob |
#2
|
|||
|
|||
with mine i created custom php pages and called the the templates
|
#3
|
|||
|
|||
Quote:
Thank you, rob |
#4
|
|||
|
|||
hey, ok heres how i did it
i created a template in my admin cp called links for example then i made a new php file called links.php which had the following code in it: <?php error_reporting(E_ALL & ~E_NOTICE); require_once('./global.php'); eval('$navbar = "' . fetch_template('navbar') . '";'); eval('print_output("' . fetch_template('links (or whatever your template is called)') . '");'); ?> i uploaded that into my forum directory and then created a link in my navigation bar to link.php Hope this was some help |
#5
|
|||
|
|||
Quote:
Code:
<?php error_reporting(E_ALL & ~E_NOTICE); require_once('./global.php'); eval('$navbar = "' . fetch_template('navbar') . '";'); eval('print_output("' . fetch_template('consultants') . '");'); ?> Thanks, rob |
#6
|
||||
|
||||
In the template you created, put in your XHTML code and where you want the navbar to display, place the variable $navbar there and it should call the navbar template.
Make sure it's $navbar and not just navbar on it's own. |
#7
|
|||
|
|||
Quote:
|
#8
|
|||
|
|||
Quote:
I just want to reference the html page and be able to make easy page changes there and not through the template interface. Thank you, rob |
#9
|
|||
|
|||
Does anyone know the best way through HTML or PHP to "include" an html page?
I just want to reference the html page and be able to make easy page changes there and not through the template interface. Thank you, rob |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|