I have been racking my noggin' over this one.
I follow the customisation instructions according to Freichat.
In hardcode.php I made the following changes.
/* Custom driver */
$usertable='0ry_community_users'; //specifies the name of the table in which your user information is stored.
$row_username='alias'; //specifies the name of the field in which the user's name/display name is stored.
$row_userid='userid'; //specifies the name of the field in which the user's id is stored (usually id or userid)
In PHPMyAdmin > > "0ry_community_users" is the name of the table containing EasySocial users
"alias" is the field in that table containing user name and "userid" is the field containing the user number.
In my template folder file template.php page I changed
$ses=null;
to
$ses=487;
This is the number of my logged in account. So the whole thing reads:
<?php
$ses=487;
if(!function_exists("freichatx_get_hash")){
function freichatx_get_hash($ses){
if(is_file("/home/account/public_html/site/freichat/hardcode.php")){
require "/home/account/public_html/site/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;
}
}
?>
Freichat does not seem to note that I am logged in and sees me as a guest. Why won't it work?
What am I not doing right?