Support » Plugin: Simple Ajax Chat » Coloring Admin usernames

  • Resolved DjPrison

    (@djprison)


    Hey,

    How can I change color of admins in the chat?
    Like normal users are white and admins show in red.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Jeff Starr

    (@specialk)

    It’s not a built-in feature of the plugin. But the chat messages include various classes, so may would be possible to implement a custom solution.

    Thread Starter DjPrison

    (@djprison)

    Where do you think it would be easiest to implement, to form.php file?
    And which class is actually doing that coloring currently to every msg?

    Plugin Author Jeff Starr

    (@specialk)

    I can’t recommend modifying any core files. But you don’t need to, because the plugin makes it easy to add your own CSS via the setting “Custom CSS styles”. So you can use Code Inspector in your browser to examine the various available class names. And then craft and add whatever styles are needed.

    Thread Starter DjPrison

    (@djprison)

    I got correct colors showing for current logged in users, but those colors aren’t global. Only showing ie. for admin only, regular users see still white text

    Plugin Author Jeff Starr

    (@specialk)

    Any CSS added to the Custom CSS setting should be applied to all posts and pages on the frontend. Unless you have Targeted Loading enabled. Make sure that the “Chat URL” setting is blank/empty would be a good idea to check.

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.