PDA

View Full Version : menu problem in header please help!


dxlwebs
10-10-2008, 08:03 AM
hey all im creating a new template but im having some trouble with the header

you can see the problem here (http://www.gamemasterx.com/?styleid=23)

its the same problem in both IE and FF

Here is the 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,me nubar=no,toolbar=no,scrollbars=yes,resizable=yes,w idth=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!)
<!-- 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,me nubar=no,toolbar=no,scrollbars=yes,resizable=yes,w idth=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:
<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):
<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)
<!-- 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,me nubar=no,toolbar=no,scrollbars=yes,resizable=yes,w idth=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.)