We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
  • Great one indeed, and incorporated in the coming 0962 release. smiley
      Ryan Thrash, MODX Co-Founder
      Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
      • 5213
      • 5 Posts
      I’m using the rewrite Rachael posted earlier in this thread. It works like a charm and is very useful.

      The problem is it won’t work together with the ManagerManager plug in. As far as I can see from an non programmers point of view the javascript code doesn’t find the HTML to be modified because of the code changes done by ManagerManager. The order of plug in execution doesn’t matter, BTW.

      Can somebody clarify/help?
      Thanks!

      ---
      Additional info after some research:
      It looks like the problem has to do with single quotes, double quotes, ticks, whatever it’s called.

      The script throws a javascript error Error: url is not defined with a link to this line:
      return (url != '' && url.search(/http:\/\//i) == -1) ? ('http://yxz.com/' + url) : url;


      after modification of the javascript as follows the error becomes Error: (new Element("img")).setProperty is not a function. Where do the double quotes come from?
      var img = new Element('img').setProperty('src', 'http://asdf.com').setStyles('max-width:300px; max-height:100px');
      // var img = new Element('img').setProperty('src', full_url(url)).setStyles('max-width:300px; max-height:100px');


      Both errors only occur when ManagerManager plugin is active.

      Sorry for the crude way of debugging. I don’t know better, but I would love to use both plugins together... smiley


        • 21056
        • 327 Posts
        As I’ve posted on the ManagerManager thread, I think this is an incompatibility between Mootools and JQuery.

        The good news is that the new version of MM (0.3) will have it’s own implementation of this plugin, so you won’t miss out on any functionality. I’ll also have a check that will alert you to the incompatibility and a note in the release notes.
          Author: ManagerManager plugin - customise your ModX manager interface

          Rckt - web development, Sheffield, UK