yes, I tried to install Custom installation in freichat but appeared several problems
if put this code I have no problem, all work well.
<?php
$ses=null;
if(!function_exists("freichatx_get_hash")){
function freichatx_get_hash($ses){
if(is_file("/opt/lampp/htdocs/freichat/hardcode.php")){
require "/opt/lampp/htdocs/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="http://localhost/freichat/client/main.php?id=<?php echo $ses;?>&xhash=<?php echo freichatx_get_hash($ses); ?>"></script>
<link rel="stylesheet" href="http://localhost/freichat/client/jquery/freichat_themes/freichatcss.php" type="text/css">
but if I put the code below my site have problems
Parse error: syntax error, unexpected T_STRING in /home/localhost/index.php on line 48
line 48 is this: setcookie('freichat_user", 'LOGGED_IN", time()+3600, '/"); // *do not change -> freichat code
<?php
if(isset($_SESSION['user_id']))
{
$ses = $_SESSION['user_id']
setcookie("freichat_user", "LOGGED_IN", time()+3600, "/");
}
else {
$ses = null;
setcookie("freichat_user", null, time()+3600, "/");
}
if(!function_exists("freichatx_get_hash")){
function freichatx_get_hash($ses){
if(is_file("/opt/lampp/htdocs/freichat/hardcode.php")){
require "/opt/lampp/htdocs/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="http://localhost/freichat/client/main.php?id=<?php echo $ses;?>&xhash=<?php echo freichatx_get_hash($ses); ?>"></script>
<link rel="stylesheet" href="http://localhost/freichat/client/jquery/freichat_themes/freichatcss.php" type="text/css">
<!--===========================FreiChatX=======END=========================-->
yes, I tried to install Custom installation in freichat but appeared several problems
if put this code I have no problem, all work well.
````
&lt;!--===========================FreiChat=======START=========================--&gt;
&lt;!-- For uninstalling ME , first remove/comment all FreiChat related code i.e below code
Then remove FreiChat tables frei_session & frei_chat if necessary
The best/recommended way is using the module for installation --&gt;
&lt;?php
$ses=null;
if(!function_exists("freichatx_get_hash")){
function freichatx_get_hash($ses){
if(is_file("/opt/lampp/htdocs/freichat/hardcode.php")){
require "/opt/lampp/htdocs/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;
}
}
?&gt;
&lt;script type="text/javascript" language="javascipt" src="http://localhost/freichat/client/main.php?id=&lt;?php echo $ses;?&gt;&xhash=&lt;?php echo freichatx_get_hash($ses); ?&gt;"&gt;&lt;/script&gt;
&lt;link rel="stylesheet" href="http://localhost/freichat/client/jquery/freichat_themes/freichatcss.php" type="text/css"&gt;
&lt;!--===========================FreiChatX=======END=========================--&gt;
````
but if I put the code below my site have problems
**Parse error: syntax error, unexpected T_STRING in /home/localhost/index.php on line 48**
line 48 is this: ** setcookie('freichat_user", 'LOGGED_IN", time()+3600, '/"); // *do not change -&gt; freichat code**
````
&lt;?php
if(isset($_SESSION['user_id']))
{
$ses = $_SESSION['user_id'] //tell freichat the userid of the current user
setcookie("freichat_user", "LOGGED_IN", time()+3600, "/"); // *do not change -&gt; freichat code
}
else {
$ses = null; //tell freichat that the current user is a guest
setcookie("freichat_user", null, time()+3600, "/"); // *do not change -&gt; freichat code
}
if(!function_exists("freichatx_get_hash")){
function freichatx_get_hash($ses){
if(is_file("/opt/lampp/htdocs/freichat/hardcode.php")){
require "/opt/lampp/htdocs/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;
}
}
?&gt;
&lt;script type="text/javascript" language="javascipt" src="http://localhost/freichat/client/main.php?id=&lt;?php echo $ses;?&gt;&xhash=&lt;?php echo freichatx_get_hash($ses); ?&gt;"&gt;&lt;/script&gt;
&lt;link rel="stylesheet" href="http://localhost/freichat/client/jquery/freichat_themes/freichatcss.php" type="text/css"&gt;
&lt;!--===========================FreiChatX=======END=========================--&gt;
````