• Gear
  • Shots
  • Photo Craft
  • Video
  • Wide Angle
  • Support
  • New Stuff
  • More
Support SmugMug Customization Breadcrumb "galleries" script update - bug fixes

FAQtoid

Ever wanted to create an Avatar? Creating an Avatar!

Searching Dgrin with Google Searching with Google

Dgrin Challenges

Congratulations to the Winner of DSS #130 (Hot or Cold), Memol..

The next Dgrin Challenge DSS #131 (Music) is open for entries through June 24th, 2013 at 8:00pm PDT.

As always, we look forward to your participation but please do take a moment to read through the rules before posting your entry.

Past DSS Challenge Winners, DSS Challenge Rules, and other important DSS Challenge information is here.

Need some help with Accessories?

Tutorials

Ever find yourself wondering just how someone managed to create an image using different effects?

Here are three simple tutorials we hope will encourage you to try something new.

The Hot Seat

A lifelong interest in landscape photography has led Eyal Oren to make a study of his adopted hometown of Marblehead, MA. As you can see, his dedication is paying off!

Africa!

Dgrinners Harryb, Pathfinder, and others joined Andy Williams and Marc Muench on Safari in East Africa recently. Here are some awesome threads to check out!

 
Thread Tools Display Modes
Page 5  of  7
1 2 3 4 5 6 7
Old Sep-02-2010, 02:05 PM
#81
jfriend is online now jfriend OP
Scripting dude-volunteer
Quote:
Originally Posted by cosgravestudios View Post
The link is http://cosgravestudios.smugmug.com/galleries I was able to get that working properly, but my breadcrumb nav still points to "Cosgrave Studios" and returns viewers to the Home page, www.cosgravestudios.smugmug.com insteas of .../galleries.
Any tips?
Thanks!!
Which navbar entry is supposed to go to the galleries page?
__________________
--John
HomepagePopular
JFriend's javascript customizationsSecrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
Old Sep-03-2010, 10:29 AM
#82
cosgravestudios is offline cosgravestudios
All Grins
cosgravestudios's Avatar
Quote:
Originally Posted by jfriend View Post
Which navbar entry is supposed to go to the galleries page?
For example this gallery http://cosgravestudios.smugmug.com/N...37747706_d3idu
the links point to Nature, and then to Cosgrave Studios (which leads to the home page), I'd like it to point to Galleries instead. I had done this before, but don't know what I did to change it. :(
__________________
Heather Cosgrave
Cosgrave Studios
Northern Kentucky
http://www.cosgravestudios.com
http://www.cosgravestudios.smugmug.com
http://cosgravestudios.blogspot.com/
Old Sep-03-2010, 10:37 AM
#83
jfriend is online now jfriend OP
Scripting dude-volunteer
Quote:
Originally Posted by cosgravestudios View Post
For example this gallery http://cosgravestudios.smugmug.com/N...37747706_d3idu
the links point to Nature, and then to Cosgrave Studios (which leads to the home page), I'd like it to point to Galleries instead. I had done this before, but don't know what I did to change it. :(
I don't have a script for modifying the category. There is a script to change the top level of the breadcrumb to point to galleries which often works because you already have Home link in your navbar. See customization #1 here if you want that.
__________________
--John
HomepagePopular
JFriend's javascript customizationsSecrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
Old Sep-03-2010, 11:36 AM
#84
cosgravestudios is offline cosgravestudios
All Grins
cosgravestudios's Avatar
Quote:
Originally Posted by jfriend View Post
I don't have a script for modifying the category. There is a script to change the top level of the breadcrumb to point to galleries which often works because you already have Home link in your navbar. See customization #1 here if you want that.
Using that as a guide I was able to read through and find the code I needed to put in my bottom java script! I've posted it below in case anyone else needs this. thanks!
Quote:
//Redirect to second home page for galleries//
function hasPath(sPath)
{
re = new RegExp("\/" + sPath + "(\/|$)");
return re.test(window.location)
}

if (hasPath("galleries"))
YD.addClass(document.body, "galleries");

// // Script to change the breadcrumb link to your homepage to point to your galleries page instead of your slideshow
// It also changes that link to say "Galleries" instead of your user name

function AdjustBreadcrumb()
{
// there are something like six different forms of the breadcrumb including search and keyword and date and communities, categories and galleries that we have to make this work for
var tags = YD.getElementsByClassName("nav", "a", this); // get all the <a> tags with class "nav"
var filteredTags = new Array;
// filter out any that aren't at the top level in the breadCrumbTrail (this gets rid of the relatedDate tags)
for (var i in tags)
{
if (tags[i].parentNode == this)
{
filteredTags.push(tags[i]);
}
}
if (filteredTags.length == 0)
{
return;
}
// default to targeting the first filtered tag
var targetTag = filteredTags[0];

// see if we have a community here
if (filteredTags.length > 1)
{
// if we have a community here, then the user top level is in the 2nd position
if (filteredTags[0].href.search(/\/community\//) != -1)
{
targetTag = filteredTags[1];
}
}
// make sure URL ends with a slash
var str = targetTag.href;
if (str.search(/\/$/) == -1)
{
str += "/";
}
str +="galleries";
targetTag.href = str;
targetTag.innerHTML = "Galleries";
}

YE.onContentReady("breadCrumbTrail", AdjustBreadcrumb);
__________________
Heather Cosgrave
Cosgrave Studios
Northern Kentucky
http://www.cosgravestudios.com
http://www.cosgravestudios.smugmug.com
http://cosgravestudios.blogspot.com/
Old Sep-03-2010, 12:02 PM
#85
cosgravestudios is offline cosgravestudios
All Grins
cosgravestudios's Avatar
Quote:
Originally Posted by cosgravestudios View Post
Using that as a guide I was able to read through and find the code I needed to put in my bottom java script! I've posted it below in case anyone else needs this. thanks!
I'm still having problems with the Event pages redirecting back to the home page, put I've looked and don't see a fix for that.
__________________
Heather Cosgrave
Cosgrave Studios
Northern Kentucky
http://www.cosgravestudios.com
http://www.cosgravestudios.smugmug.com
http://cosgravestudios.blogspot.com/
Old Sep-07-2010, 06:30 PM
#86
TYFIYN is offline TYFIYN
Beginner grinner
I set this code up as shown and the top breadcrumb does now say "Galleries", but the link takes me to my Home page. I entered the galleries URL http://www.tyfiyn.com/galleries and that also takes me to my Home page. Therefore, I don't think there is a problem with how I have entered this code, but my direct link to my galleries doesn't work. Any ideas how/why that would happen?

Thanks.
Old Sep-07-2010, 06:37 PM
#87
jfriend is online now jfriend OP
Scripting dude-volunteer
Quote:
Originally Posted by TYFIYN View Post
I set this code up as shown and the top breadcrumb does now say "Galleries", but the link takes me to my Home page. I entered the galleries URL http://www.tyfiyn.com/galleries and that also takes me to my Home page. Therefore, I don't think there is a problem with how I have entered this code, but my direct link to my galleries doesn't work. Any ideas how/why that would happen?

Thanks.
It doesn't look to me like you've installed the customization to have a separate galleries page (it doesn't come built-in). To install it, go here and follow the steps The Galleries Page I and The Galleries Page II.
__________________
--John
HomepagePopular
JFriend's javascript customizationsSecrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
Old Sep-08-2010, 04:32 PM
#88
TYFIYN is offline TYFIYN
Beginner grinner
Quote:
Originally Posted by jfriend View Post
It doesn't look to me like you've installed the customization to have a separate galleries page (it doesn't come built-in). To install it, go here and follow the steps The Galleries Page I and The Galleries Page II.
John,

I added the code from the link you posted, both steps, and I still do not have a linkable "galleries" setting. That is, http://tyfiyn.com/galleries resolves to my home page as does the topmost breadcrumb named Galleries.

I removed the few other bits of code I had on my Advanced Site-wide Customization screen to avoid any interference or complications.

Would you please see if you can determine what the problem is?

Thanks,

Eric
Old Sep-08-2010, 05:21 PM
#89
jfriend is online now jfriend OP
Scripting dude-volunteer
Quote:
Originally Posted by TYFIYN View Post
John,

I added the code from the link you posted, both steps, and I still do not have a linkable "galleries" setting. That is, http://tyfiyn.com/galleries resolves to my home page as does the topmost breadcrumb named Galleries.

I removed the few other bits of code I had on my Advanced Site-wide Customization screen to avoid any interference or complications.

Would you please see if you can determine what the problem is?

Thanks,

Eric
Several issues:

1) Your custom domain is not configured correctly. It appears to be using a frameset which will not work correctly on Smugmug. See http://www.smugmug.com/help/power-custom-domain for proper setup or contact the help desk and they can help you get it right.

2) Go to the homepage layout button on the homepage and enable your galleries for display.

3) Add this part in red to your existing CSS:

Code:
.galleries #slideshowBox,
.galleries #bioBox {
display: none;
}
__________________
--John
HomepagePopular
JFriend's javascript customizationsSecrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
Old Sep-18-2010, 08:27 AM
#90
jfriend is online now jfriend OP
Scripting dude-volunteer
Quote:
Originally Posted by Ron Lowe View Post
I am sure this is probably a user error but I don't see it. I have used the code to change the breadcrumb point to my Galleries pages instead of the Slideshow page. Tried several variations but still when hitting the Home button in my navbar it always returns to the slideshow. HELP !!!

http://www.ronlowephotography.com

Ron
This script has nothing to do with the home button in your navbar. If you want to change where that links take you, then go into your custom header and modify the link for the Home button. That's 100% in your control to edit the link to whatever you want. Right now you have it set to the top level of your site which is your slideshow. I don't know why you'd want to change it to your galleries page though because you already have a Galleries link in your navbar.

This script changes the top level of the breadcrumb which you appear to have hidden on your site. The breadcrumb is the navigation aid that looks like this:

Home > Landscapes > Kenya > Masai Mara
__________________
--John
HomepagePopular
JFriend's javascript customizationsSecrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
Old Sep-18-2010, 10:27 AM
#91
Ron Lowe is offline Ron Lowe
Ron Lowe
Ron Lowe's Avatar
Thanks John, I knew it would be obvious to someone else. Sometimes I can't see the frost for the trees
Old Sep-19-2010, 04:37 PM
#92
DCrossPhoto is offline DCrossPhoto
DerekCrossPhotography.com
DCrossPhoto's Avatar
Quote:
Originally Posted by cosgravestudios View Post
Using that as a guide I was able to read through and find the code I needed to put in my bottom java script! I've posted it below in case anyone else needs this. thanks!
Thank you for this Heather! John's code is always brilliant, but sometimes I just can't "see" it right....
Works perfectly for me and for what I was trying to do!!
Old Oct-28-2010, 07:27 AM
#93
Cat_Shark is offline Cat_Shark
Cat_Shark
Would it be possible to only apply this script to a select number of categories in a smugmug account (maybe using CSS). I have setup my travelling section (which uses the alternative gallery homepage) to contain multiple categories relating to my travel photography. I also have other categories not related to travelling which I don't want to change the breadcrumb as they are accessed via the main homepage using the nav bar.

http://bryanreid.smugmug.com

Alternatively if I could hide the "Home" in the breadcrumbs for the categories that aren't part of the travelling section that would also work for me.

Thanks
Bryan
__________________
http://bryanreid.smugmug.com

Last edited by Cat_Shark; Oct-28-2010 at 12:05 PM.
Old Oct-28-2010, 03:38 PM
#94
jfriend is online now jfriend OP
Scripting dude-volunteer
Quote:
Originally Posted by Cat_Shark View Post
Would it be possible to only apply this script to a select number of categories in a smugmug account (maybe using CSS). I have setup my travelling section (which uses the alternative gallery homepage) to contain multiple categories relating to my travel photography. I also have other categories not related to travelling which I don't want to change the breadcrumb as they are accessed via the main homepage using the nav bar.

http://bryanreid.smugmug.com

Alternatively if I could hide the "Home" in the breadcrumbs for the categories that aren't part of the travelling section that would also work for me.

Thanks
Bryan
Not possible with this script. It would take custom coding modifications for specific categories.
__________________
--John
HomepagePopular
JFriend's javascript customizationsSecrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
Old Oct-28-2010, 05:56 PM
#95
jfriend is online now jfriend OP
Scripting dude-volunteer
Updated this script (in the first post of the thread) so that it does NOT modify the top level of the breadcrumb if in an event gallery so that the top level of the breadcrumb continues to point to the event.
__________________
--John
HomepagePopular
JFriend's javascript customizationsSecrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
Old Jan-20-2011, 03:51 AM
#96
Darter02 is offline Darter02
Major grins
Darter02's Avatar
This worked perfectly! Thank you!
__________________
Simply here to learn how to customize, and get the most from, My Photography Site.
Old Feb-06-2011, 12:44 PM
#97
peter vooijs is offline peter vooijs
Big grins
peter vooijs's Avatar
problem solved
__________________
Peter

http://www.petervooijs-photography.com/

Last edited by peter vooijs; Feb-06-2011 at 01:32 PM.
Old Apr-18-2011, 09:20 PM
#98
Shop Dude is offline Shop Dude
Big grins
Thanks for this great fix to what seems an obvious issue. So glad you guys are on this stuff and Smugmug lets us work around some of these things.
Cheers
__________________
My smugmug site.(Thanks for all the help Dgrinners!)

Last edited by Shop Dude; Apr-18-2011 at 10:41 PM.
Old Apr-22-2011, 10:24 PM
#99
MomaZunk is offline MomaZunk
pro lurker
MomaZunk's Avatar
I am having an issue with the breadcrumbs in 4 galleries that are part of an event.
The event includes 9 galleries in total, but only 4 are having the following problem.

CASE 1: When I access these 4 galleries, the breadcrumb reverts to
Home > GAME 20110416
, and the home takes me to the event page, even though I did not access those pages via the event link or page.
http://www.deezunkerphotography.com/...562856_jztBMg6


CASE 2: When I access the other 5 galleries, I get the full breadcrumb, that I would normally expect.
Galleries > Bellaire Little League > BLL 2011 Spring Hooks > GAME 20110322
http://www.deezunkerphotography.com/...30908860_bsYyL



What should be going on? I would like for the behavior to be based on from where I accessed the particular gallery.
__________________
Dee Zunker

Website Blog
Facebook Twitter Google+
Old Apr-23-2011, 09:26 AM
#100
jfriend is online now jfriend OP
Scripting dude-volunteer
Quote:
Originally Posted by MomaZunk View Post
I am having an issue with the breadcrumbs in 4 galleries that are part of an event.
The event includes 9 galleries in total, but only 4 are having the following problem.

CASE 1: When I access these 4 galleries, the breadcrumb reverts to
Home > GAME 20110416
, and the home takes me to the event page, even though I did not access those pages via the event link or page.
http://www.deezunkerphotography.com/...562856_jztBMg6


CASE 2: When I access the other 5 galleries, I get the full breadcrumb, that I would normally expect.
Galleries > Bellaire Little League > BLL 2011 Spring Hooks > GAME 20110322
http://www.deezunkerphotography.com/...30908860_bsYyL



What should be going on? I would like for the behavior to be based on from where I accessed the particular gallery.
I'm sorry, but I can't really help without the ability to see the actual event page and it requires registration and apparently requires a pre-approved email address which I don't have.
__________________
--John
HomepagePopular
JFriend's javascript customizationsSecrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
Page 5  of  7
1 2 3 4 5 6 7
Tell The World!  

Thread Tools
Display Modes

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