FreiChat related discussions
FreiChat - Joomla 1.5.26 - problem displaying messages

FreiChat - Joomla 1.5.26 - problem displaying messages

Hi,

***
the problem is the same complained in that other post:
http://codologic.com/page/node/80

clearly the version 5.x is lower than the current, so your advice is not feasible.

• Versione MySQL: 5.1.41
***

first of all congratulations for the great product that you have achieved, is minimal, simple, easy to use and intuitive!
I'd like to only compliments your product, but unfortunately if I write here I have a problem! :)
I installed Joomla 1.5.26 and the latest version of FreiChat 8.1.2 just downloaded.
Finding the problem is with the form (downloaded from this link: http://codologic.com/page/node/1124) is proceeding with the installation manual, I copied this code in the template:

<!--===============FreiChatX========START========================-->
<!-- For uninstalling ME , first remove/comment all FreiChatX related code i.e below code
Then remove FreiChatX tables frei_session & frei_chat if necessary
The best/recommended way is using the module for installation -->

<?php $session = JSession::getInstance("none",array());
$host = JURI::root();
$ses=$session->getId();

if(!function_exists("freichatx_get_hash")){
function freichatx_get_hash($ses){

if(is_file("C:/Programmi/xampp/htdocs/inova/freichat/hardcode.php")){

require "C:/Programmi/xampp/htdocs/inova/freichat/hardcode.php";

$temp_id = $ses . $uid;

return md5($temp_id);

}
else
{
echo "<script>alert('module freichatx says: hardcode.php file not
found!');</script>";
}

return 0;
}
}
?>
<script type="text/javascript" language="javascipt" src="&lt;?php%20echo%20%24host;%20?&gt;freichat/client/main.php?id=&lt;?php%20echo%20%24ses;?&gt;&amp;xhash=&lt;?php%20echo%20freichatx_get_hash(%24ses);%20?&gt;">
</script><link rel="stylesheet" href="&lt;?php%20echo%20%24host;%20?&gt;freichat/client/jquery/freichat_themes/freichatcss.php" type="text/css"><!--===========================FreiChatX=======END=========================-->

There any other specific information ....

• the Joomla system is operating within an intranet, so it is not reachable from the outside.
• I am attaching the error messages that are listed on Firebug (Firefox):

TypeError: $jn.getJSON(...).complete is not a function

TypeError: $jn.getJSON(...).complete is not a function
http://10.139.153.6/inova/freichat/client/main.php?id=tm8slh2roajhtioavtnh2oqb85&xhash=c5a7fd6af5ef5daf6c01722cd70bb451
Line 1082

Can you give me a help for this problem? Are now several days that I focus my attention on this bug!

Thank you in advance for your support!


Best Regards


Luca De Prisco

FreiChat - Joomla 1.5.26 - problem displaying messages Hi, *** the problem is the same complained in that other post: http://codologic.com/page/node/80 clearly the version 5.x is lower than the current, so your advice is not feasible. • Versione MySQL: 5.1.41 *** first of all congratulations for the great product that you have achieved, is minimal, simple, easy to use and intuitive! I&#039;d like to only compliments your product, but unfortunately if I write here I have a problem! :) I installed Joomla 1.5.26 and the latest version of FreiChat 8.1.2 just downloaded. Finding the problem is with the form (downloaded from this link: http://codologic.com/page/node/1124) is proceeding with the installation manual, I copied this code in the template: &amp;lt;!--===============FreiChatX========START========================--&amp;gt; &amp;lt;!-- For uninstalling ME , first remove/comment all FreiChatX related code i.e below code Then remove FreiChatX tables frei_session &amp; frei_chat if necessary The best/recommended way is using the module for installation --&amp;gt; &amp;lt;?php $session = JSession::getInstance(&quot;none&quot;,array()); $host = JURI::root(); $ses=$session-&amp;gt;getId(); if(!function_exists(&quot;freichatx_get_hash&quot;)){ function freichatx_get_hash($ses){ if(is_file(&quot;C:/Programmi/xampp/htdocs/inova/freichat/hardcode.php&quot;)){ require &quot;C:/Programmi/xampp/htdocs/inova/freichat/hardcode.php&quot;; $temp_id = $ses . $uid; return md5($temp_id); } else { echo &quot;&amp;lt;script&amp;gt;alert(&#039;module freichatx says: hardcode.php file not found!&#039;);&amp;lt;/script&amp;gt;&quot;; } return 0; } } ?&amp;gt; &amp;lt;script type=&quot;text/javascript&quot; language=&quot;javascipt&quot; src=&quot;&amp;lt;?php echo $host; ?&amp;gt;freichat/client/main.php?id=&amp;lt;?php echo $ses;?&amp;gt;&amp;xhash=&amp;lt;?php echo freichatx_get_hash($ses); ?&amp;gt;&quot;&amp;gt; &amp;lt;/script&amp;gt; &amp;lt;link rel=&quot;stylesheet&quot; href=&quot;&amp;lt;?php echo $host; ?&amp;gt;freichat/client/jquery/freichat_themes/freichatcss.php&quot; type=&quot;text/css&quot;&amp;gt; &amp;lt;!--===========================FreiChatX=======END=========================--&amp;gt; There any other specific information .... • the Joomla system is operating within an intranet, so it is not reachable from the outside. • I am attaching the error messages that are listed on Firebug (Firefox): TypeError: $jn.getJSON(...).complete is not a function TypeError: $jn.getJSON(...).complete is not a function http://10.139.153.6/inova/freichat/client/main.php?id=tm8slh2roajhtioavtnh2oqb85&amp;xhash=c5a7fd6af5ef5daf6c01722cd70bb451 Line 1082 Can you give me a help for this problem? Are now several days that I focus my attention on this bug! Thank you in advance for your support! Best Regards Luca De Prisco

The error refers to line 1082 on this piece of code:

FreiChat.message_append(data.messages);},'json').complete(function(){FreiChat.RequestCompleted_get_members=true;});}}

The error refers to line 1082 on this piece of code: FreiChat.message_append(data.messages);},&#039;json&#039;).complete(function(){FreiChat.RequestCompleted_get_members=true;});}}

Your website is using an old version of jQuery . If it is possible please update it to a newer version of jquery .

If you cannot do that then you need to replace every instance of

.complete(function(){FreiChat.RequestCompleted_get_members=true;});

with
/*.complete(function(){FreiChat.RequestCompleted_get_members=true;});*/


You will find these lines in freichat/client/freichat.js file

Your website is using an old version of jQuery . If it is possible please update it to a newer version of jquery . If you cannot do that then you need to replace every instance of &amp;lt;code&amp;gt;.complete(function(){FreiChat.RequestCompleted_get_members=true;});&amp;lt;/code&amp;gt; with &amp;lt;code&amp;gt;/*.complete(function(){FreiChat.RequestCompleted_get_members=true;});*/&amp;lt;/code&amp;gt; You will find these lines in freichat/client/freichat.js file
Necessity is the mother of all inventions!

Thank you for your immediate response!
Unfortunately I do not have the ability to upgrade the system, then proceed with the removal of strings you specified.
It 'possible that the freichat/client/freichat.js file I am a single string?

Just find this line 264:

FreiChat.message_append(data.messages);},'json').complete(function(){FreiChat.RequestCompleted_get_members=true;});}}

become

FreiChat.message_append(data.messages);},'json')/*.complete(function(){FreiChat.RequestCompleted_get_members=true;});*/}}

?

Best Regards


Luca

Thank you for your immediate response! Unfortunately I do not have the ability to upgrade the system, then proceed with the removal of strings you specified. It &#039;possible that the freichat/client/freichat.js file I am a single string? Just find this line 264: FreiChat.message_append(data.messages);},&#039;json&#039;).complete(function(){FreiChat.RequestCompleted_get_members=true;});}} become FreiChat.message_append(data.messages);},&#039;json&#039;)/*.complete(function(){FreiChat.RequestCompleted_get_members=true;});*/}} ? Best Regards Luca

I did as you suggest .... unfortunately with negative results!
The best solution seems to be to upgrade the system!

I did as you suggest .... unfortunately with negative results! The best solution seems to be to upgrade the system!

Before doing anything undo any replacements and try the following

Go to freichat/client/jquery/js/jquery.1.8.3.js

And replace

if (typeof jQuery != "undefined") {
// jQuery is loaded
} else {


with

/*if (typeof jQuery != "undefined") {
// jQuery is loaded
} else */{

Before doing anything undo any replacements and try the following Go to freichat/client/jquery/js/jquery.1.8.3.js And replace if (typeof jQuery != &quot;undefined&quot;) { // jQuery is loaded } else { with /*if (typeof jQuery != &quot;undefined&quot;) { // jQuery is loaded } else */{
Necessity is the mother of all inventions!

Legendary!!!!
It works!!
Single little detail and that the chat works only with Firefox and Explorer. With Chrome however does not show the user online (but not those who have Chrome but who has the other browser) ... very strange!
However, endless thanks for their support!

Best Regards

Luca D.

Legendary!!!! It works!! Single little detail and that the chat works only with Firefox and Explorer. With Chrome however does not show the user online (but not those who have Chrome but who has the other browser) ... very strange! However, endless thanks for their support! Best Regards Luca D.

We would like to make it work in chrome too . Do you get any errors in chrome related to freichat ? Is the chatbox blank or does it show "No users online" in chrome ?

We would like to make it work in chrome too . Do you get any errors in chrome related to freichat ? Is the chatbox blank or does it show &quot;No users online&quot; in chrome ?
Necessity is the mother of all inventions!
181
7
0
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft