Support Request SupportProblem with mChat

Support Section
Previous topicNext topic
User avatar

Topic Author
rammstein
Users
Users
Status: Offline
User theme: Dark
Posts: 78
Joined: Mar 13th, '15, 18:08
    Windows 10 Firefox

Problem with mChat

Post by rammstein »

Your phpBB Version:
Your phpBB Type: Standard phpBB
Extensions installed: No
Your knowledge: Beginner
Boardlink: https://wawa-rammstein.de/index.php

PHP Version: php 8.0

What have you done before the problem was there?


What have you already tried to solve the problem?
Non
SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data

Description and Message
hello

I have a big problem with mchat it's no longer possible to post a message

Image

User avatar

clight77
Donator
Donator
Status: Offline
User theme: Dark
Posts: 508
Joined: Sep 24th, '15, 14:23
    Windows 10 Chrome

Re: Problem with mChat

Post by clight77 »

Have you tried re installing a new copy of mChat. and clearing the cache in ACP.

User avatar

Topic Author
rammstein
Users
Users
Status: Offline
User theme: Dark
Posts: 78
Joined: Mar 13th, '15, 18:08
    Windows 10 Firefox

Re: Problem with mChat

Post by rammstein »

Yes I reinstalled everything, nothing changes

User avatar

Topic Author
rammstein
Users
Users
Status: Offline
User theme: Dark
Posts: 78
Joined: Mar 13th, '15, 18:08
    Windows 10 Firefox

Re: Problem with mChat

Post by rammstein »

I found the problem thank you

User avatar

Sniper_E
VIP
VIP
Status: Offline
User theme: Dark
Posts: 1161
Joined: Oct 14th, '14, 17:01
    Windows 10 Chrome

Re: Problem with mChat

Post by Sniper_E »

Whew that's good rammstein I thought I was going to have to jump in and help you out. What was the problem? PHP version?
Image
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!™

User avatar

Topic Author
rammstein
Users
Users
Status: Offline
User theme: Dark
Posts: 78
Joined: Mar 13th, '15, 18:08
    Windows 10 Firefox

Re: Problem with mChat

Post by rammstein »

PHP version 8.0


Enable URL rewriting:
If enabled, URLs containing “app.php” will be rewritten to remove the file name (e.g. app.php/foo will become /foo). The “mod_rewrite” module of the Apache server is required to make this functionality operational; if this option is activated without “mod_rewrite” being available, the URL addresses of your forum will be incorrect.
it was on yes I put it on no the mchat works again

User avatar

satedu
Users
Users
Status: Offline
User theme: Dark
Posts: 3
Joined: Dec 27th, '23, 17:50
    Windows 10 Opera

Re: Problem with mChat

Post by satedu »

Does not display the mChat post clock time next to the user
just like here on the forum

I don't have that
how to restore it :?:
You do not have the required permissions to view the files attached to this post! Maybe your post count is too low.

User avatar

clight77
Donator
Donator
Status: Offline
User theme: Dark
Posts: 508
Joined: Sep 24th, '15, 14:23
    Windows 10 Chrome

Re: Problem with mChat

Post by clight77 »

satedu wrote: Dec 27th, '23, 19:11 Does not display the mChat post clock time next to the user
just like here on the forum

I don't have that
how to restore it :?:
Look in ACP
Image


Also you can set your personal time in UCP

Image

User avatar

satedu
Users
Users
Status: Offline
User theme: Dark
Posts: 3
Joined: Dec 27th, '23, 17:50
    Windows 10 Opera

Re: Problem with mChat

Post by satedu »

I have everything correct in my site settings
I meant an error in the mChat messenger itself

Code: Select all

{%- EVENT dmzx_mchat_messages_before -%}

{%- for mchatrow in loops.mchatrow -%}
<li id="mchat-message-{{ mchatrow.MCHAT_MESSAGE_ID }}" class="row mchat-message{% if mchatrow.MCHAT_IS_NOTIFICATION %} mchat-notification-message{% endif %}" data-mchat-id="{{ mchatrow.MCHAT_MESSAGE_ID }}" data-mchat-user-id="{{ mchatrow.MCHAT_USER_ID }}" data-mchat-username="{{ mchatrow.MCHAT_USERNAME | striptags }}"{% if mchatrow.MCHAT_USERNAME_COLOR %} data-mchat-usercolor="{{ mchatrow.MCHAT_USERNAME_COLOR }}"{% endif %} data-mchat-message="{{ mchatrow.MCHAT_MESSAGE_EDIT }}" data-mchat-message-time="{{ mchatrow.MCHAT_MESSAGE_TIME }}"{% if MCHAT_EDIT_DELETE_LIMIT and not MCHAT_EDIT_DELETE_IGNORE and (mchatrow.MCHAT_ALLOW_EDIT or mchatrow.MCHAT_ALLOW_DEL) %} data-mchat-edit-delete-limit="1"{% endif %} {% EVENT dmzx_mchat_message_attributes %}>
	{% if S_MCHAT_AVATARS %}
	<div class="mchat-avatar">
		{% if mchatrow.U_VIEWPROFILE %}<a href="{{ mchatrow.U_VIEWPROFILE }}" title="{{ lang('READ_PROFILE') }}">{% endif %}
		{% if mchatrow.MCHAT_USER_AVATAR %}{{ mchatrow.MCHAT_USER_AVATAR }}{% else %}<img src="{{ STYLE_PATH }}/theme/images/no_avatar.gif" class="mchat-avatar" alt="{{ lang('READ_PROFILE') }}">{% endif %}
		{% if mchatrow.U_VIEWPROFILE %}</a>{% endif %}
	</div>
	{% endif %}
	<div class="mchat-message-wrapper">
		{% INCLUDE '@dmzx_mchat/mchat_messages_icons.html' %}
		<div class="mchat-message-header">
			{% EVENT dmzx_mchat_messages_header_before %}
			<span onclick="$('#mchat-input').val($('#mchat-input').val() + '[ref=\'{mchatrow.MCHAT_USERNAME_COLOR}\']{mchatrow.MCHAT_USERNAME}[/ref], '); $('#mchat-input').focus();" title="{L_MCHAT_REPLY}" style="font-weight: bold; cursor: pointer; color: {mchatrow.MCHAT_USERNAME_COLOR}">{mchatrow.MCHAT_USERNAME}</span>
			{% EVENT dmzx_mchat_messages_header_after %}
		</div>
		<div class="mchat-text">
			{% EVENT dmzx_mchat_messages_text_before %}
			{{ mchatrow.MCHAT_MESSAGE }}
			{% EVENT dmzx_mchat_messages_text_after %}
		</div>
	</div>
</li>
{%- endfor -%}

{%- EVENT dmzx_mchat_messages_after -%}
where to paste it in the above code

Code: Select all

<span class="mchat-time" title="{{ mchatrow.MCHAT_DATETIME }}"{% if mchatrow.MCHAT_MINUTES_AGO != -1 %} data-mchat-minutes-ago="{{ mchatrow.MCHAT_MINUTES_AGO }}" data-mchat-relative-update="{{ mchatrow.MCHAT_RELATIVE_UPDATE }}"{% endif %}>{{ mchatrow.MCHAT_TIME }}</span>

User avatar

clight77
Donator
Donator
Status: Offline
User theme: Dark
Posts: 508
Joined: Sep 24th, '15, 14:23
    Windows 10 Chrome

Re: Problem with mChat

Post by clight77 »

I do not have that code in mine, I am using v 2.1.4
What version of mChat do you have?

This is my code

Code: Select all

{%- EVENT dmzx_mchat_messages_before -%}

{%- for mchatrow in loops.mchatrow -%}
<li id="mchat-message-{{ mchatrow.MCHAT_MESSAGE_ID }}" class="row mchat-message{% if mchatrow.MCHAT_IS_NOTIFICATION %} mchat-notification-message{% endif %}" data-mchat-id="{{ mchatrow.MCHAT_MESSAGE_ID }}" data-mchat-user-id="{{ mchatrow.MCHAT_USER_ID }}" data-mchat-username="{{ mchatrow.MCHAT_USERNAME | striptags }}"{% if mchatrow.MCHAT_USERNAME_COLOR %} data-mchat-usercolor="{{ mchatrow.MCHAT_USERNAME_COLOR }}"{% endif %} data-mchat-message="{{ mchatrow.MCHAT_MESSAGE_EDIT }}" data-mchat-message-time="{{ mchatrow.MCHAT_MESSAGE_TIME }}"{% if MCHAT_EDIT_DELETE_LIMIT and not MCHAT_EDIT_DELETE_IGNORE and (mchatrow.MCHAT_ALLOW_EDIT or mchatrow.MCHAT_ALLOW_DEL) %} data-mchat-edit-delete-limit="1"{% endif %} {% EVENT dmzx_mchat_message_attributes %}>
	{% if S_MCHAT_AVATARS %}
	<div class="mchat-avatar">
		{% if mchatrow.U_VIEWPROFILE %}<a href="{{ mchatrow.U_VIEWPROFILE }}" title="{{ lang('READ_PROFILE') }}">{% endif %}
		{% if mchatrow.MCHAT_USER_AVATAR %}{{ mchatrow.MCHAT_USER_AVATAR }}{% else %}<img src="{{ STYLE_PATH }}/theme/images/no_avatar.gif" class="mchat-avatar" alt="{{ lang('READ_PROFILE') }}">{% endif %}
		{% if mchatrow.U_VIEWPROFILE %}</a>{% endif %}
	</div>
	{% endif %}
	<div class="mchat-message-wrapper">
		{% INCLUDE '@dmzx_mchat/mchat_messages_icons.html' %}
		<div class="mchat-message-header">
			{% EVENT dmzx_mchat_messages_header_before %}
			{{ mchatrow.MCHAT_USERNAME_FULL }} &bull; <span class="mchat-time" title="{{ mchatrow.MCHAT_DATETIME }}"{% if mchatrow.MCHAT_MINUTES_AGO != -1 %} data-mchat-minutes-ago="{{ mchatrow.MCHAT_MINUTES_AGO }}" data-mchat-relative-update="{{ mchatrow.MCHAT_RELATIVE_UPDATE }}"{% endif %}>{{ mchatrow.MCHAT_TIME }}</span>
			{% EVENT dmzx_mchat_messages_header_after %}
		</div>
		<div class="mchat-text">
			{% EVENT dmzx_mchat_messages_text_before %}
			{{ mchatrow.MCHAT_MESSAGE }}
			{% EVENT dmzx_mchat_messages_text_after %}
		</div>
	</div>
</li>
{%- endfor -%}

{%- EVENT dmzx_mchat_messages_after -%}

User avatar

satedu
Users
Users
Status: Offline
User theme: Dark
Posts: 3
Joined: Dec 27th, '23, 17:50
    Windows 10 Opera

Re: Problem with mChat

Post by satedu »

I have 2.1.4
I have added the code Mention user by clicking on nickname

but I don't have time to chat right now

Image

User avatar

Salva66
Users
Users
Status: Offline
User theme: Dark
Posts: 8
Joined: May 6th, '17, 20:51
    Windows 7 Firefox

Re: Problem with mChat

Post by Salva66 »

Hallo Community!

Gibt es eine Möglichkeit, mChat direkt in der Datenbank zu deaktivieren?

THX 👍

Previous topicNext topic