Hi and thank you in advance...long time freichat fan.
i gave a site (mmorpg game) that i am preparing, and i wanted top integrate this script. i have went through the setup procedures at the end i pasted
<!--===========================FreiChat=======START=========================-->
<!-- 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 -->
<?php
$ses=null;
if(!function_exists("freichatx_get_hash"
){
function freichatx_get_hash($ses){
if(is_file("/home/techsup0/public_html/fre/hardcode.php")){
require "/home/techsup0/public_html/fre/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://yyzblog.com/fre/client/main.php?id=<?php echo $ses;?>&xhash=<?php echo freichatx_get_hash($ses); ?>"></script>
<link rel="stylesheet" href="http://yyzblog.com/fre/client/jquery/freichat_themes/freichatcss.php" type="text/css">
<!--===========================FreiChatX=======END=========================-->
in the index.php... but it only shows the chat menu on guest and only at the login screen... know where else on the site .
and the second
if(USER_IS_LOGGED_IN)
{
$ses = LOGGED_IN_USERID; //tell freichat the userid of the current user
setcookie("freichat_user", "LOGGED_IN", time()+3600, "/"); // *do not change -> freichat code
}
else {
$ses = null; //tell freichat that the current user is a guest
setcookie("freichat_user", null, time()+3600, "/"); // *do not change -> freichat code
}
this one i wasnt too clear were to place it........
......
May you please help