Enhanced User List 1.1.3 Now Available

Permalink
Pardon my intrusion, but I can't find any other way to communicate directly with my customers. (Is there a way for devs to email add-on customers?)

Anyway, I wanted to let everyone (especially those who've already purchased my Enhanced User List add-on) know that version 1.1.3 is now available. You can update through the dashboard.

The new version of EUL fixes some issues that showed up in the recent 5.4.2 release of Concrete. Apparently, some behavior changed in the version of jQuery (1.6.2) that ships with 5.4.2, which required some code tweaks.

If you have any questions or concerns, feel free to contact me.

Regards,

-Steve

Shotster
 
Shotster replied on at Permalink Reply
Shotster
BTW, there is another issue you might see when using C5 version 5.4.2 or greater and editing a EUL block using IE, but it's not a problem with my add-on. It results in IE not applying dynamically loaded stylesheets. In the case of my EUL add-on, that results in the block configuration dialog being unstyled and lacking scrollbars.

It's a C5 issue that I have fixed and submitted via Git. Unfortunately, the fix did not make it into the 5.4.2.1 maintenance release. Apparently, some behavior changed in the version of jQuery (1.6.2) that ships with C5 version 5.4.2. If you want to fix the issue until C5 issues a fix, proceed as follows...

Copy...

/concrete/js/ccm.base.js

...to...

/js/ccm.base.js

...and then edit the copy as follows...

Toward the end of the file, replace the following code...

ccm_addHeaderItem = function(item, type) {
    if (type == 'CSS') {
        if (!($('head').children('link[href*="' + item + '"]').length)) {
            $('head').append('<link rel="stylesheet" type="text/css" href="' + item + '?ts=' + new Date().getTime() + '" />');
        }
    } else if (type == 'JAVASCRIPT') {
        if (!($('head').children('script[src*="' + item + '"]').length)) {
            $('head').append('<script type="text/javascript" src="' + item + '?ts=' + new Date().getTime() + '"></script>');
        }
 
    }
}


...with this new code...

ccm_addHeaderItem = function(item, type) {
   // "item" might already have a "?v=", so avoid invalid query string.
   var qschar = (item.indexOf('?') != -1 ? '' : '?ts=');
   if (type == 'CSS') {
      if (navigator.userAgent.indexOf('MSIE') != -1) {
         // Most reliable way I've found to force IE[8] to apply dynamically inserted stylesheet.
         var ss = document.createElement('link'), hd = document.getElementsByTagName('head')[0];
         ss.type = 'text/css'; ss.rel = 'stylesheet'; ss.href = item; ss.media = 'screen';
         hd.appendChild(ss);
      } else {
         if (!($('head').children('link[href*="' + item + '"]').length)) {
            $('head').append('<link rel="stylesheet" media="screen" type="text/css" href="' + item + qschar + new Date().getTime() + '" />');
         }
      }
   } else if (type == 'JAVASCRIPT') {


That should fix the issue for IE until a new version of C5 incorporates a fix.

-Steve