PDA

View Full Version : Galleries Link Quit Working with Slideshow


jfiler
Nov-30-2008, 07:14 PM
Installed the new Slideshow and it works great but the Galleries link no longer works, logged in or not. Cannot get to the galleries or categories from anywhere.

jfiler
www.photographsbynature.com (http://www.photographsbynature.com)

jfriend
Nov-30-2008, 07:23 PM
You have this code:

<script>
if(hasPath("galleries"))
YD.addClass(document.body,"galleries");
</script>

But, you don't have the function hasPath anywhere so this code isn't working. The tutorial (http://dgrin.smugmug.com/gallery/2160039) shows you what code you need and where to put it.

jfiler
Nov-30-2008, 08:11 PM
You have this code:

<script>
if(hasPath("galleries"))
YD.addClass(document.body,"galleries");
</script>

But, you don't have the function hasPath anywhere so this code isn't working. The tutorial (http://dgrin.smugmug.com/gallery/2160039) shows you what code you need and where to put it.

OK, put the code mentioned in the tutorial in the Bottom Javascript but still doesn't work. Clicking on Galleries just takes you back to homepage. So weird since it always worked fine before adding the slideshow although it may not be related to that. Any other thoughts would be appreciated.

jfiler
www.photographsbynature.com (http://www.photographsbynature.com)

jfriend
Nov-30-2008, 08:20 PM
OK, put the code mentioned in the tutorial in the Bottom Javascript but still doesn't work. Clicking on Galleries just takes you back to homepage. So weird since it always worked fine before adding the slideshow although it may not be related to that. Any other thoughts would be appreciated.

jfiler
www.photographsbynature.com (http://www.photographsbynature.com)
You were bitten by an error in the tutorial that we're trying to get Smugmug to fix.

This line of code in your bottom javascript needs to be:

re = new RegExp("\/" + sPath + "(\/|$)");

The tutorial is currently missing the plus signs.

jfiler
Dec-01-2008, 04:59 AM
You were bitten by an error in the tutorial that we're trying to get Smugmug to fix.

This line of code in your bottom javascript needs to be:

re = new RegExp("\/" + sPath + "(\/|$)");

The tutorial is currently missing the plus signs.

OK, made that fix but the Gallery link still just returns to the homepage. Any other ideas? I sincerely appreciate your help.

jfiler
www.photographsbynature.com (http://www.photographsbynature.com)

jfriend
Dec-01-2008, 05:29 AM
OK, made that fix but the Gallery link still just returns to the homepage. Any other ideas? I sincerely appreciate your help.

jfiler
www.photographsbynature.com (http://www.photographsbynature.com)
You still have two scripting errors.

Remove all of this from your footer:

<script>if(hasPath("galleries"))
YD.addClass(document.body,"galleries");
</script>


Then in your bottom javascript, change:

if(hasPath "galleries"))

to this:

if(hasPath("galleries"))

there is a missing parentheses.

jfiler
Dec-01-2008, 11:06 AM
You still have two scripting errors.

Remove all of this from your footer:

<script>if(hasPath("galleries"))
YD.addClass(document.body,"galleries");
</script>


Then in your bottom javascript, change:

if(hasPath "galleries"))

to this:

if(hasPath("galleries"))

there is a missing parentheses.

All works fine now. Thanks so much for the help. Seems weird it worked before but I'll just have to let that go for sanity.

jfiler

jfriend
Dec-01-2008, 11:29 AM
All works fine now. Thanks so much for the help. Seems weird it worked before but I'll just have to let that go for sanity.

jfiler

My theory is that some of this code got disturbed or removed when you took out the old slideshow because the way it was before you fixed it could have never worked.