By Josef Wiedring on Saturday, 25 June 2016
Posted in Technical Issues
Likes 0
Views 401
Votes 0
i use Gantry5 Template and want now integrate cometchat cloud.
i insert the following script to: theme.php

// Require the cometchat cloud library
include_once dirname(__FILE__).'/../custom/includes/cometchat.php';

and in cometchat.php this code to include cometchat cloud.

<?php
$chat_id = $chat_name = $chat_avatar = $chat_link = $chat_displayname = '';
$user = JFactory::getUser();
if (!$user->guest) {
$chat_id = $user->id;
$chat_name = $user->username;
$chat_displayname = $user->name;
}
?>
<script>
var chat_id = '<?php echo $chat_id; ?>';
var chat_name = '<?php echo $chat_name; ?>';
var chat_avatar = '<?php echo $chat_avatar; ?>';
var chat_link = '<?php echo $chat_link; ?>';
var chat_displayname = '<?php echo $chat_displayname; ?>';
</script>

now comes the funny thing. if i use this now. then works not the easy social notification module.
if i delete this scripts then works the notification very well.

on attachment you can see the different.
one time with code
one time without code.
Hey there,

I am really sorry for the delay of this reply as it is a weekend for us here.

Can you provide us with your full file path which you added that script as you mentioned at above?
·
Saturday, 25 June 2016 09:56
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for your replay on weekend.
I had read the doc of gantry and ther i should insert te script in theme.php.

The full phath is /templates/g5_hydrogen/includes/theme.php

And the script for cometchat is:
/template/g5_hydrogen/cometchat.php

Have a nice weekend,
And thanks for your help.
·
Saturday, 25 June 2016 16:07
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Josef,

This issue is caused by your Cometchat plugin. They should NEVER force output on the ajax responses as it will break the ajax responses. Please see my screen shot here, http://take.ms/zPOEF
·
Saturday, 25 June 2016 18:40
·
0 Likes
·
0 Votes
·
0 Comments
·
Ok, and now what i can do?
·
Saturday, 25 June 2016 18:49
·
0 Likes
·
0 Votes
·
0 Comments
·
There is nothing that me and you could do. You need to get in touch with Cometchat and get them to fix their own mess.
·
Saturday, 25 June 2016 19:48
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Josef,

We are working on working on a solution and will update you once fixed.

Regards,
CometChat
·
Monday, 27 June 2016 18:58
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks,
I had seen that the integration of the script makes a other problem too:
On mobile divice i cannot scroll down,
if i remove the code then woks the scroll down very well.
·
Monday, 27 June 2016 19:03
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Josef,

We will try to update you with the solution shortly.

Regards,
CometChat
·
Monday, 27 June 2016 19:52
·
0 Likes
·
0 Votes
·
0 Comments
·
Very great thanks
·
Monday, 27 June 2016 19:55
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks CometChat heading up on this.
·
Tuesday, 28 June 2016 12:35
·
0 Likes
·
0 Votes
·
0 Comments
·
the next issues about your script is, that the page "about" will never load.
·
Tuesday, 28 June 2016 14:48
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Josef,

The issue has been fixed. You can refer to the ticket that you have raised for solution.

Regards
CometChat
·
Tuesday, 28 June 2016 22:09
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you for responding to this Cometchat and we appreciate this very much. I will mark this thread as resolved but if Josef should still face any issues with Cometchat, I would suggest that you open a new thread
·
Tuesday, 28 June 2016 22:29
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post