vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Trying to re-use vB dropdown menues in the home portal of my site. (https://vborg.vbsupport.ru/showthread.php?t=210184)

JonZ 04-02-2009 11:59 PM

Trying to re-use vB dropdown menues in the home portal of my site.
 
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

Code:

<!--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 02: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 02: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 02: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 02:48 AM

PM sent, thanks!


All times are GMT. The time now is 01:11 AM.

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.01521 seconds
  • Memory Usage 1,717KB
  • 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_code_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