chat installated driver custom
ok
in index.php
error message
alert('module freichatx says: hardcode.php file not found!'
;"; } return 0; } } ?>
solution ???
error message
alert('module freichatx says: hardcode.php file not found!'smile;"; } return 0; } } ?>
solved
Getting list of online users ??????
section Access Control
Moderation
error
Fatal error: Call to a member function fetchAll() on a non-object in /membri/sweteam/freichat/administrator/admin_files/moderate_users/drivers/base.php on line 130
Getting list of online users .........
where I put this code ??
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
}
Hi,
If you have already pasted the previous code that included <script> and <link> tags, then this code will come before that in the same file.
please an example
my header template is
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
}
<head>
<!--===========================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("/membri/sweteam/freichat/hardcode.php")){
require "/membri/sweteam/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://sweteam.altervista.org/freichat/client/main.php?id=<?php echo $ses;?>&xhash=<?php echo freichatx_get_hash($ses); ?>"></script>
<link rel="stylesheet" href="http://sweteam.altervista.org/freichat/client/jquery/freichat_themes/freichatcss.php" type="text/css">
<!--===========================FreiChatX=======END=========================-->
Hi,
You need to modify the code so that $ses stores the userid of current user.
So, instead of
$ses = LOGGED_IN_USERID
it will become
$ses = $vbulletin->GPC['userid'];
Above is according to information given here: http://www.vbulletin.org/forum/showthread.php?t=268340
And for the line
if(USER_IS_LOGGED_IN)
You need to check if the user is logged in or not.
Your previous draft for topic is pending
If you continue, your previous draft will be discarded.