Skip to Content Skip to Menu

🎃 Happy Halloween! Treat yourself with an awesome discount on memberships! Get 20% off now with code SPOOKY-2024!

[SOLVED] CSS and _UE variables

  • nijan
  • nijan
  • OFFLINE
  • Posts: 108
  • Thanks: 1
  • Karma: 0
11 years 7 months ago - 11 years 7 months ago #222357 by nijan
[SOLVED] CSS and _UE variables was created by nijan
Hello,

I just have a question about CSS and _UE variable.
Some variable take in account the HTML code.

For example :

DEFINE('_UE_AVATARUPLOAD_DESC','<font color=#339933><b>Oui</b></font> si vous voulez que les utilisateurs puissent envoyer un portrait.');

Color will change on display

Other variable doesn't take it in account

For example :

DEFINE('_UE_EDIT_TITLE','<b>Modifier mes informations</b>');

Will really display <b>Modifier mes informations</b>

My question : How can I apply a style to the _UE variables ?

Thanks !
Last edit: 11 years 7 months ago by krileon.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48459
  • Thanks: 8280
  • Karma: 1443
11 years 7 months ago #222412 by krileon
Replied by krileon on topic CSS and _UE variables
Not all locations support HTML. Why do you need to have inline CSS? I suggest finding the location the string outputs and just add CSS for its selector to your template CSS file. You can use a span to encase a string to add inline CSS, etc.. example as follows.

DEFINE( '_UE_AVATARUPLOAD_DESC','<span style="color: #339933;"><b>Oui</b></span> si vous voulez que les utilisateurs puissent envoyer un portrait.' );

Not all locations allow HTML though so this may just get escaped or even stripped out.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

  • nijan
  • nijan
  • OFFLINE
  • Posts: 108
  • Thanks: 1
  • Karma: 0
11 years 7 months ago #222733 by nijan
Replied by nijan on topic CSS and _UE variables
Thanks !
Issue can be closed.

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum