[HowTo] Add explanation for the banners below mChat

Adds a colored banner next to each user name in mChat, indicating the user’s last activity
Post Reply
User avatar
kasimi
mChat developer
Posts: 524
Joined: 06 Oct 2016, 09:56
Location: Germany
Contact:

[HowTo] Add explanation for the banners below mChat

#1

Post by kasimi » 13 May 2018, 14:17

Because why not. :D

  • Go to ext/kasimi/mchatonlinebanners/styles/all/template/event
  • Create an empty text file dmzx_mchat_body_smiley_after.html
  • Use this HTML. Edit it to your liking:

    Code: Select all

    <div>
      {% for banner in MCHAT_ONLINEBANNERS %}
        <span style="color: {{ banner.color }};">
          <i class="icon fa fa-circle fa-fw" aria-hidden="true"></i><span>{{ banner.title ?: '' }}</span>
        </span>
      {% endfor %}
    </div>
    
mchatonlinebanners_legend.png
mchatonlinebanners_legend.png (4.33 KiB) Viewed 26 times
mchatonlinebanners_legend.png
mchatonlinebanners_legend.png (4.33 KiB) Viewed 26 times

Tigers
Donor
Posts: 10
Joined: 25 Nov 2016, 09:42

Re: [HowTo] Add explanation for the banners below mChat

#2

Post by Tigers » 17 May 2018, 04:06

Thanks for this kasimi :+1:

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest