PDA

View Full Version : Javascript Search & Quicklink pulldown menus on nonvB pages


memobug
10-20-2004, 11:26 PM
I have vBulletin navbar's on my Photopost Pages. I made lots of changes to get all the links to be absolute, because the relative links weren't working.

The last thing I fixed was the Javascript in the header-include files. I was getting javascript errors from the calls to two scripts in the clientscript directory, because the path to that directory was relative. So I changed the path to them. (vbulletin_global.js) (vbulletin_menu.js)

Unfortunately, although I don't get any Javascript errors like I did before, the two pulldown boxes (for Search and Quick Links) don't work. Does anyone have any idea why?

Here's a link where you can see it not working in living color: (little triangles near Search and Quick Links should launch the pulldown)

http://pictures.bonsaitalk.com/

and here, where it works

http://forum.bonsaitalk.com

Thanks & regards

Matt

Natch
10-25-2004, 02:13 AM
Simple really: the last thing you need to do is add the following to the bottom of your pages...<script type="text/javascript">
<!--
// Main vBulletin Javascript Initialization
vBulletin_init();
//-->
</script>