FreiChat related discussions

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

48
1
mix1981 posted Apr 26 '12 at 2:15 pm

Hi,
I'm trying to use Freichat for creating "private" chatrooms for Joomla users. "Private" means administrator creates chatroom and sets who can access that room.
To achieve this I've created additional table - frei_private__rooms with just two rows - user_id and room_id. This table is to hold information which user is allowed to use witch room.
IF THERE ARE NO USERS SET TO PARTICULAR ROOM, THAT MEANS THE ROOM IS PUBLIC.

In original code (/server/freichat.php)I've changed just two SQL Queries:
1st (line about 265)
<?php $query2 = "SELECT r.room_name,r.id as room_id,count(s.id) as online_count
FROM frei_rooms as r
LEFT join frei_session as s
on r.id=s.in_room
where r.id NOT IN (select distinct room_id from frei_private_rooms)
or r.id IN (select room_id from frei_private_rooms where user_id=".$_SESSION[$this->uid . 'usr_ses_id'].")
AND time>" . $this->online_time2 . "
Group BY r.id ORDER BY r.room_order";
?>
And second (line about 545)
<?php $query2 = "SELECT r.room_name,r.id as room_id,count(s.id) as online_count
FROM frei_rooms as r
LEFT join frei_session as s
on r.id=s.in_room
where r.id NOT IN (select distinct room_id from frei_private_rooms) or r.id IN (select room_id from frei_private_rooms where user_id=".$_SESSION[$this->uid . 'usr_ses_id'].")
Group BY r.id ORDER BY r.room_order";
?>
Modified QUERY is to filter just PUBLIC rooms, or that user is assigned to.

And it works pretty well. BUT....
But when user is clicking on different room name, those private rooms are disappearing! What else should I change, or where to look for room function that refreshes room list?

I know this is complicated but if anyone could help me it would be great :)

58
3
mix1981 posted Apr 25 '12 at 7:50 am

Hi,
thank you for avesome chat!

I just have one problem with sending files - file is uploading, sender receives information that file is uploaded (filename [Send successfully!]), link is working (sender can download this file) but receiver sees nothing! No information that any action was taken. No link, no info, nothing.

What could be wrong? When I check database entries that holds all messages, there is no info about uploaded file.

53
2
Wood posted Apr 12 '12 at 4:16 pm

Hello, Thanks for a brilliant addition to my site, but I've got a minor problem.

The chat works everywhere on my site, apart from in the detail Category view in my Phoca gallery component. The weird thing is that it works in the galleries overview and in the detail image view, but is not showing once I enter a category overview.

Would be superb if you found out what's missing :)

http://www.exalted-gaming.com
Social -> Picture galleries
username: Trolly
pw: 1234

When logged in:
working: http://www.exalted-gaming.com/social/picture-galleries
not working: http://www.exalted-gaming.com/social/picture-galleries/portraits/category/1-portrait-images

Also; What is the css code for the usernames in the chatbox, they are all white on white on my end (As links are white), but I'd like to have them visible of course :)

43
1
valgron posted Apr 9 '12 at 6:41 pm

Hi

I have just installed FreiChatX onto my Joomla 2.5 installation, everything seemed to install correctly, but I am getting a strange error.

The chat room window is doubling up and showing across the page???

If you visit http://www.ourbetterlife.co.uk you will see the problem. only shows if you're logged in

Thanks

Carl

48
1
Mekinik posted Apr 8 '12 at 8:23 pm

When putting this onto a site Everything installs fine. I followed the installation instructions even. I used another install of joomla 2.5 just to test this in my test server it installed fine too and was able to see the chat. Now that I am ready to put this to a live website it does not show. Everything is the same between the 2 test and live shy of content. I used the same position for the chat as I did on my test install. I do not see any errors or anything. It just does not show in my site.

Any help would be great.

Once I can get this to install correctly I can move everything to the live server.


Ok sorry there is an error I just rechecked everything. This is the following error I get:
www.registryrocket.com : server does not support RFC 5746, see CVE-2009-3555

If I disable the mod. The error is gone. And Like I have mentioned already this server is the same that I used to test this out on another install of joomla 2.5 so I know the server is setup correctly.

44
2
el_cabong posted Apr 8 '12 at 7:41 am

first off, thanks for this great tool, it has fit in well with my company's new content management system.

I was wondering if there is a way to alter the below code to only show other users that happen to be in the same group, and users can be in multiple groups. the database is called group_users and the fields are group_id and user_id. there is 1 user_id per person, but they can have several group_id values.



found this code @ http://elgghacks.com/customizing-frei-chat/ but cant figure out how to begin editing it to do what i want, thanks for looking

the following gets edited into \freichat\server\drivers\custom.php just after $result = $this->getList();



$query = "SELECT guid_two FROM " . DBprefix . "entity_relationships WHERE guid_one = " . $_SESSION[$this->uid . 'usr_ses_id'] . " AND relationship = 'friend'";
$friendsarray = $this->db->query($query)->fetchAll();

$friends = array();
foreach($friendsarray as $array){
$friends[] = $array[0];
}

if(count($friends) == 0){
$result = array();
}
else{
for($i=0; $i<count if unset array_values></count>

93
2

hi i have looked at ur source codes on freichat plugin & instead of the 3rd party integration of user image i want to use my own website user icon.
i have added a line on server/drivers/freichat.php line no 499.
which i have used $guid to retrive the image of my site user.


$guid = $this->frm_id;
$guest = $res['username'];
$guest = strlen($guest) > 30 ? $this->msubstr($guest, 0, 16) . "..." : $guest;

$img_url = $this->get_statusimg_url($res['status']);

$avatar_url = "http://localhost/upload/2012/03/28/35/profile/$guid.jpg"; //$this->url . "/client/jquery/user.jpeg";

if (isset($res[$this->avatar_field_name])) {

if ($res['avatar'] != null || $res[$this->avatar_field_name] != "") {
$avatar_url = $object->avatar_url($res[$this->avatar_field_name]);
} else {
$avatar_url = "http://localhost/upload/2012/03/28/35/profile/$guid.jpg";
}
}

$guest = str_replace("'", " ", $guest);


Is there some way to retrive the database value of 'to' from the database
'frei_chat' instead of 'from' at line 499.
if so can u pls pls let me know how??

40
1
Martinoz posted Apr 6 '12 at 10:11 am

Hello, I've installed Freichat X 6.3.2 on Joomla 1.5.2 on Community Builder 1.7. I did all the important steps to install the freichat, however after two installations (one for normal joomla, second for joomla with CB) I have the same error.

68
4
vass posted Apr 5 '12 at 12:36 am

Hello
I tried to install the chat several times on WP and joomla. It installs fine no errors but chat isn't showing . On admin panel when I click on "chatrooms" I see this :

WP - array(9) { ["freiload"]=> string(9) "chatrooms" ["ASB_nickname"]=> string(4) "test" ["PHPSESSID"]=> string(26) "16o7rmdtfu2b0pdpv7qmgr8o67" ["wp-settings-1"]=> string(14) "editor=tinymce" ["wp-settings-time-1"]=> string(10) "1333579018" ["wordpress_test_cookie"]=> string(15) "WP Cookie check" ["wordpress_logged_in_5c01a2d6934d976daaa555e22f7f92de"]=> string(49) "admin|1333753295|62be49b5a6bc5f779ec2b6e9c336dd0a" ["57a7a57872b40fe2574da1d4482abc76"]=> string(32) "8e734b2766814ee1ba3a616cd2d8c864" ["ea966d5f8a15795f6bd20dca9ea4f987"]=> string(32) "339cf06919967f31ce1b3d00b037a754" } requested loadable could not be found!

Joomla - array(4) { ["freiload"]=> string(9) "chatrooms" ["ASB_nickname"]=> string(4) "test" ["PHPSESSID"]=> string(26) "oc243737gbvg9u1m56reesv4g0" ["57a7a57872b40fe2574da1d4482abc76"]=> string(26) "l13cpatq62t3a7tfn8d6e47uo4" } requested loadable could not be found!


What is wrong with it ?

Thanks

34
1
johnnysassoli posted Apr 3 '12 at 1:44 pm

"Error! Could not find an XML setup file in the package."

this occur either from CB install plugin and Joomla istall plugin panels

i tried latest versione and version 3.5

please can you help me?

johnny

73
5

My Problem is, that at the Beginning the history works normal, but after 50-100 Posts it gets confused. It begins to summarize the posts by names instead of sorting by time when its posted.

I am using Joomla 1.7 and FreichatX 6.2
Do you have an Idea?

The Site www.cyspace.eu

74
1
Tripeo posted Apr 2 '12 at 4:30 pm

Hi there
I have just installed the module but its not showing on my site.

Here is what I have..
http://s19.postimage.org/i02jbz41f/print.png

My site is: www.tripeord.com

66
3

I used Freichat on a few websites -no problems, or I was always getting a perfect support. Just a beautiful chat solution.
And now I have a problem that i cannot resolve no matter what I do.
I'm trying to install FreichatX, the latest version (tried the previous one - same thing), and all I'm getting after I accept license agreement on the first page is this message:
403 Permission Denied
You do not have permission for this request /freichat/installation/specific.php?1333471659=true
Please, help me - I don't know how to get around this message. Changing permissions on any files just produces different errors.
Thank you.

78
12

Hi,

I´m still having issues with the avatar thumb not showing except when I´m on the frontpage.

My setup is Joomla 2.5 with JomSocial 2.4.2

I also found out that file-sharing doesn´t work.
I can send files correctly but when the reciever clicks on the file-link this happens:

The link goes to: http://www.mysite.com/freichat/client/plugins/upload/download.php?filename=

with the message: Sorry, the file doesn't seem to exist.

Pls advice.


Brgds

80
2
Borgweare posted Mar 31 '12 at 3:04 am

Hi there,
Can some one help figure out this problem,
have just installed FreiChatX 6.3.2 and the Instant Messaging
and chat room show up but when I log into my site the Instant Messaging
shows no users online.
The Chat room shows my full name but would like it to show user names
only.
http://www.classiccortina.co.nz/classic/
Thanks

42
1
dhwani posted Mar 28 '12 at 6:25 am

On first time chat,on other side when pop up comes of chat, its does not show name in chat box.

What can be the problem? And what can be the solution?
Please help me as soon as possible.

Thank you.

50
2
divin3hack3rz posted Mar 27 '12 at 9:39 pm

i installed freichat on my website but it seems to be not working it the messages that i send are received only sometimes and that too only if i refresh the page plz help me configure it my website is at www.divin3hack3rz.in i am not using anything like jhoomla etc i am working totally on php with sessions and mysql database........plz help me fix it

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