Version: 1.4, by Lynne
Developer Last Online: Oct 2022
Category: Show Thread Enhancements -
Version: 4.0.x
Rating:
Released: 12-01-2009
Last Update: 10-21-2010
Installs: 459
Uses Plugins Auto-Templates
Re-useable Code Translations
No support by the author.
This just adds the breadcrumbs to the bottom of the showthread page. I saw this thread over at vb.com and then decided to share it as I wrote it for myself.
Version History:
1.0 2009-12-01: initial release by Lynne at vbulletin.org (pre Beta 5)
1.1 2009-12-04: fixed the issue regarding a single apostrophe in a thread or forum title (Thanks go to BBR-APBT for the fix!) (Beta 5)
1.2 2009-12-12: small template change for new release, RC2 (RC2)
1.3 2009-05-10: added lower breadcrumbs to forumdisplay page (up to 4.0.7)
1.4 2009-10-21: fixed for use in 4.0.8 (4.0.8)
To install:
1. Import product-lynne_lower_breadcrumbs.xml
To uninstall:
1. Uninstall "Lower Breadcrumbs"
Optional:
Added in 1.1: in the plugin, Add Lower Breadcrumbs to SHOWTHREAD template, you will see the following lines:
PHP Code:
// to put it above the Quick Reply box
//$find = '<!-- scripts for quick reply and quick edit -->';
// to put it above the Thread Information box
$find = '<div id="thread_info" class="thread_info block">';
If you wish to have the Breadcrumbs above the Quick Reply box, then uncomment that line and comment out the one to put it above the Thread Information box, like this:
PHP Code:
// to put it above the Quick Reply box
$find = '<!-- scripts for quick reply and quick edit -->';
// to put it above the Thread Information box
//$find = '<div id="thread_info" class="thread_info block">';
Quote:
Originally Posted by Alan_SP
Also, I added one more location to put lower breadcrumb in, just below posts (above inline moderation, above reply button...).
One question about the alignment. How easy would it be to have the Breadcrumbs and the quick navigation on one line? Right now there's a break so it creates more whitespace than is probably necessary.
One question about the alignment. How easy would it be to have the Breadcrumbs and the quick navigation on one line? Right now there's a break so it creates more whitespace than is probably necessary.
You would probably have to manually edit the template to make them both be on one line.
$newTemplate = vB_Template::create('navbar_breadcrumbs');
$newTemplate->register('navbits', $navbits);
$breadcrumbs = $newTemplate->render();
$breadcrumbs = str_replace("'", "'", $breadcrumbs);
// to put it above the Forum Information box
$find = '<div id="forum_info_options" class="forum_info">';
$vbulletin->templatecache['FORUMDISPLAY'] = str_replace($find,$breadcrumbs.$find, $vbulletin->templatecache['FORUMDISPLAY']);
For forumdisplay this method work but there is a little problem with subforum of subforum where doesn't work.
Examples: Home >> Videogames (work)
Examples 2: Home >> Videogames >> Nintendo (doesn't work)
Examples 3: Home >> Videogames >> Nintendo >> Wii (doesn't work)
$newTemplate = vB_Template::create('navbar_breadcrumbs');
$newTemplate->register('navbits', $navbits);
$breadcrumbs = $newTemplate->render();
$breadcrumbs = str_replace("'", "'", $breadcrumbs);
// to put it above the Forum Information box
$find = '<div id="forum_info_options" class="forum_info">';
$vbulletin->templatecache['FORUMDISPLAY'] = str_replace($find,$breadcrumbs.$find, $vbulletin->templatecache['FORUMDISPLAY']);
For forumdisplay this method work but there is a little problem with subforum of subforum where doesn't work.
Examples: Home >> Videogames (work)
Examples 2: Home >> Videogames >> Nintendo (doesn't work)
Examples 3: Home >> Videogames >> Nintendo >> Wii (doesn't work)
How to fix it? Any ideas?
It works just fine on my 4.0.2 test site using a default style. I'm not sure why it isn't working for yours.
Quote:
Originally Posted by eroan
I tried everything to make this work in footer, it's impossible.
I would like my breadcrumb to be in the footer (displayed at top with CSS).
Any idea ?
Without seeing what code you used, I really don't have any suggestions of what to change.