PDA

View Full Version : Trying to re-use vB dropdown menues in the home portal of my site.


JonZ
04-03-2009, 12:59 AM
I tried to search all the day but I couldn't find any answers. I have a navbar on my portal, and I'd like to include dropdown of the same used from the forum.

i tried to import js in the header (vbulletin_menu.js and vbulletin_global.js ) and reproduce that part of code following that tutorial: http://www.vbulletin.com/forum/showthread.php?t=224641


<!--second menu init-->

<li id="custommenu" class="vbmenu_control">
<a href="#">Custom Menu</a>
<script type="text/javascript">vbmenu_register("custommenu");</script>
</li>

<!--end of second menu init-->

<!--second menu-->
<div class="vbmenu_popup" id="custommenu_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead">Custom Menu1</td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite">
content row
</td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite">
content row
</td>
</tr>
</table>
</div>


I see the menus, but there's no effects.

What I am doing wrong?

Lynne
04-03-2009, 03:14 AM
Perhaps the path is wrong? Maybe the id is not unique? It's hard to tell without being able to see your (non)working page.

JonZ
04-03-2009, 03:27 AM
maybe because i use a different vB version? (using v3.7.3). I can't really show you my non working page here but can i pm you the instruction on how to access it?

Lynne
04-03-2009, 03:29 AM
Yeah, you can PM it to me. I just want to look at the page source and see if the paths are correct and such.

JonZ
04-03-2009, 03:48 AM
PM sent, thanks!