Show to founder user only

Displays a popup with details about edited messages
Post Reply
terry2
Donor
Posts: 154
Joined: 22 Oct 2016, 18:22
Location: My castle

Show to founder user only

#1

Post by terry2 » 06 Oct 2018, 18:47

Some of my members dont like this but i think it's cool so to keep every one happy i made some template changes.

OPEN /ext/kasimi/mchateditdetails/styles/prosilver/template/event/dmzx_mchat_messages_header_after.html

Code: Select all

- This code is only accessible to donors -
Selection_014.png
As you can see i dont use the default icon.
You do not have the required permissions to view the files attached to this post.

User avatar
kasimi
mChat developer
Posts: 767
Joined: 06 Oct 2016, 09:56
Location: Germany
Contact:

Re: Show to founder user only

#2

Post by kasimi » 08 Oct 2018, 16:06

It would be better to do this in PHP to save server resources. In the listener's fetch_edit_time() method, add this at the top:

Code: Select all

- This code is only accessible to donors -
This will only show the edit icon to username1 and username2.

Thanks for the inspiration! :+1:

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest