We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28033
    • 925 Posts
    Quote from: rthrash at Jun 25, 2008, 03:10 PM

    You’d need to assign a CSS class to each error container, but I don’t think the if/case would generate much overhead.

    Basically, I would have an if/elseif/else that would add the CSS class "success", "error", or "message".

    Looking at it again, I might be able to switch it from $wlpe_lang to $error, $success, and $message, and edit the class file accordingly...I’ll have to tinker with it when I have more time. tongue
      My Snippets
      -> PopUpChunk v1.0
      • 25663 MODX Staff
      • 12,272 Posts
      Quote from: Soshite at Jun 25, 2008, 07:30 AM

      x_x...Sorry I haven’t been able to fix the "bugs" lately...life’s been hectic lately.

      I dunno if I’ll have time for this for the v1.3.1 release, or if it’ll have to be done in a v1.3.2 release, but I thought of a great idea last night...

      Currently, all of the WLPE "messages" can be styled, but since they all come from one lang file, you can’t style an error message differently from a success or just your average, normal message. I was thinking of splitting the lang file into three different files --- one for errors (red), one for successes (green), and one for normal messages (gray?). I would also implement some PHP checking to output the "coloring" of the message, depending on it’s status.

      What do you guys think? I think this could help differentiate the errors the users get more easily, since they can see at a glance what kind of message it was.

      Hi Soshite,

      I think there’s one more useful addition that would make sense for a 1.3.1 official release and we can just wrap up what’s been done to date and call it a release. The addition of pagination to the user list just makes too much sense to me right now for larger installs. Search/filtering would be great as well but that gets more involved (1.3.2 maybe?). Would you like some assistance in implementing this into the current 1.3.1 codebase? (see http://modxcms.com/forums/index.php/topic,20396.0.html for more reference on the pagination).

      It’d also be cool to see a fresh updated list of enhancements and bugfixes for WLPE that might make sense for future releases if you’ve got a log available, as well as a full list of fixes/patches applied.


        Ryan Thrash, MODX Co-Founder
        Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
        • 28033
        • 925 Posts
        Quote from: rthrash at Jul 08, 2008, 08:44 AM

        It’d also be cool to see a fresh updated list of enhancements and bugfixes for WLPE that might make sense for future releases if you’ve got a log available, as well as a full list of fixes/patches applied.

        The first post has the list of the bug fixes from the first two betas, IIRC. Beta 3 just fixed that one issue and implemented the user avatar resizing, IIRC.

        I did that on purpose so in case one of the fixes messed something up, I had a reference to find it. And with the tons of fixes, it’s a necessity. tongue
          My Snippets
          -> PopUpChunk v1.0
          • 36571
          • 145 Posts
          Getting a parse error when updating a profile.

          PHP error debug
          Error: htmlentities() [function.htmlentities]: charset `"UTF-8"’ not supported, assuming iso-8859-1
          Error type/ Nr.: Warning - 2
          File: /var/www/web74/web/assets/snippets/webloginpe/webloginpe.class.php
          Line: 947
          Line 947 source: $extendedFieldValues[$field] = $modx->db->escape(stripslashes(htmlentities(trim($_POST[$field]), ENT_QUOTES,$charset)));

          Hmmmm...
            • 28033
            • 925 Posts
            Quote from: danielw at Jul 14, 2008, 04:58 AM

            Getting a parse error when updating a profile.

            PHP error debug
            Error: htmlentities() [function.htmlentities]: charset `"UTF-8"’ not supported, assuming iso-8859-1
            Error type/ Nr.: Warning - 2
            File: /var/www/web74/web/assets/snippets/webloginpe/webloginpe.class.php
            Line: 947
            Line 947 source: $extendedFieldValues[$field] = $modx->db->escape(stripslashes(htmlentities(trim($_POST[$field]), ENT_QUOTES,$charset)));

            Hmmmm...

            I bet that’s one of the UTF-8 fixes I made...x_x
              My Snippets
              -> PopUpChunk v1.0
              • 28042 ☆ A M B ☆
              • 24,524 Posts
              What version of PHP was that? It’s supposed to support UTF-8 since 4.3
              http://www.php.net/htmlentities
                Studying MODX in the desert - http://sottwell.com
                Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                Join the Slack Community - http://modx.org
                • 36571
                • 145 Posts
                PHP 5.x

                That should not be a problem, right?
                  • 19164
                  • 1,215 Posts
                  The trouble is in bracers. Must be UTF-8, not "UTF-8"

                  Here

                  $charset=’"’.$modx->config[’modx_charset’].’"’;
                  $extendedFieldValues[$field] = $modx->db->escape(stripslashes(htmlentities(trim($_POST[$field]), ENT_QUOTES,$charset)));

                  must be simply

                  $extendedFieldValues[$field] = $modx->db->escape(stripslashes(htmlentities(trim($_POST[$field]), ENT_QUOTES,$modx->config[’modx_charset’])));
                    DirectResize 0.9 beta. PHPThumb, sets of configurations, configuration, binded to specific path. No backward compatibility. | DirectResize 0.9. PHPThumb, наборы параметров, параметры, привязанные к определенным путям. Без обратной совместимости.

                    Unfortunately, DirectResize project is closed. If you want to continue development, PM me for access to project page on Google Code. К сожалению, проект DirectResize закрыт. Если вы желаете продолжить разработки, обращайтесь через ПМ для получения доступа к репозиторию на Google Code.

                    [PLUGIN] DirectResize - as Maxigallery but for single images :: Download :: [url=http://modxcms.com/forums/index.php/topic,21490]
                    • 7455
                    • 2,204 Posts
                    or change this:
                    $charset=’"’.$modx->config[’modx_charset’].’"’;
                    to this:
                    $charset=$modx->config[’modx_charset’];
                      follow me on twitter: @dimmy01
                      • 28033
                      • 925 Posts
                      BETA 4 has been released!  grin

                      This includes all of the recent bugfixes, as well as vhollo’s image resizing fix. This will be the RTM if no show-stopping bugs are found. Note this doesn’t include the pagenation hack --- that’s for v1.3.2. wink
                        My Snippets
                        -> PopUpChunk v1.0