PDA

View Full Version : Devbobo: **YOUR** Breadcrumb hack stopped working!


DrDavid
Apr-01-2008, 08:10 AM
I was happily using this:

YE.onContentReady('breadcrumb', function() {
for (var i in this.childNodes) {
if (this.childNodes[i].tagName == "A") {
this.childNodes[i].href="/galleries";
break;
}
}
});
To modify my breadcrumbs.. But, today I noticed it stopped working while inside a gallery. It works from the list of galleries/categories/sub-categories, but not while IN a gallery.. Odd..

Doesn't work here: http://www.wolfsnap.com/gallery/4281592_m9Cnd

DOES work here:
http://www.wolfsnap.com/Horsethief%20Canyon%20Little%20League
and here:
http://www.wolfsnap.com/Horsethief%20Canyon%20Little%20League/455819

What happened? :cry

David

Andy
Apr-01-2008, 08:19 AM
Moved to customizing forum.

I'm recommending against this, and I removed it from the advanced faq a couple weeks ago.

It messes with the full screen slideshow button, as well.

DrDavid
Apr-01-2008, 08:27 AM
It was working fine for me! I noticed today that it wasn't working right :(

Doesn't affect the slideshow for me..?

For those who use a 2nd homepage, this hack is really important IMHO.

David

Erick L
Apr-01-2008, 09:21 AM
I'm still using your old hack and it works. :ivar That hack is the best thing since the French baguette.

DrDavid
Apr-01-2008, 09:22 AM
I'm still using your old hack and it works. :ivar That hack is the best thing since the French baguette.Can you post the old hack you're using? -- Just looked on your site. Doesn't work..

Erick L
Apr-01-2008, 09:41 AM
It still works for me, at least after the page loads (I'm on dial-up today, it takes forever) I don't use it on every pages, only some text pages. If you go on any page that is linked here...

http://borealphoto.smugmug.com/gallery/4365732_gQBD8

... the breadcrumb on those text pages should link back to it.

Here's the code (I got it from you):

function ModifyText () {
var objElement = document.getElementById("breadcrumb")
if (objElement != null) {
var str = new String(objElement.innerHTML);
str = str.replace('/Articles"', '/gallery/4365732_gQBD8"');
objElement.innerHTML = str;
str = str.replace('/Photo"', '/gallery/4441983_g8EUF"');
objElement.innerHTML = str;
str = str.replace('/Maps"', '/gallery/4556816_H8q6R"');
objElement.innerHTML = str;
}
}

A little side question, when you click on the link, do you get a French or English page? Thanks.

DrDavid
Apr-01-2008, 09:45 AM
It still works for me, at least after the page loads (I'm on dial-up today, it takes forever) I don't use it on every pages, only some text pages. If you go on any page that is linked here...
Hm, I use it everywhere.. That hack stopped working for me when they made the slideshow flash based.. Maybe I'll revisit it.

English is what I see.

DrDavid
Apr-01-2008, 09:48 AM
Hm, I use it everywhere.. That hack stopped working for me when they made the slideshow flash based.. Maybe I'll revisit it.

English is what I see.
Odd.. it is working.. I thought it was dead.. argh..

Erick L
Apr-01-2008, 09:50 AM
Just a clarification, I don't use it to change the breadcrumb from .com/ to .com/galleries but to change /Articles to /gallery/gallery_number.

Erick L
Apr-01-2008, 10:07 AM
Odd.. it is working.. I thought it was dead.. argh..

"Wolf Snap Photography (http://www.wolfsnap.com/)" on the breadcrumb still leads to http://www.wolfsnap.com/ for me while inside a gallery.

EDIT: Never mind, I thought your current hack started working again.

Andy
Apr-01-2008, 10:12 AM
Hm, I use it everywhere.. That hack stopped working for me when they made the slideshow flash based.. Maybe I'll revisit it.

That is the reason why we won't recommend it anymore. The slideshow button lives in a div in the breadcrumb.

DrDavid
Apr-01-2008, 10:16 AM
That is the reason why we won't recommend it anymore. The slideshow button lives in a div in the breadcrumb.
But devbobo's version works (worked) great. Just stopped (that I noticed) today... It *was* working (and he posted it) *after* the slideshow change.

David

Andy
Apr-01-2008, 10:18 AM
But devbobo's version works (worked) great. Just stopped (that I noticed) today... It *was* working (and he posted it) *after* the slideshow change.

David
I'm really sorry :( this is a case where I just can't help you, I wish I could!

DrDavid
Apr-01-2008, 10:20 AM
I'm really sorry :( this is a case where I just can't help you, I wish I could!A big help would be if you could make sure devbobo sees the thread and checks it out :thumb

But, I'm thinking something was changed in the last few days maybe... I'm sure there's a fix for it!

David

DrDavid
Apr-01-2008, 10:25 AM
A big help would be if you could make sure devbobo sees the thread and checks it out :thumb

But, I'm thinking something was changed in the last few days maybe... I'm sure there's a fix for it!

David
There was a change. Here's a fix.. It's not pretty, but it does work :)

YE.onContentReady('breadcrumb', function() {
for (var i in this.childNodes) {
if (this.childNodes[i].tagName == "A") {
this.childNodes[i].href="/galleries";
break;
}
}
});
YE.onContentReady('breadCrumbTrail', function() {
for (var i in this.childNodes) {
if (this.childNodes[i].tagName == "A") {
this.childNodes[i].href="/galleries";
break;
}
}
});


A new div, breadcrumbtrail was added in the gallery view. You need the entire thing above, and it works.

Is this a bug that breadcrumbtrail and breadcrumb aren't consistently applied through the site?

David