Jump to content

[Solved] ElseIf -- Blank fields to yield a result?


ThistleProse
 Share

Recommended Posts

Hi!

 

so, I have the PhP in templates doing its thing, but I have a question about if it can do the thing I want it to do lol

 

I have an input box, for custom hex code. However, if NO hex is put in, I would like it to use a default. But I don't know how to make the code work?

 

 
  Basically, I want each of these Fields to be;
  If empty: show [default hex code]
  If filled: use [given code]

 

Is this possible?

 

 
     /*Major Title Headers*/    .ProfileTitle2 {font-family: 'Bilbo Swash Caps', cursive; letter-spacing: 3px; font-size: 55px; color: #{$userfields['fid37']}; text-align: center; background-color:#{$userfields['fid35']}; border-radius: 10px; border: 8px; padding:8px; padding: 10px 50px 0px 0px; text-shadow: 0 -2px 3px #{$userfields['fid33']},0 3px 4px #{$userfields['fid35']};}

 

HaLp2lk.png
October-2017.png 

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Had a brainwave while getting ready for bed lmao. I'll use a select box: Going to use custom colours? Yes (use this CSS) or No (use other CSS)

HaLp2lk.png
October-2017.png 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use, Guidelines and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.