FreiChat related discussions
Positioning chat room in web site visitors area

My web site has a member area in the visitors area for those who have signed up and an admin area which has CMS and where freiChat has been installed. After installation of the software, what will I do so that at the visitors end of my web site

1. Visitors can see the chat room page only and see those in the chat room, type message and click the usual Send button and get responses from fellow chatting members?

2. Visitors will not be able to see any other components of the freiChat software like those used to set up the software in the admin end (CMS) of my web site?

3. Visitors can sign in with the username and password they submitted when they signed up on my web site and gain access directly to the chat room like Facebook without having to register again for chatting separately?

Lastly, please who is a guest, and a user? These are one of the specifications in the freiChat software set up.

My web site has a member area in the visitors area for those who have signed up and an admin area which has CMS and where freiChat has been installed. After installation of the software, what will I do so that at the visitors end of my web site 1. Visitors can see the chat room page only and see those in the chat room, type message and click the usual Send button and get responses from fellow chatting members? 2. Visitors will not be able to see any other components of the freiChat software like those used to set up the software in the admin end (CMS) of my web site? 3. Visitors can sign in with the username and password they submitted when they signed up on my web site and gain access directly to the chat room like Facebook without having to register again for chatting separately? Lastly, please who is a guest, and a user? These are one of the specifications in the freiChat software set up.
1. Visitors can see the chat room page only and see those in the chat room, type message and click the usual Send button and get responses from fellow chatting members?

What do you mean by chatroom page , have you created any separate page
for chatroom ?
I would like to know the present status of FreiChat, it would be great if you
could give me your website url , so that i can know what exactly are you
talking about .

2. Visitors will not be able to see any other components of the freiChat software like those used to set up the software in the admin end (CMS) of my web site?

No one can see the FreiChatX backend without the password you set during
installation .

3. Visitors can sign in with the username and password they submitted when they signed up on my web site and gain access directly to the chat room like Facebook without having to register again for chatting separately?

They do not have to register separately , when ever a user signs in , he is
automatically logged in the chat .

Lastly, please who is a guest, and a user?

Guest is the one who has not yet logged in / registered in your website .
User is the one who has logged in your website .
<em>1. Visitors can see the chat room page only and see those in the chat room, type message and click the usual Send button and get responses from fellow chatting members?</em> What do you mean by chatroom page , have you created any separate page for chatroom ? I would like to know the present status of FreiChat, it would be great if you could give me your website url , so that i can know what exactly are you talking about . <em> 2. Visitors will not be able to see any other components of the freiChat software like those used to set up the software in the admin end (CMS) of my web site? </em> No one can see the FreiChatX backend without the password you set during installation . <em>3. Visitors can sign in with the username and password they submitted when they signed up on my web site and gain access directly to the chat room like Facebook without having to register again for chatting separately?</em> They do not have to register separately , when ever a user signs in , he is automatically logged in the chat . <em>Lastly, please who is a guest, and a user? </em> Guest is the one who has not yet logged in / registered in your website . User is the one who has logged in your website .
Necessity is the mother of all inventions!

The URL of my site is www.victolaytechnologies.com. Currently, the set up for freichat chatting is in the following URL- www.victolaytechnologies.com/admin/freichat/index.php. I want users to sign in on my home page and be able to use the username and password they used to sign up to access the freichat chat room that will be there directly. Where freichat is currently is my site, it is asking users to log in before chatting which i want to avoid. I would also like to know how the chat room will be set up to appear in my site's visitors member area and not where it is in admin.

The URL of my site is www.victolaytechnologies.com. Currently, the set up for freichat chatting is in the following URL- www.victolaytechnologies.com/admin/freichat/index.php. I want users to sign in on my home page and be able to use the username and password they used to sign up to access the freichat chat room that will be there directly. Where freichat is currently is my site, it is asking users to log in before chatting which i want to avoid. I would also like to know how the chat room will be set up to appear in my site's visitors member area and not where it is in admin.

the chat is not installed in your site yet?
you are using a custom site so please follow the instructions below,
http://evnix.com/drupal2/node/328

the chat is not installed in your site yet? you are using a custom site so please follow the instructions below, http://evnix.com/drupal2/node/328
Necessity is the mother of all inventions!

Thanks for your last assistance. I have modified the scripts up to the extent required for installation of basic custom driver according to your instruction. What I am getting can be viewed by following these steps:

1. Go to URL www.victolaytechnologies.com/social_networking/index.php
2. Enter username: user11
3. Enter password: pass11
4. Submit
5. Click chat room link at the bottom of the page that is displayed (Ignore those warnings on the page. The associated tables are not yet in my database and they are in no way connected with your chatting scripts.)

This will show you what I am getting now when you log in which is still the same thing with what I got before I modified the scripts according to your instruction. I want it to display that username user11 in the chatting space as the person currently in the chat room but what it displays is the guest’s code when I type message in the typing box.
I have a table in my database named member_logs with columns log_id and username among others. When you log in, the username is stored in the username column and a log_id is automatically generated which is the userid in your example. I assigned them to the following variables in arg.php script as you instructed:

$usertable=’member_logs’
$row_username='username'
$row_userid='log_id'


I also made the appropriate changes in the freichat index.php file as follows:

$ses = null;
if(isset($_SESSION['username'])){
if($_SESSION['username'] != null)
{
$ses=$_SESSION['username']
}
}

The $_SESSION['username'] holds the unique username used to log in. I stopped at the end of your second step where one is expected to have completed the basic installation for Custom driver. What I am getting in my site’s chatting page is not different from what i got originally. The username is not showing in the chatting space. I would like it to display a list of users in the chat room in terms of usernames so that a fellow chatters can choose from the list of usernames who to chat with.

I noticed that frieChat script still retrieves automatically generated guest codes or ID from frei_chat table for onward display in the chatting space of my site’s chatting page in spite of my selecting Show Users as against Guests in the frieChat admin section of setting client-side parameters. How will freichat script retrieve usernames from member_logs table and display them in the chatting space instead of the guest codes from the frei_chat table considering the fact that I have added the your suggested script to freiChat index.php and arg.php?

Currently, chat space in my web site appears momentarily and disappears until you place mouse over a partially hidden chat icon. How will the situation be reversed so that the whole chatting space can show and stay as soon as you open the chatting space on my site?

What are buddies?

Is the installation of basic custom chat enough to start chatting at all or you have to complete the advanced custom installation procedure in your instruction?

The freiChat admin was installed in www.victolaytechnologies.com/admin/freichat/administrator/index.php and the password is still adminpass.

Thanks.



Thanks for your last assistance. I have modified the scripts up to the extent required for installation of basic custom driver according to your instruction. What I am getting can be viewed by following these steps: 1. Go to URL www.victolaytechnologies.com/social_networking/index.php 2. Enter username: user11 3. Enter password: pass11 4. Submit 5. Click chat room link at the bottom of the page that is displayed (Ignore those warnings on the page. The associated tables are not yet in my database and they are in no way connected with your chatting scripts.) This will show you what I am getting now when you log in which is still the same thing with what I got before I modified the scripts according to your instruction. I want it to display that username user11 in the chatting space as the person currently in the chat room but what it displays is the guest’s code when I type message in the typing box. I have a table in my database named member_logs with columns log_id and username among others. When you log in, the username is stored in the username column and a log_id is automatically generated which is the userid in your example. I assigned them to the following variables in arg.php script as you instructed: $usertable=’member_logs’ $row_username='username' $row_userid='log_id' I also made the appropriate changes in the freichat index.php file as follows: $ses = null; if(isset($_SESSION['username'])){ if($_SESSION['username'] != null) { $ses=$_SESSION['username'] } } The $_SESSION['username'] holds the unique username used to log in. I stopped at the end of your second step where one is expected to have completed the basic installation for Custom driver. What I am getting in my site’s chatting page is not different from what i got originally. The username is not showing in the chatting space. I would like it to display a list of users in the chat room in terms of usernames so that a fellow chatters can choose from the list of usernames who to chat with. I noticed that frieChat script still retrieves automatically generated guest codes or ID from frei_chat table for onward display in the chatting space of my site’s chatting page in spite of my selecting Show Users as against Guests in the frieChat admin section of setting client-side parameters. How will freichat script retrieve usernames from member_logs table and display them in the chatting space instead of the guest codes from the frei_chat table considering the fact that I have added the your suggested script to freiChat index.php and arg.php? Currently, chat space in my web site appears momentarily and disappears until you place mouse over a partially hidden chat icon. How will the situation be reversed so that the whole chatting space can show and stay as soon as you open the chatting space on my site? What are buddies? Is the installation of basic custom chat enough to start chatting at all or you have to complete the advanced custom installation procedure in your instruction? The freiChat admin was installed in www.victolaytechnologies.com/admin/freichat/administrator/index.php and the password is still adminpass. Thanks.
The $_SESSION['username'] holds the unique username used to log in.

we need the unique ID and not the USERNAME.

Currently, chat space in my web site appears momentarily and disappears until you place mouse over a partially hidden chat icon. How will the situation be reversed so that the whole chatting space can show and stay as soon as you open the chatting space on my site?

I don't know what are you trying to explain, FreiChatX works similar to Facebook/Gmail Chat, it simply doesn't need a separate page.

What are buddies?

They are similar to friends in Facebook.
<blockquote>The $_SESSION['username'] holds the unique username used to log in.</blockquote> we need the unique ID and <strong>not</strong> the USERNAME. <blockquote> Currently, chat space in my web site appears momentarily and disappears until you place mouse over a partially hidden chat icon. How will the situation be reversed so that the whole chatting space can show and stay as soon as you open the chatting space on my site?</blockquote> I don't know what are you trying to explain, FreiChatX works similar to Facebook/Gmail Chat, it simply doesn't need a separate page. <blockquote>What are buddies?</blockquote> They are similar to friends in Facebook.
Necessity is the mother of all inventions!

I am now seeing the usernames in the chatting space as desired since i changed $_SESSION['username'] to $_SESSION['userid'] in freichat index.php file. Please show me the necessary query changes that i need to make in function get_buddies() so that only the buddies of the current user are shown .I have changed the setting to show buddies in FreiChatX admin . The following is my buddies table structure with name friends_annex-



-------------------------------
ID sender receiver
-------------------------------
1 user11 user14
2 user13 user15
3 user11 user16
4 user13 user11
-------------------------------


The table interpretation is as follows-

1. user11 added user14 and user16 as friends

This means that user11,user14 and user16 are friends

2. user13 added user15 and user11 as friends

This means that user13,user15 and user11 are friends.

What is avatar and what role does it play?

I am now seeing the usernames in the chatting space as desired since i changed $_SESSION['username'] to $_SESSION['userid'] in freichat index.php file. Please show me the necessary query changes that i need to make in function get_buddies() so that only the buddies of the current user are shown .I have changed the setting to show buddies in FreiChatX admin . The following is my buddies table structure with name friends_annex- ------------------------------- ID sender receiver ------------------------------- 1 user11 user14 2 user13 user15 3 user11 user16 4 user13 user11 ------------------------------- The table interpretation is as follows- 1. user11 added user14 and user16 as friends This means that user11,user14 and user16 are friends 2. user13 added user15 and user11 as friends This means that user13,user15 and user11 are friends. What is avatar and what role does it play?

you can simply copy the query used in your website to get the friends list, you only need to add the WHERE clause as given in the get_buddies() function.
one more thing, using usernames in "friends" table is totally wrong, you should be using their ID.
Avatar is nothing but your profile picture.

you can simply copy the query used in your website to get the friends list, you only need to add the WHERE clause as given in the get_buddies() function. one more thing, using usernames in "friends" table is totally wrong, you should be using their ID. Avatar is nothing but your profile picture.
Necessity is the mother of all inventions!

Please, do you mean that i should COMPLETELY REPLACE the default query in the get_buddies() function retrieving data from frei_session table with the query i used in my web site (retrieving data from friends_annex table) to get friends list after modifying it with the whole WHERE clause in the default query?

Please, do you mean that i should COMPLETELY REPLACE the default query in the get_buddies() function retrieving data from frei_session table with the query i used in my web site (retrieving data from friends_annex table) to get friends list after modifying it with the whole WHERE clause in the default query?

the default query retrieves only online users, you have to simply modify it to SELECT only his/her friends.

the default query retrieves only online users, you have to simply modify it to SELECT only his/her friends.
Necessity is the mother of all inventions!

The codes inside get_guests(),get_users(),get_buddies() functions in ~/freichat/server/drivers/Custom.php are not running. I enabled PHP debugging and selected the appropriate option (guests,users or buddies) at FreiChatX admin. I confirmed the passiveness of these functions by changing or modifying things like their function names and part of the codes to see if error will be produced. In spite of this, the functions produced the right functionalities in the chat room except for get_buddies() function. I find this irreconciliable.

The codes inside get_guests(),get_users(),get_buddies() functions in ~/freichat/server/drivers/Custom.php are not running. I enabled PHP debugging and selected the appropriate option (guests,users or buddies) at FreiChatX admin. I confirmed the passiveness of these functions by changing or modifying things like their function names and part of the codes to see if error will be produced. In spite of this, the functions produced the right functionalities in the chat room except for get_buddies() function. I find this irreconciliable.

Now I really don't know what the problem is?
After all that explanation you did not mention the problem.
You say these functions don't execute, but without these the chat simply wouldn't run.

Now I really don't know what the problem is? After all that explanation you did not mention the problem. You say these functions don't execute, but without these the chat simply wouldn't run.
Necessity is the mother of all inventions!
167
11
0
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