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.

ChatBox Text

3 posters

Go down

In progress ChatBox Text

Post by Tinboh February 28th 2014, 2:08 am

So I was wondering if there was a code to change the default color of the message text within the ChatBox, whilst still giving users the option to change their own colors. Is there any way to do this?
avatar
Tinboh
Forumember

Posts : 42
Reputation : 1
Language : English

http://magiworld.forumotion.com

Back to top Go down

In progress Re: ChatBox Text

Post by Ange Tuteur February 28th 2014, 11:12 am

Hello Tinboh,

You can try adding this to your CSS, but I do not think it is possible.

Administration Panel > Display > Colors > CSS stylesheet
Code:
.user-msg .msg .msg span { color:#f00 !important; }
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13246
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

In progress Re: ChatBox Text

Post by Tinboh March 2nd 2014, 1:02 am

Hrm...that code didn't seem to do anything at all.

And if it is impossible, is there any way to edit the background of the chatbox and every piece of it? Eg. The user list, the main body, the small strip where the message box is, and the header which says "Chatbox".

I tried using the codes in the main topic for Chatbox edits, but those codes didn't seem to do anything.
avatar
Tinboh
Forumember

Posts : 42
Reputation : 1
Language : English

http://magiworld.forumotion.com

Back to top Go down

In progress Re: ChatBox Text

Post by JScript March 2nd 2014, 1:55 pm

Hello!

You can change whatever you want in the chatbox, but in some cases you have to use the code below so that your changes are valid:
Code:

jQuery(function () {
    var sHtml = '<iframe src="/chatbox/index.forum?archives=1" id="frame_chatbox" scrolling="yes" width="100%" height="100%" type="text/html" style="border: 0px;" />';
    jQuery('#frame_chatbox').replaceWith(sHtml);
});

To change the text color, use the following CSS:
Code:

#chatbox .user-msg .msg > span {
  color: #ABCDEF !important;
}
Replace "# ABCDEF" for the color you want.

JS
JScript
JScript
Forumember

Male Posts : 741
Reputation : 175
Language : PT-BR, EN
Location : Brazil

http://jscript.forumeiros.com/

Back to top Go down

In progress Re: ChatBox Text

Post by Tinboh March 2nd 2014, 6:41 pm

Oh cool, the coding worked this time with the javascript. But although it changed the basic text color it took away from a user's ability to alter their own color, so basically it's permanently set at that color now.
avatar
Tinboh
Forumember

Posts : 42
Reputation : 1
Language : English

http://magiworld.forumotion.com

Back to top Go down

Back to top

- Similar topics

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