The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

ChatBox Text

View previous topic View next topic Go down

In progress ChatBox Text

Post by Tinboh on 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?

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 on 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
Forumaster

Male Posts : 13021
Reputation : 2681
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

In progress Re: ChatBox Text

Post by Tinboh on 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.

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 on 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
Forumember

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

http://jscript.forumeiros.com/

Back to top Go down

In progress Re: ChatBox Text

Post by Tinboh on 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.

Tinboh
Forumember

Posts : 42
Reputation : 1
Language : English

http://magiworld.forumotion.com

Back to top Go down

View previous topic View next topic Back to top


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