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 07-06-2009, 09:03 PM
TAFJonathan TAFJonathan is offline
 
Join Date: Feb 2006
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Single-line breadcrumb & relocate

There have been several threads along these lines -- none answered satisfactorily.

How can I modify my breadcrumb so it is single-line, like the one on vBulletin.org?

Then, I'd like to relocate it to below the navbar and above the forum menu.

Thanks in advance.

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

Surely someone here knows how to do this, since this is the way it's done on vB.org!

Quote:
Originally Posted by TAFJonathan View Post
There have been several threads along these lines -- none answered satisfactorily.

How can I modify my breadcrumb so it is single-line, like the one on vBulletin.org?

Then, I'd like to relocate it to below the navbar and above the forum menu.

Thanks in advance.
Reply With Quote
  #2  
Old 07-09-2009, 02:34 AM
napy8gen napy8gen is offline
 
Join Date: Jan 2006
Location: port ++++son
Posts: 519
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this is the code.I never released it anywhere. I edited this and used this twice in my custom work for customers.

please noted that this is only a single breadcrumb in one line, nothing else. there is no login or navbar menu so whatever.

the link display control by a css class named tmod2.


Style manager> style name> edit templates> navbar and breadcrumb> navbar

HTML Code:
<!-- breadcrumb -->
<table cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
	<td width="100%">
		<if condition="is_array($navbits)">
			<table width="100%" border="0" cellpadding="0" cellspacing="0">
	  <tr valign="bottom">
		<td width="100%"><span class="tmod2"><a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1">$vboptions[bbtitle]</a> $navbits[breadcrumb] > <strong>$navbits[lastelement]</strong></span></td>
			</tr>
            
</table>
    <else />
			<div class="navbar" style="font-size:10pt"><a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1"><span class="tmod2">Home</span></a>&nbsp;<span class="tmod2">></span>&nbsp;<span class="tmod2">$vboptions[bbtitle]</span></div>
		</if>
	</td>

</tr>
</table>

<!-- / breadcrumb -->
then put the class in style manager> style name> main css> additional css definition>

HTML Code:
.tmod2 {color: #a39f99;font: bold 11px arial,verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;}
.tmod2 a:link, .tmod2_alink{color: #a39f99;text-decoration: none;}
.tmod2 a:visited, .tmod2_avisited{color: #a39f99;text-decoration: none;}
.tmod2 a:hover, .tmod2 a:active, .tmod2_ahover{color: #FFFFFF;text-decoration: underline;}


change the color value to your needs
Reply With Quote
  #3  
Old 07-15-2009, 08:37 PM
TAFJonathan TAFJonathan is offline
 
Join Date: Feb 2006
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks - this is excellent.

Is there some <if> code I can surround it with to keep it from displaying on the forumhome page?
Reply With Quote
  #4  
Old 07-15-2009, 08:47 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

HTML Code:
<if condition="THIS_SCRIPT != 'index'">
code not to display on index page
</if>
Reply With Quote
  #5  
Old 07-15-2009, 08:50 PM
TAFJonathan TAFJonathan is offline
 
Join Date: Feb 2006
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Beautiful. Thank you, Lynne.

Additionally, if you have a look at AviationForum.org, is it possible for me to reduce the number of line breaks between the bottom of the navbar and the top of the forums? I don't believe I added any to the original templates.
Reply With Quote
  #6  
Old 07-15-2009, 09:34 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you look in your page source in that area, you do have some breaks (<br />) in there. You can find the template and remove them if you want.

To find the template to modify, do this - vboptions > General Settings > Add Template Name in HTML Comments > set to Yes . Then go back to your page and view the source code and you will see the name of the template called around your part of the code. Sometimes the template is the one mentioned at the very top of the page source.
Reply With Quote
  #7  
Old 07-15-2009, 10:17 PM
sebaot sebaot is offline
 
Join Date: Jul 2005
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TAFJonathan View Post
Thanks - this is excellent.

Is there some <if> code I can surround it with to keep it from displaying on the forumhome page?
The way I've done it in my navbar template is:

Code:
<if condition="is_array($navbits)">
... generate breadcrumb table ...
</if>
That keeps it from displaying unless you've navigated a level down into the site.
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 09: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.03825 seconds
  • Memory Usage 2,228KB
  • 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
  • (1)bbcode_code
  • (3)bbcode_html
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)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