FreiChat related discussions

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

201
1

I have installed Freichat in my personal site through customized option. But I'm getting the following error:

Could not authenticate user . Please verify your edited copy-paste code and make any required changes

My code snippet is as follows:

if(isset($_SESSION["user_id"]))
{ 
    //echo "select user_id from user_account_master where SGM_MEM_ID='".$_SESSION["user_id"]."'";
    $q10=mysql_query("select user_id from user_account_master where SGM_MEM_ID='".$_SESSION["user_id"]."'");
    $r10=mysql_fetch_array($q10);
    $ses=$r10["user_id"]; //tell freichat the userid of the current user
//echo "Session User".$r10["user_id"];
    setcookie("freichat_user", "LOGGED_IN", time()+3600, "/"); // *do not change -> freichat code
}
else {
    $ses = null; //tell freichat that the current user is a guest
//echo "Guest";
    setcookie("freichat_user", null, time()+3600, "/"); // *do not change -> freichat code
}
//$ses=null;
echo "Test".$ses;

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

       if(is_file("/home/simplyge/public_html/test/freichat/hardcode.php")){

               require "/home/simplyge/public_html/test/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;
}
}

Please help.

354
6
tt posted Nov 21 '15 at 1:22 pm

Hi

I found another topic about how someone can show the date also in the chat..
http://codologic.com/forum/index.php?u=/topic/3756/how-to-show-the-chat-date

However I opened the plugins.js file and I cannot find the function you mention.

Also is it possible when sending the conversation from a private chat to show the date/time also. Now it shows nothing.

Thanks in advance.

recent by dm  ·  Nov 28 '15 at 6:33 am
368
4
wireframe posted Nov 19 '15 at 11:41 am

i need to integrate freichat application in multiple domains.

for example:

main domain : http://example.com
subdomains : http:one.example.com,http:two.example.com...etc

chatting functionality in main domain between users or guests is working fine, but in subdomains, I am getting a message called "You are banned" i tried to fix it in custom.php and friechat.php.

Please help me anyone.

thanks in advance.

recent by wireframe  ·  Nov 24 '15 at 6:57 am
166
0

Hi,

I am new to Freichat, can anyone tell me how to make it as Drupal 7 module.

I want to restrict the chat display to required pages only.

Steps I have done so far

  1. Downloaded Freichat module and placed in sites/all/modules/
  2. Completed the installation successfully as per guide.
  3. Now chat is working perfectly but its visible in all pages. I want to restrict the chat visibility to required pages only.

Thank you.

297
8

I have two issues. I will deal with the easy one first.

Problem 1

My custom setup is using the gravatar system to obtain member images as opposed to storing them in the database. Unfortunately, although you have integrated your default system with gravatar, you don't connect it to the members email column in the database and return gravatar images by default. Instead its either - connect to a database that stores user images, or use random gravatars.

So what I want to know is how can I pass an email variable to server/freichat.php so we can correctly call the images. I have tried with my limited php knowledge to call the database directly from freichat.php but it seems doing so, causes the script to stop working (simple mysql_query statement).

So that is problem one.

Problem 2:

Problem two is more complex, because I am not sure how easily your system can integrate with what I have. I want to integrate the chat with our custom friend list. The friend list uses the following table setup:

username, friendname, friend-status

username is matched to $_SESSION[user] and if the friend-status is 2 the users are connected as friends, 1 and 0 are pending statuses.

$_SESSION[user] is not the same as $_SESSION[userid] wihich $ses is set to.

So I am not sure how to go about making this work... if I can at all.

108
1
Bruce Bates posted Nov 11 '15 at 4:00 am

Okay so friend integration,

I have a table called social_friend
It has 3 colums:

username - friendname - friend_status

A typical call looks something like:

SELECT friendname FROM social_friend WHERE username = $_SESSION[user] AND friend_status='2'

Now keeping in mind I have a JOIN statement already going on for the avatars, it seems 2 JOIN's are needed on the get_buddies function.

I am obviously not very good at this because my attempts, fail:

Heres what I was trying:

            $query = "SELECT DISTINCT f.status_mesg,f.username,f.session_id,f.status,f.guest,f.in_room,u.email,a.username,a.friendname,a.friend_status
                   FROM frei_session AS f
                   JOIN LEFT members AS u ON f.session_id=u.Id
                   JOIN LEFT social_friend AS a ON u.username=a.username
                  WHERE f.time>" . $this->online_time2 . "
                   AND f.session_id!=" . $_SESSION[$this->uid . 'usr_ses_id'] . "
                   AND f.status!=2
                   AND f.status!=0
                   AND f.guest=0
                   AND f.username=a.username
                   AND a.friend_status=2";

This isn't working. What am I doing wrong here?

379
8
jenthorn posted Nov 9 '15 at 11:32 pm

Hello,
Freichat was installed onto my website and now things are not working correctly. Some areas of the website are not clickable anymore and the forum is completely unusable. I don't know if it's something to do with the coding process or integration with Dolphin or if there's something wrong with Dolphin now, lol. At any rate, I'm having all sorts of problems now.

Also, sometimes the chat loads when the home page is clicked and sometimes it doesn't. There are several "guests" logged into the chat that I have no idea where they are coming from. They are just coming and going and coming and going. I only want to set it up to be usable by my registered users... However, if I choose that setting in administration, the entire Freichat goes down and doesn't come on at all.

At any rate, if you have any ideas as to what you think the problems are stemming from, please let me know. Many thanks! smile

161
3
drake2k posted Oct 26 '15 at 7:08 am

After installing Freichat V.10 I'm getting Max Connection errors in MySQL and have to wait for an hour before it will let me re-connect to my website.

I looked over the forums for any solutions. One of which was to increase the 75k limit for connections but that's not an option on shared hosting plans unless you want to pay a lot of money. I also noticed that the requests for help were for older versions of Freichat. There was one comment about changing something with persistence in a new version but I'm on 10 as stated. Does anyone know of any work around that can keep this from happening?

Joomla 3.4.5
Freichat 10
Freichat Plugin v7
php 5.5.22
MySql 5.5.43

recent by drake2k  ·  Nov 4 '15 at 4:00 am
138
2
neo191987 posted Oct 28 '15 at 7:10 am

Hello I have a bilingual website in Bulgarian and English and want to do the following: when the site is in Bulgarian and chat is Bulgarian, when the English also be chatting in English. Is it possible to do that?

recent by neo191987  ·  Oct 31 '15 at 7:52 am
167
2
webmaisterpro posted Mar 14 '14 at 5:25 am

Hi Codologic team,

My name is Kaloyan Banev and I am owner of social network based on Joomla and EasySocial. I can see that CommunityBuilder and JomSocial are included in the list for integration, but EasySocial integration isn't.

Actually, I didn't had any problem to set custom integration, but I think listing EasySocial will reduce the confusion.

Kind regards
Kal

196
5

Hello,

I have "Disable FreiChat for guests ?" set to Yes on Freichat configuration, and today one of the users received a message from a Guest user.
It is a Joomla/Jomsocial integration.

I've checked the freichat_session table, and among other records I've found:
id, username, time, session_id, permanent_id, status, status_mesg, guest, in_room
65968, Convidado-arfm, 1443481956, 1443823634, 1443823634, 1, Eu estou disponível, 1, -1
65967, Convidado-1sk, 1443481406, 1443828676, 1443828676, 1, Eu estou disponível, 1, -1

Those are guest users, (guest = 1).
How can that be? The whole site is for members only... they access Freichat only after logging in.
Is there any URL that would grant access to Freichat without logging in?

Please help,
Thanks

293
1

I was attempting to install the latest Freichat on Joomla 3.3.6 I had to trash the old module and even deleted the module from the folder on my site. I started a fresh installation which went smoothly until I installed mod_freichat_v7.zip which cannot be seen in my module list. It is there in the module folder but not seen in the Module manager.

What do I do here?

124
2
nurul.chamidah posted Oct 5 '15 at 7:22 am

i am installed freichat on customized website in localhost. whenever i am not logged in in two different browser, it will work as guest to guest chat. but if i logged in,, it is not showing online user, only getting list of online user.
i've read some post forum earlier. and i've tried to press f12, network, select any request. and this is the result

<br />
<b>Fatal error</b>:  Call to a member function rowCount() on a non-object in <b>C:\xampp\htdocs\freichat\server\drivers\base.php</b> on line <b>215</b><br />

but after i check at that file, it only counting banned user. how i can fix this problem? thanks

1.31k
6.08k
20
Actions
Hide topic messages
Enable infinite scrolling
Previous
1 ... 78910111213 ... 66
Next
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft