Galleries Link Quit Working with Slideshow

jfilerjfiler Registered Users Posts: 42 Big grins
edited December 1, 2008 in SmugMug Support
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

Comments

  • jfriendjfriend Registered Users Posts: 8,097 Major grins
    edited November 30, 2008
    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 shows you what code you need and where to put it.
    --John
    HomepagePopular
    JFriend's javascript customizationsSecrets for getting fast answers on Dgrin
    Always include a link to your site when posting a question
  • jfilerjfiler Registered Users Posts: 42 Big grins
    edited December 1, 2008
    jfriend wrote:
    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 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
  • jfriendjfriend Registered Users Posts: 8,097 Major grins
    edited December 1, 2008
    jfiler wrote:
    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
    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.
    --John
    HomepagePopular
    JFriend's javascript customizationsSecrets for getting fast answers on Dgrin
    Always include a link to your site when posting a question
  • jfilerjfiler Registered Users Posts: 42 Big grins
    edited December 1, 2008
    jfriend wrote:
    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
  • jfriendjfriend Registered Users Posts: 8,097 Major grins
    edited December 1, 2008
    jfiler wrote:
    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
    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.
    --John
    HomepagePopular
    JFriend's javascript customizationsSecrets for getting fast answers on Dgrin
    Always include a link to your site when posting a question
  • jfilerjfiler Registered Users Posts: 42 Big grins
    edited December 1, 2008
    jfriend wrote:
    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
  • jfriendjfriend Registered Users Posts: 8,097 Major grins
    edited December 1, 2008
    jfiler wrote:
    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.
    --John
    HomepagePopular
    JFriend's javascript customizationsSecrets for getting fast answers on Dgrin
    Always include a link to your site when posting a question
Sign In or Register to comment.