Hi i installed the freichat free version on smf 1.
Im using tinyportal, so i installed the copy&paste code in my index.template.php of my theme.
Bar and chat appear.
The problem is that allways show no one is online.This is my added code in index.template.php
if ($context['user']['is_logged']){
$ses = $context['user']['id'];
}else{
$ses = null;
}
if(!function_exists("freichatx_get_hash")){
function freichatx_get_hash($ses){
if(is_file("/home/clankick/clankick.com/freichat/hardcode.php")){
require "/home/clankick/clankick.com/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;
}
}
echo' <script type="text/javascript" language="javascipt" src="http://www.clankick.com/freichat/client/main.php?id=',%24ses,'&xhash=',freichatx_get_hash(%24ses),'"></script><link rel="stylesheet" href="http://www.clankick.com/freichat/client/jquery/freichat_themes/freichatcss.php" type="text/css">';In hardcode.php
/* Custom driver */
$usertable='members'; //specifies the name of the table in which your user information is stored.
$row_username='posterName'; //specifies the name of the field in which the user's name/display name is stored.
$row_userid='ID_MEMBER'; //specifies the name of the field in which the user's id is stored (usually id or userid)
$avatar_field_name = 'avatar';In database details i added the correct values.
I dont see any users online.If im the only user logged, it said no one online, if i logged with same user in another browser a guest appear, if im logged and another user log, another guest user appear.With same user loged in both browser if a say something in chat a chat pop up in the other browser and can speak with me.
Help me fixing that :D
Hi i installed the freichat free version on smf 1.
Im using tinyportal, so i installed the copy&paste code in my index.template.php of my theme.
Bar and chat appear.
The problem is that allways show no one is online.This is my added code in index.template.php
&lt;code&gt;
if ($context['user']['is_logged']){
$ses = $context['user']['id'];
}else{
$ses = null;
}
if(!function_exists("freichatx_get_hash")){
function freichatx_get_hash($ses){
if(is_file("/home/clankick/clankick.com/freichat/hardcode.php")){
require "/home/clankick/clankick.com/freichat/hardcode.php";
$temp_id = $ses . $uid;
return md5($temp_id);
}
else
{
echo "&lt;script&gt;alert('module freichatx says: hardcode.php file not
found!');&lt;/script&gt;";
}
return 0;
}
}
echo' &lt;script type="text/javascript" language="javascipt" src="http://www.clankick.com/freichat/client/main.php?id=',$ses,'&xhash=',freichatx_get_hash($ses),'"&gt;&lt;/script&gt;
&lt;link rel="stylesheet" href="http://www.clankick.com/freichat/client/jquery/freichat_themes/freichatcss.php" type="text/css"&gt;';
&lt;/code&gt;
In hardcode.php
&lt;code&gt;
/* Custom driver */
$usertable='members'; //specifies the name of the table in which your user information is stored.
$row_username='posterName'; //specifies the name of the field in which the user's name/display name is stored.
$row_userid='ID_MEMBER'; //specifies the name of the field in which the user's id is stored (usually id or userid)
$avatar_field_name = 'avatar';
&lt;/code&gt;
In database details i added the correct values.
I dont see any users online.If im the only user logged, it said no one online, if i logged with same user in another browser a guest appear, if im logged and another user log, another guest user appear.With same user loged in both browser if a say something in chat a chat pop up in the other browser and can speak with me.
Help me fixing that :D