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

Reply
 
Thread Tools Display Modes
  #1  
Old 04-03-2006, 02:15 PM
Chadi's Avatar
Chadi Chadi is offline
 
Join Date: May 2004
Location: USA
Posts: 2,043
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default navbar annoyance

Forumhome : the navigational links below the quote of the day box: (see attached "good" file)

This is fine. Notice it is vertically centered. Now, the below ("bad" file) (example of any place you go but forumhome) shows it this way (notice the extra break)

That portion code from navbar is this:

Code:
<div align="center">
    
<table border="0" width="99%" id="table2" cellspacing="0" cellpadding="0">
    <tr>
                <td class="alt5" colspan="3" style="border-top:1px solid #FFFFFF; border-left:1px solid #FFFFFF; border-right:1px solid #FFFFFF; " height="5">
                </td>
            </tr>
    <tr>
                <td class="alt1" align="left" style="border-left:1px solid #E1E4F2; border-top:1px solid #E1E4F2; border-bottom:1px solid #E1E4F2; ">
    
                <if condition="is_array($navbits)">
                <table cellpadding="0" cellspacing="0" border="0" id="table3">
                    <tr valign="bottom">
                        <td>&nbsp;<a href="#" onclick="history.back(1)"><img src="$stylevar[imgdir_misc]/navbits_start.gif" alt="$vbphrase[go_back]" border="0" /></a></td>
                        <td>&nbsp;</td>
                        <td width="100%" height="25"><span class="navbar">
                        <a href="$vboptions[forumhome].php?$session[sessionurl]" accesskey="1">
                        $vboptions[bbtitle]</a></span> $navbits[breadcrumb]</td>
                    </tr>
                    <tr>
                        <td class="navbar" style="font-size:10pt; padding-top:1px" colspan="3">
                        &nbsp;<a href="$scriptpath"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_finallink.gif" alt="$vbphrase[reload_this_page]" border="0" /></a>
                        <strong>$navbits[lastelement]</strong></td>
                    </tr>
                </table>
                <else />
                <div class="navbar" style="font-size:10pt">
                    &nbsp;<a href="$vboptions[forumhome].php?$session[sessionurl]" accesskey="1"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_start.gif" alt="" border="0" /></a>
                    <strong>$vboptions[bbtitle]</strong></div></if>
                </td>
                <if condition="$bbuserinfo['userid']">
                <td id="navbar_search" height="35" width="105" bgcolor="#F5F5FF" style="border-left:1px solid #FFFFFF; border-top:1px solid #E1E4F2; border-bottom:1px solid #E1E4F2; "><b>
                <a href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow" style="text-decoration: none">
                <img src="http://talkjesus.com/images/search2.gif" border="0"></a></b> <script type="text/javascript"> vbmenu_register("navbar_search"); </script></td>
                <td id="navbar_search" height="35" bgcolor="#F5F5FF" width="25" style="border-right: 1px solid #E1E4F2; border-top: 1px solid #E1E4F2; border-bottom: 1px solid #E1E4F2; ">
                <div class="smallfont">
                <a href="login.php?$session[sessionurl]do=logout&amp;logouthash=$bbuserinfo[logouthash]" onclick="return log_out()" style="text-decoration: none; font-weight:700">
<center>
                <img border="0" src="http://talkjesus.com/images/menu/exit.gif" width="16" height="16" alt="Logout"></a></div></center>
                </td></if>
                </tr>
</table>
    
</div>
    
    <div align="center">
    
    <table border="0" width="99%" id="table4" cellpadding="0" cellspacing="0">
        <tr>
            <td align="center" height="5">
            </td>
        </tr>
        </table>
    
</div>
    
<!-- / breadcrumb, login, pm info -->
How do I fix this extra line break appearance?
Attached Images
File Type: gif good.gif (1.1 KB, 0 views)
File Type: gif bad.gif (4.0 KB, 0 views)
Reply With Quote
  #2  
Old 04-03-2006, 06:10 PM
evenmonkeys's Avatar
evenmonkeys evenmonkeys is offline
 
Join Date: Aug 2004
Location: Iowa
Posts: 896
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

As long as you haven't made any changes to your navbar since you made this post, you can replace it with this:

Code:
<div align="center">
    
<table border="0" width="99%" id="table2" cellspacing="0" cellpadding="0">
    <tr>
                <td class="alt5" colspan="3" style="border-top:1px solid #FFFFFF; border-left:1px solid #FFFFFF; border-right:1px solid #FFFFFF; " height="5">
                </td>
            </tr>
    <tr>
                <td class="alt1" align="left" style="border-left:1px solid #E1E4F2; border-top:1px solid #E1E4F2; border-bottom:1px solid #E1E4F2; ">
    
                <if condition="is_array($navbits)">
                <table cellpadding="0" cellspacing="0" border="0" id="table3">
                    <tr>
                        <td>&nbsp;<a href="#" onclick="history.back(1)"><img src="$stylevar[imgdir_misc]/navbits_start.gif" alt="$vbphrase[go_back]" border="0" /></a></td>
                        <td>&nbsp;</td>
                        <td width="100%"><span class="navbar">
                        <a href="$vboptions[forumhome].php?$session[sessionurl]" accesskey="1">
                        $vboptions[bbtitle]</a></span> $navbits[breadcrumb]</td>
                    </tr>
                    <tr>
                        <td class="navbar" style="font-size:10pt; padding-top:1px" colspan="3">
                        &nbsp;<a href="$scriptpath"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_finallink.gif" alt="$vbphrase[reload_this_page]" border="0" /></a>
                        <strong>$navbits[lastelement]</strong></td>
                    </tr>
                </table>
                <else />
                <div class="navbar" style="font-size:10pt">
                    &nbsp;<a href="$vboptions[forumhome].php?$session[sessionurl]" accesskey="1"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_start.gif" alt="" border="0" /></a>
                    <strong>$vboptions[bbtitle]</strong></div></if>
                </td>
                <if condition="$bbuserinfo['userid']">
                <td id="navbar_search" height="35" width="105" bgcolor="#F5F5FF" style="border-left:1px solid #FFFFFF; border-top:1px solid #E1E4F2; border-bottom:1px solid #E1E4F2; "><b>
                <a href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow" style="text-decoration: none">
                <img src="http://talkjesus.com/images/search2.gif" border="0"></a></b> <script type="text/javascript"> vbmenu_register("navbar_search"); </script></td>
                <td id="navbar_search" height="35" bgcolor="#F5F5FF" width="25" style="border-right: 1px solid #E1E4F2; border-top: 1px solid #E1E4F2; border-bottom: 1px solid #E1E4F2; ">
                <div class="smallfont">
                <a href="login.php?$session[sessionurl]do=logout&amp;logouthash=$bbuserinfo[logouthash]" onclick="return log_out()" style="text-decoration: none; font-weight:700">
<center>
                <img border="0" src="http://talkjesus.com/images/menu/exit.gif" width="16" height="16" alt="Logout"></a></div></center>
                </td></if>
                </tr>
</table>
    
</div>
    
    <div align="center">
    
    <table border="0" width="99%" id="table4" cellpadding="0" cellspacing="0">
        <tr>
            <td align="center" height="5">
            </td>
        </tr>
        </table>
    
</div>
    
<!-- / breadcrumb, login, pm info -->
Basically, I took out the first instance of a <tr valign="bottom"> and an instance where the bottom row with the thread name was specifying instelf to be 25 pixels tall.
Reply With Quote
  #3  
Old 04-03-2006, 08:14 PM
Chadi's Avatar
Chadi Chadi is offline
 
Join Date: May 2004
Location: USA
Posts: 2,043
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hate to say it, but your method wiped out the first half of my navbar
Reply With Quote
  #4  
Old 04-03-2006, 10:49 PM
Freesteyelz's Avatar
Freesteyelz Freesteyelz is offline
 
Join Date: Jan 2006
Posts: 1,552
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In your second screenshot, are you trying to vertically-align it centered?
Reply With Quote
  #5  
Old 04-03-2006, 11:01 PM
evenmonkeys's Avatar
evenmonkeys evenmonkeys is offline
 
Join Date: Aug 2004
Location: Iowa
Posts: 896
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ohhh. You were only showing one part of your navigation bar? I must have read that wrong. I am so sorry. In any case, is the alignment better? =D
Reply With Quote
  #6  
Old 04-03-2006, 11:29 PM
Chadi's Avatar
Chadi Chadi is offline
 
Join Date: May 2004
Location: USA
Posts: 2,043
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I want it vertically centered, remaing left aligned horizontally.

I posted the entire navbar for you originally
Reply With Quote
  #7  
Old 04-03-2006, 11:41 PM
evenmonkeys's Avatar
evenmonkeys evenmonkeys is offline
 
Join Date: Aug 2004
Location: Iowa
Posts: 896
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That's what I did. O_o This is a screenshot of what that navbar that I gave you looks like for me in comparison to yours now.
Attached Images
File Type: jpg example.jpg (150.6 KB, 0 views)
Reply With Quote
  #8  
Old 04-03-2006, 11:50 PM
Freesteyelz's Avatar
Freesteyelz Freesteyelz is offline
 
Join Date: Jan 2006
Posts: 1,552
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, the natural behavior of row vertical-aligns itself centered. Yarub had the right edit. You may have removed:

Code:
<tr valign="bottom">
When it should have been
Code:
<tr>
Reply With Quote
  #9  
Old 04-03-2006, 11:53 PM
evenmonkeys's Avatar
evenmonkeys evenmonkeys is offline
 
Join Date: Aug 2004
Location: Iowa
Posts: 896
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Truthfully, I don't like the way it's designed. They're using two seperate rows for the beginning of the bits and the end of the bits (the location you're viewing). Makes things more complicating. =P
Reply With Quote
  #10  
Old 04-03-2006, 11:56 PM
Freesteyelz's Avatar
Freesteyelz Freesteyelz is offline
 
Join Date: Jan 2006
Posts: 1,552
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I agree and that's why I re-designed mine. I also didn't like the fact that the forum title showed when there was no reason for it to exist. So I swapped it with a introductory text and only when a user clicks on a subsequent page the breadcrumb links show up.
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 08:06 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.08150 seconds
  • Memory Usage 2,291KB
  • Queries Executed 12 (?)
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
  • (4)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (3)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete