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 :)
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.
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 :)
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.
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]; }
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.
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??
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.
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 :
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?
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.
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
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