![]() |
Shortening Breadcrumbs With the new style I have been working on I wanted to have the breadcrumbs appear on one line. The problem was the number of links that could be displayed depending on how deep subs forums went. Taking a look at the php that generated the breadcrumbs I noticed two varibles that maintained their values as the navbar_link template was evaluated. Using these two varibles I modified the navbar_link template to display no more than the last three elements. For example, lets say you have this: forum home -> sub_forum -> sub_sub_forum -> sub_sub_sub_forum -> mypost. The below modification will only display: sub_sub_forum -> sub_sub_sub_forum -> mypost. The home graphic and reload graphic are still displayed. Open navbar_link template. Highlight all the code, and paste this over it: Code: $nav_title > $nav_title > $nav_title $nav_title You will need to modify the navbar template to suit your needs, and replace the home and reload graphics with something more suitable. The modification to display the breadcrumbs on one line in navbar: Open navbar template, find: . Highlight that line and continue down to the . Paste this over it: Code: http://vb.ma7room.com/$stylevar[imgd...bits_start.gif $navbits[breadcrumb]http://vb.ma7room.com/$stylevar[imgd...direction].gifhttp://vb.ma7room.com/$stylevar[imgd...direction].gif $navbits[lastelement] http://vb.ma7room.com/$stylevar[imgd...bits_start.gif $vboptions[bbtitle] Hopefully some will find the above useful when creating a new style, or just to unclutter the breadcrumbs area a bit. |
الساعة الآن 06:21 PM |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.5.2 TranZ By
Almuhajir