PDA

View Full Version : navbit's on non-vbulletin pages?


GoodOmens
08-12-2009, 02:31 PM
If you visit my site: http://www.lineagejunkies.com

You'll notice I'm using navbits on non-vbulletin pages. It works almost 100% but I need help getting it fully working.

If you notice the javascripts are not working.

The method I am using is as follows:

<?php
chdir('./forum');
require_once('./global.php');
$navbits = array();
$navbits[$parent] = 'LJ Blog';
$navbits = construct_navbits($navbits);
eval('$navbar = "' . fetch_template('navbar') . '";');
echo $navbar;
chdir('../');
?>

I've tried including:
<script type="text/javascript" src="/forum/clientscript/vbulletin_global.js?v=384"></script>
<script type="text/javascript" src="/forum/clientscript/vbulletin_menu.js?v=384"></script>


In the header but it's not working correctly. Any suggestions or is this not possible?

Lynne
08-12-2009, 04:06 PM
Take a look at this on how to create 'non-vbulletin' pages - [How-To] vBulletin API Basics: Creating Custom Pages & Misc. (https://vborg.vbsupport.ru/showthread.php?t=98009)

GoodOmens
08-12-2009, 04:17 PM
Yea that's where I got some of the info from.

However it doesn't mention getting the javascript to work.

bobster65
08-12-2009, 04:34 PM
Yea that's where I got some of the info from.

However it doesn't mention getting the javascript to work.

try add echo $headinclude; right before echo $navbar;

GoodOmens
08-15-2009, 03:48 AM
No that didn't work :-(

Even tried copying the client script folder to my blog directory. View source shows the menus ... just JavaScript isn't working for some reason.