The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

How to change text colour in message box?

3 posters

Go down

How to change text colour in message box? Empty How to change text colour in message box?

Post by Log July 10th 2018, 4:32 pm

Technical Details


Forum version : #ModernBB
Position : Founder
Concerned browser(s) : Mozilla Firefox, Google Chrome, Internet Explorer, Opera, Safari, Other
Screenshot of problem : https://i.imgur.com/kkiNLYq.png
Who the problem concerns : All members
Forum link : http://bbforums.me

Description of problem

How do I change the colour from black to white in the message box (shown in the attached screenshot)? When in the BBCode editor mode, the text colour is fine. But when in the default editor mode, the text shows as black.

This is the CSS I have currently for the message box, if it helps at all:
Code:
#message-box textarea {
   color: #CCCCCC !important;
}
.sceditor-toolbar {
   background-color: #B8C0D1 !important;
}
.sceditor-container textarea {
   background-color: #242629 !important;
}
.sceditor-container {
   background-color: #242629 !important;
}

Thank you for your help.

Edit: For some reason the text is now also black even in the BBCode editor mode.
Edit 2: I believe the text is black no matter what when typing in the quick reply box. But when creating or editing a post, it's black in the normal editing mode but white in the BBCode editing mode.
Edit 3: I managed to fix the colour of the text in the quick reply box for the BBCode editor mode with the following code:
Code:
.sceditor-container iframe,.sceditor-container textarea {
   color: #CCCCCC !important;
}
But still no luck with changing the text colour for the default editing mode.
Log
Log
New Member

Posts : 5
Reputation : 1
Language : English

http://bbforums.me

Back to top Go down

How to change text colour in message box? Empty Re: How to change text colour in message box?

Post by tikky July 11th 2018, 12:34 am

Hey @Log,
Welcome to Forumotion Forum Support,
Use this JS, in all page
Code:
$(function() {
  $(function() {
    $(".sceditor-container iframe, .sceditor-container textarea")
      .contents()
      .find("head")
      .append(
        "<style>body,html,code:before,p,table{color:#FFFFFF!important;}</style>"
      );
  });
});

and this CSS
Code:
.sceditor-container iframe, .sceditor-container textarea {
  color: white!important;
}

like a shot,
pedxz How to change text colour in message box? 1f608


Last edited by pedxz on July 23rd 2018, 1:51 am; edited 1 time in total (Reason for editing : remove the error)
tikky
tikky
Forumember

Posts : 897
Reputation : 157
Language : 🇵🇹

https://www.forumotion.com/create-forum/modernbb

Back to top Go down

How to change text colour in message box? Empty Re: How to change text colour in message box?

Post by Log July 11th 2018, 12:54 am

pedxz wrote:Hey @Log,
Welcome to Forumotion Forum Support,
Use this JS, in all page
Code:
$(function() {
  $(function() {
    $(".sceditor-container iframe, .sceditor-container textarea")
      .contents()
      .find("head")
      .append(
        "<style>body,html,code:before,p,table,{color:#FFFFFF!important;}</style>"
      );
  });
});

and this CSS
Code:
.sceditor-container iframe, .sceditor-container textarea {
  color: white!important;
}

like a shot,
pedxz How to change text colour in message box? 1f608

Thanks for your answer but I just tried adding both the JS and CSS but it did not seem to affect anything.
Log
Log
New Member

Posts : 5
Reputation : 1
Language : English

http://bbforums.me

Back to top Go down

How to change text colour in message box? Empty Re: How to change text colour in message box?

Post by tikky July 11th 2018, 1:01 am

Check if the JavaScript pages are active:
Modules > HTML & JAVASCRIPT > Javascript codes management, find this option Enable Javascript code management and select Yes
tikky
tikky
Forumember

Posts : 897
Reputation : 157
Language : 🇵🇹

https://www.forumotion.com/create-forum/modernbb

Back to top Go down

How to change text colour in message box? Empty Re: How to change text colour in message box?

Post by Log July 11th 2018, 1:03 am

pedxz wrote:Check if the JavaScript pages are active:
Modules > HTML & JAVASCRIPT > Javascript codes management, find this option Enable Javascript code management and select Yes

I did enable this before adding the JS code.
Log
Log
New Member

Posts : 5
Reputation : 1
Language : English

http://bbforums.me

Back to top Go down

How to change text colour in message box? Empty Re: How to change text colour in message box?

Post by mpelmmc July 11th 2018, 3:13 am

Hello @Log

May you please open a section in which guest can post in your forum in order for us to make tests and give you a proper answer?

Thank you Smile
mpelmmc
mpelmmc
Helper
Helper

Male Posts : 1092
Reputation : 170
Language : English and Spanish

https://help.forumotion.com/

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum