FreiChat related discussions
How to develop/use groupchat in FreiChat?

Hello Friends,

Can anyone please tell me how to use group-chat plugin in Freichat.

Hello Friends, Can anyone please tell me how to use group-chat plugin in Freichat.
edited Nov 3 '15 at 6:03 am

Hi,

You can add people from the toolbox that you get by clicking in the button next to the minimize button.

Hi, You can add people from the toolbox that you get by clicking in the button next to the minimize button.

Thanks for your reply Adesh.

I am unable to get it. I installed the free version of Freichat and i want to test the group chat.

I am attaching my chat window screen please assist me to get it.

5639d644789b6.jpg

Thank you.

Thanks for your reply Adesh. I am unable to get it. I installed the free version of Freichat and i want to test the group chat. I am attaching my chat window screen please assist me to get it. ![5639d644789b6.jpg](serve/attachment&path=5639d644789b6.jpg) Thank you.

The group chat is not avilable in the free version.

You can use the chatroom feature for it.

The group chat is not avilable in the free version. You can use the chatroom feature for it.

Thank you Adesh,

If you have any screenshots of group-chat functionality can you share with me. Before purchase I would like to check whether this functionality will fit into our system or not.

In home website doesn't provide any screenshots about group-chat.

If you are able to provide it great pleasure to me.

Thank you.

Thank you Adesh, If you have any screenshots of group-chat functionality can you share with me. Before purchase I would like to check whether this functionality will fit into our system or not. In home website doesn't provide any screenshots about group-chat. If you are able to provide it great pleasure to me. Thank you.

You can test the group chat feature in our demo website: http:codologic.com/demo

You can test the group chat feature in our demo website: http:codologic.com/demo

Hi Adesh,

Thank you for giving demo link. I logged in with all users at time and tried to use groupchat but I am failed to find the groupchat icon.

I am unable to add the users to single chat window.

5640280250a2c.jpg

Thank you.

Hi Adesh, Thank you for giving demo link. I logged in with all users at time and tried to use groupchat but I am failed to find the groupchat icon. I am unable to add the users to single chat window. ![5640280250a2c.jpg](serve/attachment&path=5640280250a2c.jpg) Thank you.

Sorry about that.

Looks like our demo site is using an old version of freichat.

We will update it and let you know.

Sorry about that. Looks like our demo site is using an old version of freichat. We will update it and let you know.

Thank you for quick clarification.

Can you confirm that there is an option for groupchat (add multiple users to single chat window). Once you confirm we are ready buy it now.

Meanwhile if possible please share some sample screen(s) about groupchat, I can share it with my team and I will purchase it ASAP after your confirmation.

Thank you.

Thank you for quick clarification. Can you confirm that there is an option for groupchat (add multiple users to single chat window). Once you confirm we are ready buy it now. Meanwhile if possible please share some sample screen(s) about groupchat, I can share it with my team and I will purchase it ASAP after your confirmation. Thank you.

Here are some screenshots

5640c93220c2b.png


5640c932920af.png

Here are some screenshots ![5640c93220c2b.png](serve/attachment&path=5640c93220c2b.png) --- ![5640c932920af.png](serve/attachment&path=5640c932920af.png)

Thank you very much adesh.

Can you suggest the package type for our requirement.

Our Requirement:

  1. 1000 members(login members only) can able to chat simultaneously.
  2. Restrict the users in userlist, we need to show users based on our criteria.
  3. Need to create group-chat among 3 to 10 users without any user interaction.
  4. Need to change the usernames(We will not show their original names).

Thank you.

Thank you very much adesh. Can you suggest the package type for our requirement. Our Requirement: ========================== 1. 1000 members(login members only) can able to chat simultaneously. 2. Restrict the users in userlist, we need to show users based on our criteria. 3. Need to create group-chat among 3 to 10 users without any user interaction. 4. Need to change the usernames(We will not show their original names). Thank you.

Need to create group-chat among 3 to 10 users without any user interaction.

Without user interaction ? So it is similar to a chatroom ?

Need to change the usernames(We will not show their original names).

How will you change the names of 1000 users ?
Or do you mean the user should have an option to change their display name ?

>Need to create group-chat among 3 to 10 users without any user interaction. Without user interaction ? So it is similar to a chatroom ? >Need to change the usernames(We will not show their original names). How will you change the names of 1000 users ? Or do you mean the user should have an option to change their display name ?

No, we are not changing 1000 users names at a time, at any time we will show 2 to 3 users in chat list based on our requirement. So we change their display names only.

Can you suggest the filename or code to change their display names without user interaction.

By the way we purchased the platinum license. There you mentioned like that it's only for one domain. Can we use it for localhost and production server.

No, we are not changing 1000 users names at a time, at any time we will show 2 to 3 users in chat list based on our requirement. So we change their display names only. Can you suggest the filename or code to change their display names without user interaction. By the way we purchased the platinum license. There you mentioned like that it's only for one domain. Can we use it for localhost and production server.

Hi Adesh,

We purchased the platinum license package. Install it in my localhost and tried to check group-chat but it showing some error.

Please check the following screens
Fig. 1
=====

56458f5d8b91c.jpg
When I search for "durga" ajax calls are triggered (Fig. 1)

Fig. 2
=====

56458f5e0e91f.jpg
The highlighted calls triggered when I search for keyword "durga" (Fig. 2)

Fig. 3
=====

56458f5e0e922.jpg
But in the response I got an error. Please help me to resolve this issue. (Fig. 3)

Hi Adesh, We purchased the platinum license package. Install it in my localhost and tried to check group-chat but it showing some error. Please check the following screens **_Fig. 1 =====_** ![56458f5d8b91c.jpg](serve/attachment&path=56458f5d8b91c.jpg) When I search for "durga" ajax calls are triggered (Fig. 1) **_Fig. 2 =====_** ![56458f5e0e91f.jpg](serve/attachment&path=56458f5e0e91f.jpg) The highlighted calls triggered when I search for keyword "durga" (Fig. 2) **_Fig. 3 =====_** ![56458f5e0e922.jpg](serve/attachment&path=56458f5e0e922.jpg) But in the response I got an error. Please help me to resolve this issue. (Fig. 3)

Can you suggest the filename or code to change their display names without user interaction.

We have not made an interface for that, so you will need to change it from the database.
If you want, we can give you a sample code to make this easier.

Can we use it for localhost and production server.

Yes, you can.

But in the response I got an error. Please help me to resolve this issue. (Fig. 3)

Can you provide us your FTP details, we will fix that issue for you ?

>Can you suggest the filename or code to change their display names without user interaction. We have not made an interface for that, so you will need to change it from the database. If you want, we can give you a sample code to make this easier. >Can we use it for localhost and production server. Yes, you can. >But in the response I got an error. Please help me to resolve this issue. (Fig. 3) Can you provide us your FTP details, we will fix that issue for you ?
edited Nov 14 '15 at 7:43 pm

We have not made an interface for that, so you will need to change it from the database.
If you want, we can give you a sample code to make this easier.

I done small changes in freichat.php and get the result however I want.

Can you provide us your FTP details, we will fix that issue for you ?

Still we are using it in localhost only.

If possible send me the updated file to my email or paste the code here.

I can update it in my local server.

One more important issue:
1.) We purchase freichat with production server domain name.
2.) Before moving/install it in production we want to test it in Test server, for that we move the freichat module to test server and done the database changes in hardcode.php.
3.) Chat window showing perfectly but users list not loading. In firebug it's showing localhost url and cross-orgin error.

Please see the error in below image

5649f19c8b17d.png

Thanks.

> We have not made an interface for that, so you will need to change it from the database. If you want, we can give you a sample code to make this easier. I done small changes in freichat.php and get the result however I want. > Can you provide us your FTP details, we will fix that issue for you ? Still we are using it in localhost only. If possible send me the updated file to my email or paste the code here. I can update it in my local server. One more important issue: 1.) We purchase freichat with production server domain name. 2.) Before moving/install it in production we want to test it in Test server, for that we move the freichat module to test server and done the database changes in hardcode.php. 3.) Chat window showing perfectly but users list not loading. In firebug it's showing localhost url and cross-orgin error. Please see the error in below image ![5649f19c8b17d.png](serve/attachment&path=5649f19c8b17d.png) Thanks.
edited Nov 16 '15 at 3:09 pm

To fix that error (Fig. 3)

Open freichat/server/drivers/base.php and add the following method:

    public function search_users($keyword = '') {

        $arr = array();

        if($keyword != '') {

            $arr = array(":word" => "$keyword%");            
            $keyword = 'WHERE u.name LIKE :word';
        }

        $qry = 'SELECT u.name AS username, u.uid AS userid,f.status FROM ' . DBprefix . 'users AS u'
                . ' LEFT JOIN frei_session AS f ON u.uid=f.session_id'
                . ' ' . $keyword;

        $stmt = $this->db->prepare($qry);
        //echo $qry;
        $stmt->execute($arr);

        return $stmt->fetchAll();

    }

3.) Chat window showing perfectly but users list not loading. In firebug it's showing localhost url and cross-orgin error.

What is the url of your website in the browser ?
Is it http://localhost/xyz or maybe you are loading https://localhost/xyz

It can happen if you installed freichat using http, then loaded your website using https
But normally, freichat would have auto-corrected this problem.

To fix that error (Fig. 3) Open freichat/server/drivers/base.php and add the following method: ``` public function search_users($keyword = '') { $arr = array(); if($keyword != '') { $arr = array(":word" => "$keyword%"); $keyword = 'WHERE u.name LIKE :word'; } $qry = 'SELECT u.name AS username, u.uid AS userid,f.status FROM ' . DBprefix . 'users AS u' . ' LEFT JOIN frei_session AS f ON u.uid=f.session_id' . ' ' . $keyword; $stmt = $this->db->prepare($qry); //echo $qry; $stmt->execute($arr); return $stmt->fetchAll(); } ``` >3.) Chat window showing perfectly but users list not loading. In firebug it's showing localhost url and cross-orgin error. What is the url of your website in the browser ? Is it http://localhost/xyz or maybe you are loading https://localhost/xyz It can happen if you installed freichat using http, then loaded your website using https But normally, freichat would have auto-corrected this problem.

What is the url of your website in the browser ?
Is it http://localhost/xyz or maybe you are loading https://localhost/xyz

Currently we are using http only (in server and localhost).

> What is the url of your website in the browser ? Is it http://localhost/xyz or maybe you are loading https://localhost/xyz Currently we are using http only (in server and localhost).

Thats strange.

There is no other reason for that error other than loading freichat from a different domain.

The only case I have seen such an error happening is when you load the website using file:// instead of http://

Thats strange. There is no other reason for that error other than loading freichat from a different domain. The only case I have seen such an error happening is when you load the website using file:// instead of http://

3.) Chat window showing perfectly but users list not loading. In firebug it's showing localhost url and cross-orgin error.

Sorry Adesh, It's our mistake.
We forgot to replace the url in header script, where the <domain_url>/main.php?xxxx url calls.

Open freichat/server/drivers/base.php and add the following method:

Thanks for giving the code, now group-chat working perfectly but if I close the group-chat window I am unable to re-open it. Again i need to add people to chat window.

How can I close/re-open group-chat window without adding people again and again.

&amp;gt; 3.) Chat window showing perfectly but users list not loading. In firebug it&#039;s showing localhost url and cross-orgin error. Sorry Adesh, It&#039;s our mistake. We forgot to replace the url in header script, where the **&amp;lt;domain_url&amp;gt;/main.php?xxxx** url calls. &amp;gt; Open freichat/server/drivers/base.php and add the following method: Thanks for giving the code, now group-chat working perfectly but if I close the group-chat window I am unable to re-open it. Again i need to add people to chat window. How can I close/re-open group-chat window without adding people again and again.
edited Nov 19 '15 at 6:40 am
12
746
24
4
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