News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Changing "Smart" Registation Field Bg Colour

Started by General_Naga, September 10, 2008, 07:10:02 AM

Previous topic - Next topic

General_Naga

I'm having problems with my registration page as the font colour for my theme is the same colour as the background for the "smart" registration fields. As shown below. Is there a way of changing the colour so that people can see what they're typing?



Thanks in advance

Deaks

~~~~
Former SMF Project Manager
Former SMF Customizer

"For as lang as hunner o us is in life, in nae wey
will we thole the Soothron tae owergang us. In truth it isna for glory, or wealth, or
honours that we fecht, but for freedom alane, that nae honest cheil gies up but wi life
itsel."

General_Naga

Here you go.

Thanks for answering my plea for help :)

greyknight17

What theme are you using there? You want it to have a matching color with your theme. If you change it to white, you will need to change the text itself to a black color. Otherwise, it will be white on white as the font is set to white now.

General_Naga

I'm using the theme BlackRain

I was looking to change the "smart fields" background to a the same grey as my background. Failing that I want to change the text to black. Eitherway I'm just hoping I can avoid having to change the main colour scheme of the theme.

Rumbaar

That field is controlled via this styles, try to alter them.  Also if you use FF and Web Developer you can check these styles yourself.

input, textarea, button {
background : #333;
border : 1px solid #000;
color : #fff;
font-family : verdana, sans-serif;
font-size : 90%;
}
input, button {
font-size : 90%;
}
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

General_Naga

Cheers Ruumbaar I've now managed to change the top field to the correct colour. However it changes back if I have any errors/warning in that field. I assume that is also why the password field isn't effect by my change because it has a warning on it unless its filled in.

Rumbaar

Well you're custom theme might have additional style that affect that area.  You might want to look into the Web Developer feature I suggested so you can try and identify and custom theme specific styles, etc.
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

General_Naga

Ok thanks, Ive just installed it and will be having a go at identifying what's happening.

SlammedDime

I believe the colors are hard coded into the javascript file.  I don't remember entirely off the top of my head, but take a look there.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

General_Naga

I guessed it might be something like that. Which java file would that be and where?

Thanks

Nathaniel

Find this code ('/Themes/default/scripts/register.js'):
var invalidColor = '#FFF0F0';

You can change the '#FFF0F0' value to change the color. :)
SMF Friend (Former Support Specialist) | SimplePortal Developer
My SMF Mods | SimplePortal

"Quis custodiet ipsos custodes?" - Who will Guard the Guards?

Please don't send me ANY support related PMs. I will just delete them.

General_Naga


Advertisement: