Skip to Content Skip to Menu

[SOLVED] Modify css problem

  • AchLive
  • AchLive
  • OFFLINE
  • Posts: 253
  • Thanks: 14
  • Karma: 3
1 year 11 months ago - 1 year 11 months ago #331838 by AchLive
[SOLVED] Modify css problem was created by AchLive
Hello everyone
In the cbConnection.php file present at the following path /libraries/CBLib/CB/Legacy/cbConnection.php this code is present
Code:
        $notificationMsgHTML    =    '<div style="padding: 4px; margin: 4px 3px 6px 0px; background: #C44; font-weight: bold;" class="cbNotice">'             . CBTxt::T( 'UE_SENDPMSNOTICE', 'NOTE: This is a message generated automatically by the Connections system. It has the connecting user\'s address, so you can conveniently reply if you wish to.' )             . "</div>\n\n"             . $notificationMsgHTML;

I need to change background: #C44; is there a way to do this without editing the file directly?
Thanks for the support
Last edit: 1 year 11 months ago by krileon. Reason: Added [SOLVED] tag to subject

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48541
  • Thanks: 8290
  • Karma: 1445
1 year 11 months ago #331842 by krileon
Replied by krileon on topic Modify css problem
If it's a PM notification yes you can change it by restyling the CSS class cbNotice. If it's an email notification then no as emails typically only support inline styles.


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.

  • AchLive
  • AchLive
  • OFFLINE
  • Posts: 253
  • Thanks: 14
  • Karma: 3
1 year 11 months ago #331844 by AchLive
Replied by AchLive on topic Modify css problem
Thanks for the reply, this is the private message sent by the system to the user who has received a new friend request.
I tried to edit cbNotice but unfortunately failed.
In Plugin Default -> Replace I put the following code
Code:
cbNotice {      padding: 4px;      margin: 4px 3px 6px 0px;      background: #fff;     font-weight: bold; }
Surely it's me who's wrong. Could you tell me how to do it?

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48541
  • Thanks: 8290
  • Karma: 1445
1 year 11 months ago #331846 by krileon
Replied by krileon on topic Modify css problem
There's no period before your CSS class selector. See the below on how to write valid CSS.

developer.mozilla.org/en-US/docs/Learn/CSS/First_steps/How_CSS_is_structured#selectors

You may need to add more selectors for more weight as well. You can also use !important flags if you have to on a CSS rule to force it regardless of weight.


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.

  • AchLive
  • AchLive
  • OFFLINE
  • Posts: 253
  • Thanks: 14
  • Karma: 3
1 year 11 months ago #331847 by AchLive
Replied by AchLive on topic Modify css problem
Thanks, I also tried with .cbNotice but it didn't work, !important flags fixed it.
Thanks for the support

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

Moderators: beatnantkrileon
Powered by Kunena Forum