Galleries Link Quit Working with Slideshow
jfiler
Registered Users Posts: 42 Big grins
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
jfiler
www.photographsbynature.com
0
Comments
<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 shows you what code you need and where to put it.
Homepage • Popular
JFriend's javascript customizations • Secrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
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
This line of code in your bottom javascript needs to be:
re = new RegExp("\/" + sPath + "(\/|$)");
The tutorial is currently missing the plus signs.
Homepage • Popular
JFriend's javascript customizations • Secrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
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
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.
Homepage • Popular
JFriend's javascript customizations • Secrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
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.
Homepage • Popular
JFriend's javascript customizations • Secrets for getting fast answers on Dgrin
Always include a link to your site when posting a question