Hello
I am a new member of the forum
I am using the translator
So please excuse any spelling mistakes
I have version 2.1.4 installed
What to do so that clicking on the user causes the display
in the dialog box
and it didn't take me to his profile
mChat username - phpBB mChat
Re: mChat username
I will answer myself
Whith this feature, clicking on nickname of message's author will inserts mention code into text field (textarea\input). Jumping to profile when clicking on avatar remains.
In /ext/dmzx/mchat/styles/prosilver/template/mchat_messages.html replace
CODE: SELECT ALL
or
CODE: SELECT ALL
with
CODE: SELECT ALL
and all work is done.
You can replace ref with i or b or whatever you use to highlight nicknames. Of course, if you're didn't have ref-code, add it (in ACP -> Messages -> BBcodes)(I recommend use it to have ability to change nickname's highlight in messages).
Whith this feature, clicking on nickname of message's author will inserts mention code into text field (textarea\input). Jumping to profile when clicking on avatar remains.
In /ext/dmzx/mchat/styles/prosilver/template/mchat_messages.html replace
CODE: SELECT ALL
Code: Select all
{{ mchatrow.MCHAT_USERNAME_FULL }}
CODE: SELECT ALL
Code: Select all
{ mchatrow.MCHAT_USERNAME_FULL }
CODE: SELECT ALL
Code: Select all
<span onclick="$('#mchat-input').val($('#mchat-input').val() + '[ref]{mchatrow.MCHAT_USERNAME}[/ref], '); $('#mchat-input').focus();" title="{L_MCHAT_RESPOND}" style="font-weight: bold; cursor: pointer; color: {mchatrow.MCHAT_USERNAME_COLOR}">{mchatrow.MCHAT_USERNAME}</span>
You can replace ref with i or b or whatever you use to highlight nicknames. Of course, if you're didn't have ref-code, add it (in ACP -> Messages -> BBcodes)(I recommend use it to have ability to change nickname's highlight in messages).
-
- Registered User
- Posts: 2
- Joined: Mon Dec 18, 2023 7:23 pm