Closed (fixed)
Project:
UIE Forum
Version:
5.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
28 Mar 2007 at 04:03 UTC
Updated:
14 Nov 2007 at 08:59 UTC
The breadcrumb trail is displaying two identical trails, one right on top of the other but slightly offset making it all but impossible to read. This only occurs in UIE Forums and only affects the links in the trail to the right of "Home". See screen capture below. Anyone have any ideas?
| Comment | File | Size | Author |
|---|---|---|---|
| breadcrumb.jpg | 24.06 KB | standardhuman |
Comments
Comment #1
standardhuman commentedFYI, It should read Hom > Forums > Forum > Thread
Comment #2
daniel.hunt commentedI've seen this aswell, but it only happens for me in the garland theme.
I have absolutely no idea why its happening :s
Comment #3
MikeyGYSE commentedcould it be something to do with the way Garland layers the images in the header?
Comment #4
daniel.hunt commentedWell I dont actually understand how it could be happening - I'm doing no different in the code on other themes :)
I'm going to have another stab at it tomorrow, I really want to find out what the hell is going on :)
Comment #5
daniel.hunt commentedHonestly guys, I don't know what's causing this.
I'll start asking the drupal.org people in irc because I can't solve this one on my own.
Daniel
Comment #6
Vallenwood commentedI found the problem. In uieforum.module, on line 892, you'll find:
$page_content .= "<br /><br />".theme_breadcrumb($breadcrumbs);There are two problems with this:
theme_breadcrumb($breadcrumbs), it'stheme('breadcrumb',$breadcrumbs). *wags finger* bad coding practice. bad! no soup for you.position: absolute. When you write the duplicate breadcrumb trail, which is supposed to go underneath the forum, it's positioned absolutely so it goes right on top of the other one!The solutions are easy, and there are two of them:
Line 892 must be changed from:
$page_content .= "<br /><br />".theme_breadcrumb($breadcrumbs);to:
$page_content .= "<br /><br />".theme('breadcrumb',$breadcrumbs);This alone will solve the problem, because now that the theme function is properly called, its styles are also properly rendered according to the Garland theme function override (rather than the built-in Drupal default), and the the two "stacked" breadcrumbs will now line up exactly with one another and look like a single trail. Note that this is not actually the solution, it just removes the offset effect. (And brings the code up to spec.)
position: absolute, change it in your theme's "style.css" so that it isn't anymore. However, some themes are SUPPOSED to have this be absolute, so this may not work for you. The ideal solution is:$page_content .= "<br /><br />".theme('breadcrumb',$breadcrumbs);to:
$page_content .= "<br /><br />".theme('uieforum_breadcrumb',$breadcrumbs);and then at the bottom of the module, create a new theme function:
Then add a
.breadcrumb_uieforumdeclaration in your theme's "style.css" file (probably based loosely on the existing.breadcrumbdeclaration) which is NOT position absolute, and is otherwise styled how you want.Now theme designers can override this as desired, and the problem is 100% fixed!
Hope this takes care of the problem. *dusts off jeans*
Comment #7
standardhuman commentedExcellent! Works perfectly. Thank you so much for your work!
Comment #8
daniel.hunt commentednicely done!
Comment #9
daniel.hunt commentedI can't believe I didnt add this to the code ...
Apologies :)
Thanks again for the fix!
Daniel
Comment #10
(not verified) commentedComment #11
sgriffin commentedThis has not been fixed in uieforum-5.x-1.x-dev.tar.gz 11/14/07
Comment #12
sgriffin commentedI was able to remove the second lower breadcrumb with checking ->configure -> misc
Displays the Userbar above all Forum Views.
Bug report.. for some reason there are two identical lines of this setting.
Comment #13
daniel.hunt commentedSGriffin - this is a theme problem, not a UIEForum one.