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)
-   -   menu problem in header please help! (https://vborg.vbsupport.ru/showthread.php?t=193250)

dxlwebs 10-10-2008 08:03 AM

menu problem in header please help!
 
hey all im creating a new template but im having some trouble with the header

you can see the problem here

its the same problem in both IE and FF

Here is the code
Code:

<!-- logo -->
<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center" class="tborder">
<tr>
        <td align="center" valign="top">

<table border="0" width="100%" cellpadding="0" cellspacing="0" align="center">
<tr class="header_bg">
        <td align="$stylevar[left]" valign="middle"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>

       
                <td align="right" valign="middle"><strong>

<div style="float:left; vertical-align:middle; margin-top:10px; width:90%;"><br />$header_advertisement</div><div style="float:right; width:10%;"><img src="http://www.gamemasterx.com/forum/images/gmx-site/misc/logoleft.gif"></div>
</td>
</tr>
<tr>
<td height="29" colspan="3" class="vb_navigation">

<!-- nav buttons bar -->
<div><div style="float:left; width:47px; height:29px;"><img src="http://www.gamemasterx.com/forum/images/gmx-site/misc/menuleft.gif" align="left"></div><div align="center" style="width:900px; height:29px;">
        <table cellpadding="0" cellspacing="0" border="0" class="vb_navigation">
       
    <tr align="center">
<td width="78" height="29" class="css_nav"><a href="http://www.gamemasterx.com" rel="nofollow">Home</a></td>
<td width="78" height="29"  class="css_nav"><a href="index.php" rel="nofollow">Forum</a></td>
                <if condition="$show['member']">
                        <td width="78" height="29"  class="css_nav"><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_cp]</a></td>
                </if>
                <if condition="$show['registerbutton']">
                        <td width="78" height="29"  class="css_nav"><a href="register.php$session[sessionurl_q]" rel="nofollow">$vbphrase[register]</a></td>
                </if>
                <td width="78" height="29"  class="css_nav"><a href="faq.php$session[sessionurl_q]" accesskey="5">$vbphrase[faq]</a></td>
                <td width="78" height="29"  class="css_nav"><a href="memberlist.php$session[sessionurl_q]">$vbphrase[vb_members_list]</a></td>
                <td width="78" height="29"  class="css_nav"><a href="calendar.php$session[sessionurl_q]">$vbphrase[calendar]</a></td>
                <if condition="$show['popups']">               
                        <if condition="$show['searchbuttons']">
                                <if condition="$show['member']">
                                <td width="78" height="29"  class="css_nav"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[vb_new_posts_nav]</a></td>
                                <else />
                                <td width="78" height="29"  class="css_nav"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[vb_todays_posts]</a></td>
                                </if>
                                <td id="navbar_search" width="78" height="29" class="css_nav"><a href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow">$vbphrase[search]</a> <script type="text/javascript"> vbmenu_register("navbar_search", 1); </script></td>
                        </if>
                        <if condition="$show['member']">
                                <td id="usercptools" width="78" height="29" class="css_nav"><a href="$show[nojs_link]#usercptools">$vbphrase[vb_quick_links]</a> <script type="text/javascript"> vbmenu_register("usercptools", 1); </script></td>               
                        </if>
                <else />               
                        <if condition="$show['searchbuttons']">
                                <td width="78" height="29"  class="css_nav"><a href="search.php$session[sessionurl_q]" accesskey="4">$vbphrase[search]</a></td>
                                <if condition="$show['member']">
                                <td width="78" height="29"  class="css_nav"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td>
                                <else />
                                <td width="78" height="29"  class="css_nav"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td>
                                </if>
                        </if>
                        <td width="78" height="29"  class="css_nav"><a href="forumdisplay.php?$session[sessionurl]do=markread" rel="nofollow">$vbphrase[mark_forums_read]</a></td>
                        <if condition="$show['member']">                       
                                <td width="78" height="29"  class="css_nav"><a href="#" onClick="window.open('misc.php?$session[sessionurl]do=buddylist&amp;focus=1','buddylist','statusbar=no,menubar=no,toolbar=no,scrollbars=yes,resizable=yes,width=250,height=300'); return false;">$vbphrase[open_buddy_list]</a></td>                       
                        </if>                       
                </if>
                <if condition="$show['member']">
                        <td width="78" height="29"  class="css_nav"><a href="login.php?$session[sessionurl]do=logout&amp;logouthash=$bbuserinfo[logouthash]" onClick="return log_out()">$vbphrase[log_out]</a></td>
                </if>
        </tr>
   
        </table>
</div><div style="float:right; width:47px;; height:29px;"><img src="http://www.gamemasterx.com/forum/images/gmx-site/misc/menuright.gif" align="right"></div></div>
<!-- / nav buttons bar -->
</td></tr>
</table>
<!-- /logo -->

<!-- content table -->
$spacer_open

$_phpinclude_output
<!-- USC header edit start -->
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
$usc_left
<td valign="top">
<!-- USC header edit end -->

If anyone knows what im doing wrong please let me know thank you

Lynne 10-10-2008 04:36 PM

Can you explain what you think the problem is cuz I just see a site with..... oh, double navbar..... you need to explain these things more clearly, at least for me, cuz I read these questions while drinking my morning coffee and things just aren't so obvious...

Um, lets see.... move the third div tag (that says "style="float:right;"") to right after the one that floats left and before the one that contains the table.

You have other problems with the template thought. You have a colspan="3" where it should say colspan="2". I don't know if that's causing any problems, but you should be aware of it.

dxlwebs 10-10-2008 05:33 PM

lol sure sorry im writing this now thinking of sleep lol erm!

well it shows up in both FF and IE with 3 bars where there should only be 1 and i am a bit confused why that would do this !
i just did what you said and now you can see that its almost working how it should but the right side image is not at the far right enough and some buttons are in the wrong place


new code (what do you think that is!)
Code:

<!-- logo -->
<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center" class="tborder">
<tr>
        <td align="center" valign="top">

<table border="0" width="100%" cellpadding="0" cellspacing="0" align="center">
<tr class="header_bg">
        <td align="$stylevar[left]" valign="middle"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>

       
                <td align="right" valign="middle"><strong>

<div style="float:left; vertical-align:middle; margin-top:10px; width:90%;"><br />$header_advertisement</div><div style="float:right; width:10%;"><img src="http://www.gamemasterx.com/forum/images/gmx-site/misc/logoleft.gif"></div>
</td>
</tr>
<tr>
<td height="29" colspan="2" class="vb_navigation">

<!-- nav buttons bar -->
<div><div style="float:left; width:47px; height:29px;"><img src="http://www.gamemasterx.com/forum/images/gmx-site/misc/menuleft.gif" align="left"></div><div align="center" style="width:900px; height:29px;"><div style="float:right; width:47px;; height:29px;"><img src="http://www.gamemasterx.com/forum/images/gmx-site/misc/menuright.gif" align="right"></div>
        <table cellpadding="0" cellspacing="0" border="0" class="vb_navigation">
       
    <tr align="center">
<td width="78" height="29" class="css_nav"><a href="http://www.gamemasterx.com" rel="nofollow">Home</a></td>
<td width="78" height="29"  class="css_nav"><a href="index.php" rel="nofollow">Forum</a></td>
                <if condition="$show['member']">
                        <td width="78" height="29"  class="css_nav"><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_cp]</a></td>
                </if>
                <if condition="$show['registerbutton']">
                        <td width="78" height="29"  class="css_nav"><a href="register.php$session[sessionurl_q]" rel="nofollow">$vbphrase[register]</a></td>
                </if>
                <td width="78" height="29"  class="css_nav"><a href="faq.php$session[sessionurl_q]" accesskey="5">$vbphrase[faq]</a></td>
                <td width="78" height="29"  class="css_nav"><a href="memberlist.php$session[sessionurl_q]">$vbphrase[vb_members_list]</a></td>
                <td width="78" height="29"  class="css_nav"><a href="calendar.php$session[sessionurl_q]">$vbphrase[calendar]</a></td>
                <if condition="$show['popups']">               
                        <if condition="$show['searchbuttons']">
                                <if condition="$show['member']">
                                <td width="78" height="29"  class="css_nav"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[vb_new_posts_nav]</a></td>
                                <else />
                                <td width="78" height="29"  class="css_nav"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[vb_todays_posts]</a></td>
                                </if>
                                <td id="navbar_search" width="78" height="29" class="css_nav"><a href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow">$vbphrase[search]</a> <script type="text/javascript"> vbmenu_register("navbar_search", 1); </script></td>
                        </if>
                        <if condition="$show['member']">
                                <td id="usercptools" width="78" height="29" class="css_nav"><a href="$show[nojs_link]#usercptools">$vbphrase[vb_quick_links]</a> <script type="text/javascript"> vbmenu_register("usercptools", 1); </script></td>               
                        </if>
                <else />               
                        <if condition="$show['searchbuttons']">
                                <td width="78" height="29"  class="css_nav"><a href="search.php$session[sessionurl_q]" accesskey="4">$vbphrase[search]</a></td>
                                <if condition="$show['member']">
                                <td width="78" height="29"  class="css_nav"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td>
                                <else />
                                <td width="78" height="29"  class="css_nav"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td>
                                </if>
                        </if>
                        <td width="78" height="29"  class="css_nav"><a href="forumdisplay.php?$session[sessionurl]do=markread" rel="nofollow">$vbphrase[mark_forums_read]</a></td>
                        <if condition="$show['member']">                       
                                <td width="78" height="29"  class="css_nav"><a href="#" onClick="window.open('misc.php?$session[sessionurl]do=buddylist&amp;focus=1','buddylist','statusbar=no,menubar=no,toolbar=no,scrollbars=yes,resizable=yes,width=250,height=300'); return false;">$vbphrase[open_buddy_list]</a></td>                       
                        </if>                       
                </if>
                <if condition="$show['member']">
                        <td width="78" height="29"  class="css_nav"><a href="login.php?$session[sessionurl]do=logout&amp;logouthash=$bbuserinfo[logouthash]" onClick="return log_out()">$vbphrase[log_out]</a></td>
                </if>
        </tr>
   
        </table>
</div></div>
<!-- / nav buttons bar -->
</td></tr>
</table>
<!-- /logo -->

<!-- content table -->
$spacer_open

$_phpinclude_output
<!-- USC header edit start -->
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
$usc_left
<td valign="top">
<!-- USC header edit end -->

thank you for helping me

Lynne 10-10-2008 06:20 PM

This line is wrong:
HTML Code:

<div><div style="float:left; width:47px; height:29px;"><img src="http://www.gamemasterx.com/forum/images/gmx-site/misc/menuleft.gif" align="left"></div><div align="center" style="width:900px; height:29px;"><div style="float:right; width:47px;; height:29px;"><img src="http://www.gamemasterx.com/forum/images/gmx-site/misc/menuright.gif" align="right"></div>
Should be (I broke it up so you can see the basic structure - you can put it all on one line if you want):
HTML Code:

<div><div style="float:left; width:47px; height:29px;"><img src="http://www.gamemasterx.com/forum/images/gmx-site/misc/menuleft.gif" align="left"></div>
<div style="float:right; width:47px;; height:29px;"><img src="http://www.gamemasterx.com/forum/images/gmx-site/misc/menuright.gif" align="right"></div>
<div align="center" style="width:900px; height:29px;">


dxlwebs 10-10-2008 08:21 PM

ok great now its perfect in IE but still have a bit of a problem in FF

new code (for some reason it seems to show some buttons bellow the menu bar in FF)
Code:

<!-- logo -->
<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center" class="tborder">
<tr>
        <td align="center" valign="top">

<table border="0" width="100%" cellpadding="0" cellspacing="0" align="center">
<tr class="header_bg">
        <td align="$stylevar[left]" valign="middle"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>

       
                <td align="right" valign="middle"><strong>

<div style="float:left; vertical-align:middle; margin-top:10px; width:90%;"><br />$header_advertisement</div><div style="float:right; width:10%;"><img src="http://www.gamemasterx.com/forum/images/gmx-site/misc/logoleft.gif"></div>
</td>
</tr>
<tr>
<td height="29" colspan="2" class="vb_navigation">

<!-- nav buttons bar -->
<div><div style="float:left; width:47px; height:29px;"><img src="http://www.gamemasterx.com/forum/images/gmx-site/misc/menuleft.gif" align="left"></div>
<div style="float:right; width:47px;; height:29px;"><img src="http://www.gamemasterx.com/forum/images/gmx-site/misc/menuright.gif" align="right"></div>
<div align="center" style="width:900px; height:29px;">
        <table cellpadding="0" cellspacing="0" border="0" class="vb_navigation">
       
    <tr align="center">
<td width="78" height="29" class="css_nav"><a href="http://www.gamemasterx.com" rel="nofollow">Home</a></td>
<td width="78" height="29"  class="css_nav"><a href="index.php" rel="nofollow">Forum</a></td>
                <if condition="$show['member']">
                        <td width="78" height="29"  class="css_nav"><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_cp]</a></td>
                </if>
                <if condition="$show['registerbutton']">
                        <td width="78" height="29"  class="css_nav"><a href="register.php$session[sessionurl_q]" rel="nofollow">$vbphrase[register]</a></td>
                </if>
                <td width="78" height="29"  class="css_nav"><a href="faq.php$session[sessionurl_q]" accesskey="5">$vbphrase[faq]</a></td>
                <td width="78" height="29"  class="css_nav"><a href="memberlist.php$session[sessionurl_q]">$vbphrase[vb_members_list]</a></td>
                <td width="78" height="29"  class="css_nav"><a href="calendar.php$session[sessionurl_q]">$vbphrase[calendar]</a></td>
                <if condition="$show['popups']">               
                        <if condition="$show['searchbuttons']">
                                <if condition="$show['member']">
                                <td width="78" height="29"  class="css_nav"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[vb_new_posts_nav]</a></td>
                                <else />
                                <td width="78" height="29"  class="css_nav"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[vb_todays_posts]</a></td>
                                </if>
                                <td id="navbar_search" width="78" height="29" class="css_nav"><a href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow">$vbphrase[search]</a> <script type="text/javascript"> vbmenu_register("navbar_search", 1); </script></td>
                        </if>
                        <if condition="$show['member']">
                                <td id="usercptools" width="78" height="29" class="css_nav"><a href="$show[nojs_link]#usercptools">$vbphrase[vb_quick_links]</a> <script type="text/javascript"> vbmenu_register("usercptools", 1); </script></td>               
                        </if>
                <else />               
                        <if condition="$show['searchbuttons']">
                                <td width="78" height="29"  class="css_nav"><a href="search.php$session[sessionurl_q]" accesskey="4">$vbphrase[search]</a></td>
                                <if condition="$show['member']">
                                <td width="78" height="29"  class="css_nav"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td>
                                <else />
                                <td width="78" height="29"  class="css_nav"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td>
                                </if>
                        </if>
                        <td width="78" height="29"  class="css_nav"><a href="forumdisplay.php?$session[sessionurl]do=markread" rel="nofollow">$vbphrase[mark_forums_read]</a></td>
                        <if condition="$show['member']">                       
                                <td width="78" height="29"  class="css_nav"><a href="#" onClick="window.open('misc.php?$session[sessionurl]do=buddylist&amp;focus=1','buddylist','statusbar=no,menubar=no,toolbar=no,scrollbars=yes,resizable=yes,width=250,height=300'); return false;">$vbphrase[open_buddy_list]</a></td>                       
                        </if>                       
                </if>
                <if condition="$show['member']">
                        <td width="78" height="29"  class="css_nav"><a href="login.php?$session[sessionurl]do=logout&amp;logouthash=$bbuserinfo[logouthash]" onClick="return log_out()">$vbphrase[log_out]</a></td>
                </if>
        </tr>
   
        </table>
</div></div>
<!-- / nav buttons bar -->
</td></tr>
</table>
<!-- /logo -->

<!-- content table -->
$spacer_open

$_phpinclude_output
<!-- USC header edit start -->
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
$usc_left
<td valign="top">
<!-- USC header edit end -->

thanks again for helping me

Lynne 10-10-2008 08:29 PM

I can't help with that. I use firefox and it all looks fine to me so......

(I do know that Tags is the one menu item you don't put any width or height in the column tag.)


All times are GMT. The time now is 06:12 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.01151 seconds
  • Memory Usage 1,840KB
  • 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
  • (3)bbcode_code_printable
  • (2)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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