Replace the copy/pasted freichat code with
<script type="text/javascript" language="javascipt" src="http://forumquantum.tk/freichat/client/main.php"></script>
<link rel="stylesheet" href="http://forumquantum.tk/freichat/client/jquery/freichat_themes/freichatcss.php" type="text/css">
After that open freichat/hardcode.php, and replace
$use_cookie=false;
with
$use_cookie=true;
For freichat to recognize logged in users, you need to pass the user's id to it.
So, we first need to save the userid in a PHP COOKIE .
Open index.php
Replace
define('IN_CODOF', true);
with
define('IN_CODOF', true);
if(!isset($_COOKIE['user_id']))
setcookie("user_id", 0);
Open sys/CODOF/User/Login.php
Around line 71, add
Replace
$user->rememberMe();
with
$user->rememberMe();
setcookie("user_id", $user->id);
Open freichat/hardcode.php
Replace
$use_cookie=true;
with
$use_cookie='user_id';
Same file
Replace
/* Custom driver */
$usertable='login'; //specifies the name of the table in which your user information is stored.
$row_username='root'; //specifies the name of the field in which the user's name/display name is stored.
$row_userid='loginid'; //specifies the name of the field in which the user's id is stored (usually id or userid)
with
/* Custom driver */
$usertable='codo_users'; //specifies the name of the table in which your user information is stored.
$row_username='username'; //specifies the name of the field in which the user's name/display name is stored.
$row_userid='id'; //specifies the name of the field in which the user's id is stored (usually id or userid)
It is very important that freichat and codoforum tables are in the same database
Thank's Ron, my problem is that freichat installation get stucked in smart_session, i have acces to the back end, but the installation never finishes, and it doesn't give me a file to install or edit in the codoforum folder.
i installed freichat in other server, for integration with joomla, and in the final step i got a file to be installed in my joomla cms.
But in my codoforum installation, i select custom integration, i did all the steps, but it get stucked in a page that says "loading......" and it never finishes, i tried to install it again several times but it says that it's already installed, i dont have a file to be edited or installed.
thank's
"loading......" and it never finishes,
There are many pages, can you give a screenshot ?
Also, post the contents of your hardcode.php file here.
thank's @adesh1414127033
i dont have the screen, is the previous step befor finishing installation, i know it because i installed freichat with joomla integration in other server, but i saw other person in this forum talking about the same.
but i had solved my problem, i just needed freichat for the moderators, and instead of using freichat i created a private category visible just for the moderators.
Your previous draft for topic is pending
If you continue, your previous draft will be discarded.