We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 3493
    • 66 Posts
    Yep, works like a charm for me too! Thanks smiley
      • 23050
      • 1,842 Posts
      Hi,

      I can’t get this plugin works. Characters are still accented. It works like if I didn’t have the plugin on.

      I didn’t understand the posts above embarrassed Thanks for help smiley
        • 23050
        • 1,842 Posts
        Sorry for bump this, but anyone could tell me the code of the plugin you use ? Thank you wink
          • 29635
          • 361 Posts
          Are you getting any errors, or it’s just not doing anything?
          Are you sure you have OnDocFormSave checked off on the plugin page?
          Are you running 0.9.5?
          Have you modified the plugin code at all or is it what’s shown on the first post?
            Need MODx Ecommerce? Try FoxyCart!
            • 23050
            • 1,842 Posts
            I don’t get any error : it’s just like if the plugin wasn’t installed
            Yes, it is
            Yes, 0.9.5
            And yes, I’ve just installed again with the code on first post and it still not work.

            But maybe I have to do something with http://modxcms.com/forums/index.php/topic,7374.msg75196.html#msg75196 but I don’t understand what

            Thanks for your help smiley
              • 29635
              • 361 Posts
              Hi everybody.

              NEW VERSION: 0.9: The new code’s in the first post.

              Notes on 0.9:
              As far as I could figure out, anything past 0.9.5 (like 0.9.5.1 or 0.9.6rc1) doesn’t like the strtr function that handles much of the accented -> non-accented replacements. Not sure why, but replacing the strings of characters with an array fixed the problem. If anybody’s still having problems with the accented character conversion let me know.

              I also added more comments in the code for the less PHP-inclined folks.

              The default output is also changed, so if you upgrade, make sure you change the $alias_new to what you want.

              I’ve only tested this in 0.9.6rc1 and 0.9.5.1 so far. Please post if you find any problems.

              Thanks.
                Need MODx Ecommerce? Try FoxyCart!
                • 23050
                • 1,842 Posts
                Hi Brett (sorry for the delay !)

                I’ve just tested on 0.9.6 RC1 --> Works fine !!!

                Except (sorry again :/) when you edit a document with QuickEdit : alias is replaced by the id of the document.
                  • 28173
                  • 409 Posts
                  Hummm as Perrine the 14-02-2007 at 19:13:58, the plugin doesn’t work on MODx 0.9.5...
                  The OnDocFormSave is check off (turn on)
                  The generated alias for "Généralité" is "gnralit" with or without the plugin.

                  I don’t understand...
                    • 23050
                    • 1,842 Posts
                    Spheerys, did you update to v0.9 ?
                      • 28173
                      • 409 Posts
                      Yes, I’m using the lastest version of the script : 0.90