Closed (fixed)
Project:
phpFreeChat integration
Version:
4.7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
25 Jun 2007 at 02:01 UTC
Updated:
1 Dec 2008 at 05:43 UTC
I would like add a comma separated list of active channels with links under the 'who is chatting' block in Drupal 4.7.x. Any hint on how to do it?
Comments
Comment #1
jasonwhat commentedAlong these lines, where are the list of channels? I don't know how to get users into channels so they can keep chat going while moving around the site. Seems like a block would be the place for this, but at any rate, I have no idea how to find the sitewide chat rooms.
Comment #2
udvranto commentedJason,
I guess you can not create a site wide chatroom. You can have nodes with chats, accessible from any where in the site.
My requirement is similar to yours. I am approaching the problem by adding chatroom name just under the "Chat room users" (or something similar) block. Or another approach could be to add a new block just to display the available chatrooms and number of users in it.
Comment #3
udvranto commentedI solved the problem partially. I added another block for active channels. But I would like to add a link to the correct node where the channel is. I don't know how to do it.
Heres is the modified phpfreechat_block function
Comment #4
udvranto commentedThere is a small correction. I don't know why it is happening, but the $params['channels'] is not and array! That why I did what I did in my previous code. I have only one active channel.
Comment #5
udvranto commentedAlright this one works perfectly
Comment #6
udvranto commentedA patch
Comment #7
udvranto commentedThis is an update. Another block is added for unique users
Comment #8
permutations commentedThe current version uploaded today (5.x-1.2) has a block that lists people who are chatting.