Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Design and Graphics Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 10-10-2008, 08:03 AM
dxlwebs dxlwebs is offline
 
Join Date: Jun 2008
Posts: 237
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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
Reply With Quote
  #2  
Old 10-10-2008, 04:36 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #3  
Old 10-10-2008, 05:33 PM
dxlwebs dxlwebs is offline
 
Join Date: Jun 2008
Posts: 237
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #4  
Old 10-10-2008, 06:20 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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;">
Reply With Quote
  #5  
Old 10-10-2008, 08:21 PM
dxlwebs dxlwebs is offline
 
Join Date: Jun 2008
Posts: 237
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #6  
Old 10-10-2008, 08:29 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.)
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:00 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.04544 seconds
  • Memory Usage 2,262KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (3)bbcode_code
  • (2)bbcode_html
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (6)postbit_onlinestatus
  • (6)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete