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
hi adesh, i don't undestand what to do here, yo said replace the copy pasted freichat code, but where is this code?
Nov 18 '15
@manuelnamarupa Adesh gave you the code above. You need to edit the files he has named and make the changes.
If you do not know how to do this then try looking on the net for how to. Then go your ftp manager files look through the directories find the two files and edit them.
Good luck.
Btw. Make copies of the files before you edit them so if you make a mistake, you can reinstate
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.
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.
@manuelnamarupa bummer, sorry i cannot help but hopefully Adesh when he gets back will be able to answer yours and other questions soon
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
Your previous draft for topic is pending
If you continue, your previous draft will be discarded.