The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Header and footer on external page
How can I include the header (and navbar) and footer of vBulletin on external page?
|
#2
|
|||
|
|||
Maybe you could create your own vbulletin page (https://vborg.vbsupport.ru/showthread.php?t=228112) that includes the header, footer, and navbar, then include your external page in that (https://vborg.vbsupport.ru/showthread.php?t=24245)
|
#3
|
|||
|
|||
No, I have to add header and footer of vbulletin on wordpress.
|
#4
|
||||
|
||||
Then you might want to look to the Wordpress sites for that.
|
#5
|
|||
|
|||
I can include an external file into wordpress like this:
Code:
<?php include 'LINK_TO_INCLUDING_FILE'; ?> |
#6
|
|||
|
|||
Quote:
You could probably use iframes and then write scripts to produce the html you want (you'd need one for each separate section I guess, lik have one that generates just the header and navbar, and another that produces just the footer). --------------- Added [DATE]1313613328[/DATE] at [TIME]1313613328[/TIME] --------------- OK, I put together this script and called it wp.php, and put it in the vb directory: PHP Code:
and I also created two new templates, wp_top and wp_bottom: wp_top: HTML Code:
{vb:stylevar htmldoctype} <html xmlns="http://www.w3.org/1999/xhtml"<vb:if condition="$vboptions['enablefacebookconnect']"> xmlns:fb="http://www.facebook.com/2008/fbml"</vb:if> dir="{vb:stylevar textdirection}" lang="{vb:stylevar languagecode}" id="vbulletin_html"> <head> {vb:raw headinclude} {vb:raw headinclude_bottom} </head> <body> {vb:raw header} {vb:raw navbar} </body> </html> wp:bottom: HTML Code:
{vb:stylevar htmldoctype} <html xmlns="http://www.w3.org/1999/xhtml"<vb:if condition="$vboptions['enablefacebookconnect']"> xmlns:fb="http://www.facebook.com/2008/fbml"</vb:if> dir="{vb:stylevar textdirection}" lang="{vb:stylevar languagecode}" id="vbulletin_html"> <head> {vb:raw headinclude} {vb:raw headinclude_bottom} </head> <body> {vb:raw footer} </body> </html> and then I created this html file to test it: HTML Code:
<html><head><title>Test</title></head> <body> <div><iframe src="forum4/wp.php?do=header" frameborder="0" scrolling="no" width="100%"/></div> This is the body. <div><iframe src="forum4/wp.php?do=footer" frameborder="0" scrolling="no" width="100%"/></div> </body> </html> The navbits section is a problem, I don't know what to set it to, but I suppose you could just remove it from the template. Anyway, I hope this helps. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|