We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 27889
    • 415 Posts
    check the demo
    Download The Last Version
    Instructions
    Vote:
    1 2 3 4 5

    • 11/06/06: Added multiline and case insensitive heading parsing.
    • 13/06/06: version 0.21: Remove the back button bug.
      The [tt]$_SERVER[’HTTP_REFERER’] [/tt]var contain strange [tt]http//mydomain.com/page.html [/tt]
    • 22/06/06: version:0.22: Changed top and home link correctly ! (work in my snippet but not in this plugin)
    • 25/06/06: version:0.23: Rechanged top and home link correctly ! (tested with friendly url with alias suffix and prefix)
    • 26/06/06: version:0.24: Rechanged back correctly ? (tested with friendly url with alias suffix and prefix)
    • 11/08/06: version:0.25: Scriptaculous Scroll Effect added.
    • 20/08/06: version:0.26: Add or disable navbar heading with <!--navbar-->.
    • 22/08/06: version:0.27: Add a title in the call with <!--sommaire|<b>My SommaireTitle</b>|-->.

    I know now why I have broken link: posted in this topic
    Bug posted :http://modxcms.com/bugs/task/497
    The /index.php strip the ’:’ char from the url so:
    in system var $_SERVER[’HTTP_REFERER’]
    http://localhost:85/modx/recherche.html
    become:
    http//localhost85/modx/recherche.html
    I think the same problem occurs for these type of url:
    http//login:password@localhost85/modx/recherche.html

    The two char ’:’ and ’@’ must not be stripped from the url
    I changed the line 54 of /index.php from:
    $_SERVER[$outside] = isset($_SERVER[$outside]) ? preg_replace("/[^A-Za-z0-9_\-\,\.\/\s]/", "", $_SERVER[$outside]): ’’;
    to:
    $_SERVER[$outside] = isset($_SERVER[$outside]) ? preg_replace("/[^A-Za-z0-9_\-\,\:\@\.\/\s]/", "", $_SERVER[$outside]): ’’;


    I need your feed back to be sure my code is right for everyone.
    I hope you like this little plugin.

    Ask anything and I try to help you.
      MODx Sites & Prestations: http://dp-site.fr [Last MODx Site]
      MODx Repository: [HOME] [MetaTagsExtra] / Current Dev: [xFDM]
      • 28021
      • 13 Posts
      I love this plugin, and would really want to run this correctly at my site, but there are some errors:

      the URL’s of Préc, Haut and Accueil are not working correctly. If one clicks on Haut, it doens’t jump back to the table of contents.
      The URL’s in the table of contents are working correctly, and jumps to the right part.

      I only need to get the Haut-link working, so that it jumps back to the table of contents. I do need the other two links. Also I want to add a extra
      between the text and the Haut link. Where do I do that?
        • 27889
        • 415 Posts
        Hello,
        sorry for the inconvenient, this is a very beta version, but this can help you:
        First change these two lines:
        echo" <a class=\"iconehaut\" href=\"[~[*id*]~]#dpsite\" title=\"Allez en haut de la page\">Haut</a>";
        echo" <a class=\"iconeaccueil\" href=\"[(start_page)]\" title=\"Aller à la page Accueil\">Accueil</a>";

        [tt]edit[/tt]
        1:download the latest version, it correct all the links
        2:Have you set an id for the body in the template ?
        #dpsite is the anchor where the link is pointing.
        in the template of the page you have a body tag, it’s <body>, you must replace it with:
        [tt]<body id="dpsite">[/tt]
        you can change dpsite to whatever you want but it must be the same as in the snippet : #dpsite


        For the go-back link copy and paste the destination of the link, so I can help you. It’s a small error, and I can correct it.
        I made lot of thing so this plugin update is not
        a priority, but if somes find it helpfull, I can continue the developpement.
          MODx Sites & Prestations: http://dp-site.fr [Last MODx Site]
          MODx Repository: [HOME] [MetaTagsExtra] / Current Dev: [xFDM]
          • 28021
          • 13 Posts
          Thank you so much for updating! It works like a charm laugh !
            • 27889
            • 415 Posts
            If you happy, I’m happy rolleyes Can you tell me if you have friendly url enabled ?
              MODx Sites & Prestations: http://dp-site.fr [Last MODx Site]
              MODx Repository: [HOME] [MetaTagsExtra] / Current Dev: [xFDM]
              • 28021
              • 13 Posts
              I use indeed friendly URL’s and friendly aliases.
                • 27889
                • 415 Posts
                Cool Scriptaculous Scroll effect added !
                  MODx Sites & Prestations: http://dp-site.fr [Last MODx Site]
                  MODx Repository: [HOME] [MetaTagsExtra] / Current Dev: [xFDM]
                  • 27889
                  • 415 Posts
                  New version 0.27 see first post
                    MODx Sites & Prestations: http://dp-site.fr [Last MODx Site]
                    MODx Repository: [HOME] [MetaTagsExtra] / Current Dev: [xFDM]