Smilies in a scroll box

Support area for phpBB's mChat extension
User avatar
rapblues
Posts: 11
Joined: 18 Apr 2018, 08:34
Location: Paris
Contact:

Re: Smilies in a scroll box

#11

Post by rapblues » 19 Apr 2018, 22:22

I have found my solution by putting the code's line in mchat_panel.html after this line :

Code: Select all

{% if not MCHAT_SOUND_DISABLED %}<li class="mchat-sound"><input type="checkbox" id="mchat-user-sound"{% if MCHAT_SOUND %} checked="checked"{% endif %} /><label for="mchat-user-sound">{{ lang('MCHAT_USESOUND') }}</label></li>{% endif %}
Many thanks for your help ! ;)
rap

Image

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

Re: Smilies in a scroll box

#12

Post by kasimi » 20 Apr 2018, 10:26

Great! :+1:

User avatar
rapblues
Posts: 11
Joined: 18 Apr 2018, 08:34
Location: Paris
Contact:

Re: Smilies in a scroll box

#13

Post by rapblues » 20 Apr 2018, 16:00

Thanks !
Is it possible (and easy) to have an automatic refresh on this list of members ? Cause I have to type F5 to do it ...
rap

Image

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

Re: Smilies in a scroll box

#14

Post by Tigers » 21 Apr 2018, 07:07

Very good idea rapblues and can be use this as a model kasimi?

https://phpbb-extensions.ga/extensions/ ... xbase.html

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

Re: Smilies in a scroll box

#15

Post by kasimi » 21 Apr 2018, 08:57

The Ajax Base extension won't work below the chat because it only refreshes the entire Who is online section, not just the list of usernames.

mChat already displays who is chatting below the chat, although you need to click on the text "x users are chatting" to show the usernames. This refreshes automatically with AJAX, without having to refresh the page. To show all online users instead, try this:
  • Open ext/dmzx/mchat/core/functions.php
  • Find

    Code: Select all

    'online_userlist'	=> implode($this->lang->lang('COMMA_SEPARATOR'), $mchat_users),
  • Replace with

    Code: Select all

    'online_userlist'	=> obtain_users_online_string(obtain_users_online())['online_userlist'],
You might want to adjust the language string to "x users are online". Have a look at ext/dmzx/mchat/language/en/common.php,
there's a // Who is chatting section starting aroung line 47.

terry2 wrote:
19 Apr 2018, 08:37
If you dont want to edit mchat (your choice) i do it like this ext
credit is to kasimi for the script he wrote.
I'm currently wrapping that script in an extension as well. If yours has an ACP module to change the online time, I might as well use yours, if made available, and not do double work.

User avatar
rapblues
Posts: 11
Joined: 18 Apr 2018, 08:34
Location: Paris
Contact:

Re: Smilies in a scroll box

#16

Post by rapblues » 21 Apr 2018, 20:22

Many thanks for your help, kasimi :)

I've tried it and I prefer to have the two informations (mchat members and online members) ... It is not a problem, I am very happy, yet, with the scroll for smilies, and I can see online members on the mchat box, so, it'not too hard to press time to time F5 key ! :D :D
rap

Image

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest