Show to founder user only

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

Show to founder user only

Post by terry2 »

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: 1112
Joined: 06 Oct 2016, 09:56
Location: Germany

Re: Show to founder user only

Post by kasimi »

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:
br0nks
Posts: 14
Joined: 07 Aug 2019, 14:15

Re: Show to founder user only

Post by br0nks »

so where add this code kasimi?
User avatar
kasimi
mChat developer
Posts: 1112
Joined: 06 Oct 2016, 09:56
Location: Germany

Re: Show to founder user only

Post by kasimi »

In the listener class: ext/kasimi/mchateditdetails/event/listener.php before line 105.

Who is online

Users browsing this forum: CCBot [Bot] and 0 guests