Well, to be honest, I had let it be just as it came... I had stopped worrying about that.
@Krileon: Sorry, dude, I hadn't thanked you for your help.
@Startup: I'm just playing with it, changing the lines Krileon suggested... It's a little pain in the 4$$
So, this is what I'm doing:
1. Go to components/com_comprofiler/comprofiler.html.php
2. Krileon said
"(go) to the very beginning"
. As a matter of fact, there are several bunches of code scattered throughout the entire php file that need to be changed. So, be patient and
DEFINE A PHP VARIABLE with the color you want (I defined [code:1]"$ErrorColor='#FFCCCC'"[/code:1])
3. Due to var context issues, put the php where you
define that a variable ahead in the file. I put it around line ~1400, but I guess it's not the ideal place.
4. Change EVERYTHING that deals with [code:1]'.background = "red"'[/code:1] or similar pieces of code, to [code:1]'.background = "<?php echo $ErroColor; ?>"'[/code:1]
5. Regarding
your specific problem: I'm having it too. But I know where the problem is.
Around line ~1400, you will find a code similar to this:
[code:1]"} else if (typeof(me)!='undefined' && me.style.backgroundColor.slice(0,3)=="red"«») { me.style.backgroundColor = cbDefaultFieldBackground;"[/code:1]
This is what turns your color back to the default.
But it has to check that it's not set on the default value. So I gave it a little turn, and changed it to check exactly that, so something like:
[code:1]"} else if (typeof(me)!='undefined' && me.style.backgroundColor!=cbDefaultFieldBackground) { me.style.backgroundColor = cbDefaultFieldBackground;"[/code:1] should do good.
Remember to change it not just for the 'username', but for all the fields.
Hope this helps you out.