FreiChat related discussions

Got any problems? Then this is the best place for all your questions regarding FreiChat

195
2

When loading users I am getting the following issue

"Getting list of online users ....." on the chat.

I have an asp MD5 function that generates the md5 hash for mem calling md5(ses&id), and I have verified it creates a hex value that when converts back to dec, it is veried as session variable and id (ie: if I do md5(3&3), i get a md5 hex of 182be0c5cdcd5072bb1864cdee4d3d6e ) .

on my frei.inc file, I set cookies for frei_user (hardcode.php value $use_cookie='frei_user'smile the following:

(IF LOGGED IN)
LOGGED_IN = id (the same id as I use above), and expire date dateadd("n",+3600,now())

(NOT LOGGED IN)
cookie is set to empty (null for asp) with expire date of dateadd("n",-3600,now())

[domain here]/freichat/client/main.php?id=[id]&xhash=[md5(ses&id) called here]

PHP version 7.0.9, with mysql, the User table info and Avatar table info, I believe is spelled right in the Hardcode.php file, but would like a second look to verify.

Right now, I have guest function turned off because I only want registered users to have access to the chat and chatroom function.

Admin, I can give more info, if desired. Please advise.

398
7
Wrath posted Sep 7 '16 at 7:46 pm

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"smile){
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!'smile;</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

recent by admin  ·  Nov 26 '17 at 5:42 pm
116
4
staticstate posted Sep 13 '17 at 10:16 pm

Ive been using freichat alot, and was working perfectly. Its still does the only thing that is not working is the sound that plays when you get a new message. It Stoped working like a month ago. i havent made any changes on the files or instalation... Please help.

btw its on an iframe thats why, how do i make it sound inside it?

Mario

recent by Harlekin  ·  Oct 24 '17 at 6:47 pm
174
6
getwriting posted Aug 8 '17 at 5:40 am

Hi there,

I use the latest version of PHP Fusion 7.0.2.06. I notice some issues with Freichat, in relation to some other Infusions that are used on our website.

I'm guessing it's an Ajax or Javascript problem.

One infusion I use is called Nivo Slider. It's an image sliding function, that shuffles images and changes it every so often (you set the duration, like 5 seconds). When Freichat is turned off, Nivo works OK. When Freichat is turned on, Nivo disappears.

The other issue is when dealing with nested/drop down Menus. With Freichat switched on, the Menus don't open out. Nothing happens.

I'm sure there are other breaks as well, but because these two things don't work, using Frechat has become a bit of a showstopper for me.

Our website is: gdm.glorydazemusic.com

Nivo is the SlideDeck at the top of the page.
The Horizontal Menu used to be Nested Menu system, click and it would drop down, but now I've made all the sub-menu objects visible 100% of the time, because Friechat rendered the drop-down function unusable.

Maybe someone at Codologic has some thoughts on this. It's a good app, but at the moment i can't really use it without compromising other parts of the website.

Thanks.

recent by admin  ·  Aug 9 '17 at 7:48 pm
216
1

Hello,

I tried to install freichat after a very long time. I was trying to install freichat on wordpress 4.8 with buddypress installed but the chat was not showing up on front-end even when the provided code at the end of freichat installation was placed in header.php before </head> tag after <?php wp_head(); ?>. I tried to install it twice but the result was same however admin panel of freichat was working properly. Log file was showing entries of current loggedin user being inserted in db table with "I am available" status. Admin panel was showing list of registered users on wordpress.

One more thing, if freichat starts working then how I can make the chat friend only. I have done this before via custom driver but that was a custom php website.

[EDIT]

I tried installing freichat on a wordpress v4.4.10 with nearly the same setup on localserver. The installation wizard entered wrong db prefix "usermeta" in hardcode.php but after fixing it the chat started working. So to confirm again I tried to install freichat on live server but it again failed to show up. Could this problem be related to my VPS? PDO-MYSQL is already installed on my VPS. I have enabled server wide gzip compression & running modpagespeed which is handling server side cache. While URL FOpen, URL Include and following functions are disabled:

exec,passthru,shell_exec,system,proc_open,popen,curl_exec,curl_multi_exec,parse_ini_file,show_source

Best Regards,
Mehroz Anjum

recent by mehroz  ·  Jul 7 '17 at 10:15 pm
150
1
ouslie posted Jul 6 '17 at 2:17 am

Hello,
I've integrated freichat and it's work perfectly.
Now I would like the administrator to write in red and the others in black
I've test this but i don't work perfectly.
Thanks

$db = new Db();
$db->query('SELECT group_id FROM pun_users WHERE username="'.$login.'"');
$role = $db->field();
$db->close();

if($role=="1"){
                        $color = "#F7230C";
                        echo'<link rel="stylesheet" href="http://www.XXX.com/fr/game/tchat/client/jquery/freichat_themes/freichatcssadmin.php" type="text/css">';
                    } else {
                                $color = "#000000";
                                echo'<link rel="stylesheet" href="http://www.XXX.com/fr/game/tchat/client/jquery/freichat_themes/freichatcss.php" type="text/css">';
                                }

if(!function_exists("freichatx_get_hash")){
function freichatx_get_hash($ses){
    if(is_file("/home/XXX/public_html/fr/game/tchat/hardcode.php")){
require "/home/XXX/public_html/fr/game/tchat/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://XXXX/fr/game/tchat/client/main.php?id=<?php echo $ses;?>&xhash=<?php echo freichatx_get_hash($ses); ?>"></script>
recent by ouslie  ·  Jul 6 '17 at 2:20 pm
57
0

I have just downloaded the latest free version from FreiChat,

I have installed on my server and given the code that you can add to the index or template file

I am using the OSDate platform with the FreshDate template i have added the code to the index.tpl but when I check
The preview link all I see is a blank page

And the install script says that the code is missing or not installed.

Where do I need to place the FreiChat code so the it works?

Thanks for any help

146
1

Hi I have installed Freichat I am using OSdate when I login it shows guest user, when I logout it shows my username.

any suggestions on how I can fix this it seems to be backwards

/* FreiChat STARTS HERE */

$ses=$_SESSION['UserId'];

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
}


if($Username_And_Password_Match)
{
   $_SESSION['UserId'] = $users['id']; // Modify to suit your requirements


//$ses = null; // Return null if user is not logged in

if(isset($_SESSION['UserId']))
{
   $ses=$_SESSION['UserId']; //LOOK, now userid will be passed to FreiChat
  }
}


if(!function_exists("freichatx_get_hash"))
{
function freichatx_get_hash(){

       if(is_file("/home/***/thaidating.tk/freichat/hardcode.php")){

               require "/home/***/thaidating.tk/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 ENDS HERE */
93
0
deepaksharma1 posted May 16 '17 at 6:53 am

hello everyone,

i have downloaded freichat but when i try to install friechat on my localhost it asks freichatadminpass when i enter text it does not get processed.

what to do to get installed freichat on localhost in customized

Regards
Deepak Sharma

104
2
tt posted Apr 19 '17 at 10:47 am

Hi

I use Freichat Basic version on Joomla 2.5.28 since Nov. 2015. It seems that when it's activated it creates huge traffic on the server. For example the normal traffic of the site is around 1Mb and with Freichat is increased to 30-40Mb.
I have set it up to be visible only to Registered users which means around 300 max at a given time which is not a big number I guess.
How can I find what the problem is?
Thanks

recent by tt  ·  Apr 20 '17 at 7:42 am
1.33k
6.09k
18
Actions
Hide topic messages
Enable infinite scrolling
Previous
1234567 ... 67
Next
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft