The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
vB3 menu on a non vb3 page
Can somebody please tell me how to add the vb3 menu on a standard html page?
I have a page I am adding to my site, but I want it to pull the navbar template and keep the cookie info from my vb3? Ideas? |
#2
|
||||
|
||||
first of all, you'd need some of the vbulletin functions, so you need to include the vb global file, then get the navbar, and then echo it.
<?php chdir("path/to/my/forums"); include("./global.php"); eval('$navbar = "' . fetch_template('navbar') . '";'); echo $navbar; ?> |
#3
|
||||
|
||||
Is there anyway to do this without php?
|
#4
|
||||
|
||||
Copy & Paste from the navbar template and remove any variables or conditionals.
|
#5
|
||||
|
||||
I did that, but the drop-down menus do not work.
|
#6
|
||||
|
||||
Quote:
<?php chdir("/home/webbhelp/www/forums"); include("./global.php"); eval('$header = "' . fetch_template('header') . '";'); echo $header; eval('$navbar = "' . fetch_template('navbar') . '";'); echo $navbar; ?> Ideas? |
#7
|
||||
|
||||
you'll also need the jscript and the headinclude
|
#8
|
||||
|
||||
I just tried the php code i gave you, and it works fine for me.
|
#9
|
||||
|
||||
My code looks like this.
The link is as follows: http://hidingplace.com/BibleSearch/html/header.html. As you can see, the navbar template does not show the background colors that are usually behind the links, the drop-down menu images are not showing up and not working. The only reason it is pulling the title image and the background image is becuase I have hard coded them in the header template. Ideas? Code:
<meta http-equiv="Content-Type" content="text/html; charset=$stylevar[charset]" /> <meta name="generator" content="vBulletin $versionnumber" /> <meta name="keywords" content="$vboptions[keywords]" /> <meta name="description" content="$vboptions[description]" /> <!-- CSS Stylesheet --> $style[css] <if condition="is_browser('opera')"> <style type="text/css"> ul, ol { padding-left:20px; } </style> </if> <!-- / CSS Stylesheet --> <script type="text/javascript"> <!-- var SESSIONURL = "$session[sessionurl]"; var IMGDIR_MISC = "$stylevar[imgdir_misc]"; // --> </script> <script type="text/javascript" src="/forums/clientscript/vbulletin_global.js"></script> <if condition="$show['popups']"><script type="text/javascript" src="/forums/clientscript/vbulletin_menu.js"></script></if> <?php chdir("/home2/webbhelp/www/forums"); include("./global.php"); eval('$header = "' . fetch_template('header') . '";'); echo $header; eval('$navbar = "' . fetch_template('navbar') . '";'); echo $navbar; ?> |
#10
|
||||
|
||||
Quote:
Secondly, I see you are placing vb if conditional statements right inside html. That just doesn't work. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|