vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   How Do I Drop Down Menus in the Header? (https://vborg.vbsupport.ru/showthread.php?t=223283)

LCN2007 09-18-2009 06:57 PM

Do you think you could help me by telling me how to make sure my table stays to the right of the header?

--------------- Added [DATE]1253308780[/DATE] at [TIME]1253308780[/TIME] ---------------

Yeah im dead lost on this one i get one link that fails and just pops me to the top well near it and no drop down.

Lynne 09-18-2009 07:43 PM

When you say you are lost, the best thing to do is post your code so people can point you in the right direction.

LCN2007 09-18-2009 08:15 PM

Lynne,

Though i appreciate your fast replies they dont help me.

You keep talking to me as if im a master coder/programer.

So telling me to make a table and follow the article doesnt help, expecially since the article is written specificly for existing navbars and i am neither have a existing navbar nor am i even in the navbar template. So the items that the article is telling me to search for are not there for me to use the article against.

Code:

<div class="fright" id="nav">
<td>
<td id="custommenu1" class="vbmenu_control">
    <a href="#">Custom Menu1</a>
    <script type="text/javascript">
        vbmenu_register("custommenu1");
    </script>
</td><td id="custommenu2" class="vbmenu_control">
    <a href="#">Custom Menu2</a>
    <script type="text/javascript">
        vbmenu_register("custommenu2");
    </script>
</td>
</td>

<img src="http://www.yoursite.com/forum/images/onlydev/misc/nav_bottom.gif" alt="" /></div>

<div id="header"><img src="http://www.yoursite.com/forum/images/onlydev/misc/header_right.gif" class="fright" alt="" /><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="http://www.yoursite.com/forum/images/onlydev/misc/logo.gif" alt="$vboptions[bbtitle]" /></a></div>
<br />
$cyb_flashimagebanners
<br />
<!-- Header Popup -->
<div class="vbmenu_popup" id="custommenu_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
        <tr>
            <td class="thead">Custom Menu</td>
        </tr>
        <tr>
            <td class="vbmenu_option" title="nohilite">
<a href="http://www.yoursite.com/forum/index.php">Link1</a>
<a href="http://www.yoursite.com/forum/index.php">Link2</a>
<a href="http://www.yoursite.com/forum/index.php">Link3</a>
</td>
</tr>
</table>
</div><div class="vbmenu_popup" id="custommenu_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
        <tr>
            <td class="thead">Custom Menu</td>
        </tr>
        <tr>
            <td class="vbmenu_option" title="nohilite">
<a href="http://www.yoursite.com/forum/index.php">Link1</a>
<a href="http://www.yoursite.com/forum/index.php">Link2</a>
<a href="http://www.yoursite.com/forum/index.php">Link3</a>
</td>
</tr>
</table>
</div>
<!-- End Header Popup -->


<!-- content table -->
$spacer_open

$_phpinclude_output


Lynne 09-18-2009 08:25 PM

The basic structure of a table is:
HTML Code:

<table>
<tr>
<td>
</td>
</tr>
</table>

If you know nothing of tables, then you really should google them or have a good book on html. I like this site - HTML Tables

LCN2007 09-18-2009 08:48 PM

Thanks i understand that, but how do i apply the article?

Like i have above?

Lynne 09-18-2009 09:56 PM

What you did above is just gonna be screwed up because you have no table (<table>) or row (<tr>) tags.

Your id tags are off on the popups. Read the article about that - they have to correspond to the link in the navbar.

LCN2007 09-18-2009 10:08 PM

Hows this?

Code:

<div class="fright" id="nav">
<table>
<tr>
<td>
<td id="custommenu1" class="vbmenu_control">
    <a href="#">Custom Menu1</a>
    <script type="text/javascript">
        vbmenu_register("custommenu1");
    </script>
</td><td id="custommenu2" class="vbmenu_control">
    <a href="#">Custom Menu2</a>
    <script type="text/javascript">
        vbmenu_register("custommenu2");
    </script>
</td>
</td>
</tr>
</table>


<img src="http://www.yoursite.com/forum/images/onlydev/misc/nav_bottom.gif" alt="" /></div>

<div id="header"><img src="http://www.yoursite.com/forum/images/onlydev/misc/header_right.gif" class="fright" alt="" /><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="http://www.yoursite.com/forum/images/onlydev/misc/logo.gif" alt="$vboptions[bbtitle]" /></a></div>
<br />
$cyb_flashimagebanners
<br />
<!-- Header Popup -->
<div class="vbmenu_popup" id="custommenu_menu1" 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">
<a href="http://www.yoursite.com/forum/index.php">Link1</a>
<a href="http://www.yoursite.com/forum/index.php">Link2</a>
<a href="http://www.yoursite.com/forum/index.php">Link3</a>
</td>
</tr>
</table>
</div><div class="vbmenu_popup" id="custommenu_menu2" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
        <tr>
            <td class="thead">Custom Menu2</td>
        </tr>
        <tr>
            <td class="vbmenu_option" title="nohilite">
<a href="http://www.yoursite.com/forum/index.php">Link1</a>
<a href="http://www.yoursite.com/forum/index.php">Link2</a>
<a href="http://www.yoursite.com/forum/index.php">Link3</a>
</td>
</tr>
</table>
</div>
<!-- End Header Popup -->


Lynne 09-18-2009 10:35 PM

You still don't have your ids correct. This is from the article, look at the stuff in red - they must all be the same:
Code:

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

Code:

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

Also, you have two <td> and </td> tags in your code so remove one in that part of your code like this:
Code:

<table>
<tr>
<td id="custommenu1" class="vbmenu_control">
    <a href="#">Custom Menu1</a>
    <script type="text/javascript">
        vbmenu_register("custommenu1");
    </script>
</td><td id="custommenu2" class="vbmenu_control">
    <a href="#">Custom Menu2</a>
    <script type="text/javascript">
        vbmenu_register("custommenu2");
    </script>
</td>
</tr>
</table>


LCN2007 09-18-2009 11:32 PM

Ok i think i got what you said, the id thing i put the name in the wrong spot.

Hows this now?

Code:

<table>
<tr>
<td id="custommenu1" class="vbmenu_control">
    <a href="#">Custom Menu1</a>
    <script type="text/javascript">
        vbmenu_register("custommenu1");
    </script>
  <td id="custommenu2" class="vbmenu_control">
    <a href="#">Custom Menu2</a>
    <script type="text/javascript">
        vbmenu_register("custommenu2");
    </script>
</td>
</tr>
</table>










<!-- Header Popup -->
<div class="vbmenu_popup" id="custommenu1_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">
<a href="http://www.yoursite.com/forum/index.php">Link1</a>
<a href="http://www.yoursite.com/forum/index.php">Link2</a>
<a href="http://www.yoursite.com/forum/index.php">Link3</a>
</td>
</tr>
</table>
</div><div class="vbmenu_popup" id="custommenu2_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
        <tr>
            <td class="thead">Custom Menu2</td>
        </tr>
        <tr>
            <td class="vbmenu_option" title="nohilite">
<a href="http://www.yoursite.com/forum/index.php">Link1</a>
<a href="http://www.yoursite.com/forum/index.php">Link2</a>
<a href="http://www.yoursite.com/forum/index.php">Link3</a>
</td>
</tr>
</table>
</div>
<!-- End Header Popup -->


Lynne 09-19-2009 12:34 AM

You got rid of a needed </td> tag. Also, didn't you say you want this vertical? If so, each link needs to be it's own row. Something more like this:

HTML Code:

<table>
<tr>
<td id="custommenu1" class="vbmenu_control">
    <a href="#">Custom Menu1</a>
    <script type="text/javascript">
        vbmenu_register("custommenu1");
    </script>
</td></tr>
<tr><td id="custommenu2" class="vbmenu_control">
    <a href="#">Custom Menu2</a>
    <script type="text/javascript">
        vbmenu_register("custommenu2");
    </script>
</td>
</tr>
</table>



All times are GMT. The time now is 09:50 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.03441 seconds
  • Memory Usage 1,769KB
  • 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
  • (6)bbcode_code_printable
  • (2)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete