Rusnak PHP Scripts Support Forums

Full Version: Change color of error Messages
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi, I would like to change the color of the error messages, like:
Quote:The passwords you enter do not match. Please go back and try again.

All error messanges are in black font, but there is no color defined at the mkforum for those messanges (also for the "the name is already in use" error)
so how do I now get them into a other color?

All my tries ended in an error.

Because i never defined a color in a php file.

Also in my opinion, a template system is a must have normaly.



Thanks and Greetings
Just use standard HTML tags. Like <font color='green'>Text</font>. Place this in your language file before and after the text to change. Remember to use ' instead of " as well.
That does not work!

Also the error messanges aren't defined at the language pack, there are defined directly at the mkform.php

And when I change:

die("ERROR: Your forum name is not the right length. It must be between 6 and 20 characters long. Please hit your browser back button and try again.");

to
die("<font color='ffffff'>ERROR: Your forum name is not the right length. It must be between 6 and 20 characters long. Please hit your browser back button and try again.</font>");

it doesn't help.
instead of ffffff use font color='white'
That doesn't change anything

also ffffff is the same like white
no idear?
post your language file so we can look at it...
You could also try using

PHP Code:
die("<p style=\"font-color: #fff;\">ERROR: Your forum name is not the right length. It must be between 6 and 20 characters long. Please hit your browser back button and try again.</p>"); 

Just incase its your browser being picky about standards.

Also are you sure your changing the correct error message which you are trying to simulate? A lot of those error messages look very similar...

Alec
Reference URL's