vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=168)
-   -   navbit's on non-vbulletin pages? (https://vborg.vbsupport.ru/showthread.php?t=220727)

GoodOmens 08-12-2009 02:31 PM

navbit's on non-vbulletin pages?
 
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 Code:

<?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:
HTML Code:

<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.

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

Quote:

Originally Posted by GoodOmens (Post 1865960)
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.


All times are GMT. The time now is 02:53 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01651 seconds
  • Memory Usage 1,725KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_html_printable
  • (1)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete