Can I bold message from admin and moderation?

65 views
Skip to first unread message

Công Minh Nguyễn

unread,
Jul 5, 2015, 10:24:02 AM7/5/15
to ajax...@googlegroups.com
Can I bold Message Text from Admin And Moderation?
I have read source but i don't find anything 

Fabian Wilson

unread,
Jul 5, 2015, 11:41:42 AM7/5/15
to Công Minh Nguyễn, ajax...@googlegroups.com

If I understand you want to bold all text from admins and mods? You can change the font type in the css/font.css file.

On Jul 5, 2015 9:24 AM, "Công Minh Nguyễn" <clove...@gmail.com> wrote:
Can I bold Message Text from Admin And Moderation?
I have read source but i don't find anything 

--
You received this message because you are subscribed to the Google Groups "AJAX-chat" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ajax-chat+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

jonnyboy

unread,
Jul 27, 2015, 3:53:18 PM7/27/15
to ajax...@googlegroups.com, clove...@gmail.com
you can add a couple of lines to chat.js

    // Override to replace custom text:
    // Return replaced text
    // text contains the whole message
    replaceCustomText: function(text) {
        if ((this.userRole === '2' || this.userRole === '3') || && text.indexOf('/') != 0) {
           text=text.replace(text, "<span style='font-weight: bold;'>" + text + "</span>");
       }
        return text;
    },

Minako Aino

unread,
Dec 7, 2015, 12:29:04 AM12/7/15
to AJAX-chat, clove...@gmail.com
Hey just following up to see if anyone got this to work? Been trying variations for a bit ( and this is literally what I've been trying to do ) however nothing changes in chat. Tried even assigning an ID/Class to the span tag and nothing is showing up.


On Monday, July 27, 2015 at 12:53:18 PM UTC-7, jonnyboy wrote:
you can add a couple of lines to chat.js

    // Override to replace custom text:
    // Return replaced text
    // text contains the whole message
    replaceCustomText: function(text) {
        if (this.userRole == 2 || this.userRole == 3) {
            userClass = this.getRoleClass(this.userRole)

jonnyboy

unread,
Dec 17, 2015, 9:40:37 AM12/17/15
to AJAX-chat, clove...@gmail.com
I just slightly modified my previous post and tested it. It works on my system and does not effect any command strings, text that starts with "/";
Reply all
Reply to author
Forward
0 new messages