We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 26482
    • 138 Posts
    Hi,

    I currently have styled my WebLoginPE message to be bold and red with a red border. Looks great and catches the attention of the user. However, it looks as if it’s always saying something’s wrong with the form. The same styling is used for all messages, also messages such as "your password has been changed".
    Is there a possibility (without hacking the script) to differentiate the style of the messages? Red=error, green=status message, etc.

    Thanks.
      • 1169
      • 312 Posts
      Hi sderuiter

      When I first saw this post I did not have a clue how to answer you but now a little more knowlegable.
      The more I read and do the more I learn amazing.

      I would suggest viewing page with firebug find message, see if it has a class name or id and target same in css file.
      It worked for me.

      Regards
      Allan.
        DEVELOPMENT ENV:- Ubuntu 12.04 | MODx Revolution 2.2.8 | LAMP 2i Apache 2.2.22 | Php 5.3.10 | Mysql 5.5.31 MySQL client version: 5.5.31
        • 26482
        • 138 Posts
        hi allanb,

        Thanks for your reply. I guess I should have worded my question better smiley
        What I meant was that ’good’ messages (saved settings) and ’bad’ messages (input wrong) share the same class or id, therefore I don’t have the ability to differentiate.
          • 1169
          • 312 Posts
          Hi sderuiter

          Sorry I was of no real help. You would then have to change code to a new class.

          Regards
          Allan
            DEVELOPMENT ENV:- Ubuntu 12.04 | MODx Revolution 2.2.8 | LAMP 2i Apache 2.2.22 | Php 5.3.10 | Mysql 5.5.31 MySQL client version: 5.5.31
            • 11887
            • 34 Posts
            I just installed my first modx site the other day and added webloginpe yesterday.

            After spending some time with it, this is one of the first things I noticed.

            I think a status message should always stand out from a page, especially if it appears after the user hits a button that causes nothing else on the page to change... which is the case here.

            And it should always stand out of a page with colours; red for bad, yellow for warning, green for good.

            So, I think this should be included in a next version or something, but for now I plan to go through the lang file and add three CSS classes for each colour, which I can then add to my master CSS.

            Let me know what you plan to do...