FreiChat related discussions
Is there integration of FreiChat with EasySocial?

I am using EasySocial instead of JomSocial.
How would I integrate FreiChat with EasySocial?E

I am using EasySocial instead of JomSocial. How would I integrate FreiChat with EasySocial?E
edited Oct 16 '15 at 1:50 am

You will have to use the Custom integration option during installation.

You will have to use the Custom integration option during installation.

I have attempted to do so with no success.
I changed the lines in hardcode.php

$usertable='userid'; //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='profile_id'; //specifies the name of the field in which the user's id is stored (usually id or userid)

I added the following code to my template.php page:

<?php
$ses=null;

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;
}
}
?>

Still no avatar. When I am logged in freichat does not know me from Adam. Can anyone make an instructional video for integrating easysocial avatars for freichat.

I have attempted to do so with no success. I changed the lines in hardcode.php ```` $usertable=&#039;userid&#039;; //specifies the name of the table in which your user information is stored. $row_username=&#039;alias&#039;; //specifies the name of the field in which the user&#039;s name/display name is stored. $row_userid=&#039;profile_id&#039;; //specifies the name of the field in which the user&#039;s id is stored (usually id or userid) ```` I added the following code to my template.php page: ```` &amp;lt;?php $ses=null; if(!function_exists(&quot;freichatx_get_hash&quot;)){ function freichatx_get_hash($ses){ if(is_file(&quot;/home/account/public_html/site/freichat/hardcode.php&quot;)){ require &quot;/home/account/public_html/site/freichat/hardcode.php&quot;; $temp_id = $ses . $uid; return md5($temp_id); } else { echo &quot;&amp;lt;script&amp;gt;alert(&#039;module freichatx says: hardcode.php file not found!&#039;);&amp;lt;/script&amp;gt;&quot;; } return 0; } } ?&amp;gt; ```` Still no avatar. When I am logged in freichat does not know me from Adam. Can anyone make an instructional video for integrating easysocial avatars for freichat.
edited Oct 19 '15 at 8:10 pm

Hi,

You have set $ses as null, in following line:

$ses=null;

You need to set it to the userid of the current user.

Hi, You have set $ses as null, in following line: ``` $ses=null; ``` You need to set it to the userid of the current user.

Thank you for your response. I changed the line of code to reflect current user id which is number 486 so I changed the line to:

$ses=486;

This made no difference. I am still "guest-atr" or "guest-atil"

Thank you for your response. I changed the line of code to reflect current user id which is number 486 so I changed the line to: ```` $ses=486; ```` This made no difference. I am still &quot;guest-atr&quot; or &quot;guest-atil&quot;

In hardcode.php
I have 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.
Freichat does not seem to note that I am logged in and sees me as a guest.
What am I not doing right?

Is there a way I can give you FTP access so it can be done?

In hardcode.php I have made the following changes. ```` /* Custom driver */ $usertable=&#039;0ry_community_users&#039;; //specifies the name of the table in which your user information is stored. $row_username=&#039;alias&#039;; //specifies the name of the field in which the user&#039;s name/display name is stored. $row_userid=&#039;userid&#039;; //specifies the name of the field in which the user&#039;s id is stored (usually id or userid) ```` In PHPMyAdmin &amp;gt; &amp;gt; &quot;0ry_community_users&quot; is the name of the table containing EasySocial users &quot;alias&quot; is the field in that table containing user name and &quot;userid&quot; 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. Freichat does not seem to note that I am logged in and sees me as a guest. What am I not doing right? Is there a way I can give you FTP access so it can be done?
edited Oct 22 '15 at 4:10 pm

Hi,

You can send us your FTP details via email.
Include a reference to this topic.

Hi, You can send us your FTP details via email. Include a reference to this topic.

The ftp data was sent this morning 08:17 EST to admin@codologic.com.
Let me know when or if you need anything else.

The ftp data was sent this morning 08:17 EST to admin@codologic.com. Let me know when or if you need anything else.
262
7
2
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft