3.1.x SnippetsReplace the @ by an icon in mchat

Snippets
Previous topicNext topic
User avatar

Topic Author
Midway
Translators
Translators
Status: Offline
User theme: Dark
Posts: 115
Joined: Dec 8th, '14, 09:27
    Windows 7 Firefox

Replace the @ by an icon in mchat

Post by Midway »

Open ext/dmzx/mchat/styles/prosilver/mchat_avatars.html

Find:

Code: Select all

<a class="mChatScriptLink" href="#" onclick="insert_text('&#64;&nbsp;[b][color={mchatrow.MCHAT_USERNAME_COLOR}]{mchatrow.MCHAT_USERNAME}[/color][/b], ', false);return false;" title="{L_MCHAT_RESPOND}"><span style="color: {mchatrow.MCHAT_USERNAME_COLOR}"><strong>&#64;</strong></span></a><!-- ELSE --> <a href="#" class="mChatScriptLink" onclick="insert_text('&#64;&nbsp;[b]{mchatrow.MCHAT_USERNAME}[/b], ', false);return false;" title="{L_MCHAT_RESPOND}"><strong>&#64;</strong></a>   
Replace by:

Code: Select all

<a class="mChatScriptLink" href="#" onclick="insert_text('[b][color={mchatrow.MCHAT_USERNAME_COLOR}]{mchatrow.MCHAT_USERNAME}[/color][/b], ', false);return false;" title="{L_MCHAT_RESPOND}"><span style="color: {mchatrow.MCHAT_USERNAME_COLOR}"><img src="{BOARD_URL}ext/dmzx/mchat/styles/prosilver/theme/images/user_add.png"/></span></a><!-- ELSE --> <a href="#" class="mChatScriptLink" onclick="insert_text('[b]{mchatrow.MCHAT_USERNAME}[/b], ', false);return false;" title="{L_MCHAT_RESPOND}"><img src="{BOARD_URL}ext/dmzx/mchat/styles/prosilver/theme/images/user_add.png"/></a>
before.png
after.png
put the icon user_add.png in ext/dmzx/mchat/styles/prosilver/theme/images/
user_add.png
You do not have the required permissions to view the files attached to this post! Maybe your post count is too low.
User avatar

rammstein
Donator
Donator
Status: Offline
User theme: Dark
Posts: 78
Joined: Mar 13th, '15, 18:08
    Windows 7 Firefox

Re: Replace the @ by an icon in mchat

Post by rammstein »

Good morning
I have a small problem text as shown here on the pictures

Image
User avatar

Topic Author
Midway
Translators
Translators
Status: Offline
User theme: Dark
Posts: 115
Joined: Dec 8th, '14, 09:27
    Windows 7 Firefox

Re: Replace the @ by an icon in mchat

Post by Midway »

Salut ghost hello ghost

Your picture is too big see the width height of my picture user_add.png
User avatar

rammstein
Donator
Donator
Status: Offline
User theme: Dark
Posts: 78
Joined: Mar 13th, '15, 18:08
    Windows 7 Firefox

Re: Replace the @ by an icon in mchat

Post by rammstein »

Thank you I put the image on 14x14 know good
thank you again :eusa_dance:
Previous topicNext topic