View Juho Jaakkola's plugins
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by Raül Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
this technology is with comet ?
@mariano No, it's based purely on Elgg.
Hi Juno is it posible for all the chat logs to be exported so that the site admin can record them for security purposes.
Thanks
Taner
taner: old friend.. memories fade and remembrances remain entrenched in weary-well-worn-paths for eager-eyes in the mists-that-surround myphpadmin queries code :- ;-P
SELECT `owner_guid`, `container_guid`, `time_created`, `description`
FROM `taner_entities` as e
JOIN `taner_objects_entity` as o
ON o.guid = e.guid
WHERE `type` = 'object'
## 123 = the SubType from your DB, for Juho's 'chat_message'
AND `subtype` = 123
LIMIT 0,999
Then export as Ms Excel to save the jwunkz.
Great job! beautiful chat! thanks a lot )
but why messeges still sends to chat without ajax? (with that feature this chat will be a ideal communication plugin)
@Evgeniy Sending messages with ajax is on my todo list. There's just so much to do and so little time. :)
The code repository is listed in the project info so maybe someone else could fork the repository and work with it.
Also I feel that it would be better to use more effort to extend the Elgg default messages plugin instead of maintaining my own plugin. It's easier to get contributors for something that is already part of the Elgg core. And also that way the extensions may some day become part of the core.
CPU 90% ????????????????
why not use comet?
@mariano The idea of this plugin wasn't originally to provide a real-time chat but instead a more advanced replacement for the elgg messages plugin. I added some basic ajax functinalities just because so many community members were requesting them.
This is why the plugin is based on Elgg libraries and not a third-party chat software. Also this allows the chat features to be easily integrated to other Elgg functionalities (likes, notifications, etc).
i mean this http://en.wikipedia.org/wiki/Comet_(programming)
@mariano Oh, now I got it. I've got to say I'm not familiar with comet and I got that mixed up with a third-party chat software. :)
Sure, would be nice to convert the plugin to use techniques that would allow a more real-time feeling. I wish I would have more time to study and implement this.
Do you have experience on comet techniques? If so, feel free to fork my github repository and propose changes to the plugin. :)
definitely a relaxed chat-plugin, I really like!
well :)
what is the maximum number of people who can login at a time?
@AdMe
I haven't done any performance tests with the plugin. I haven't really done anything to optimize the plugin either so I assume it requires quite much server recources. So I don't recommend using the current version it on very high traffic sites.
What about new version of this beautifull plugin? :)
@Evgeniy I would like to do some enhancements, but I'm currently awfully busy with other projects. It's good that someone is at least reminding me about it! ;) I'll try to get back to this plugin some time in January.
@juho.jaakkola I like your great plugin. Thank you!
But I can't find how to restrict call notifier.php for non-members via chat's JS providing in views\default\js\chat\chat.php :(
I mean: if user is a non-member of any chat then no need to notify about new messages every time.
How can to do it?
And thanks again !
@rivervanrain Did I understand right, that you would like to disable the automatic AJAX checking completely in case user is not a member of any chat on page load?
One way could be to divide the AJAX check to it's own file. And then check the membership in PHP and call elgg_load_js() only if user is a member of any chat.
Or maybe the notifier.php could return empty array if there are no new messages in existing chats and false if there aren't any open chats. If case of false the AJAX wouldn't be triggered again until next page load.
@rivervanrain Maybe the elgg.chat.getMessages() could be loaded only if there are active chats. Active chat could be for example one that has received it's last message within 5 minutes. Otherwise the chat would be considered inactive and AJAX calls wouldn't be made at all.
@juho.jaakkola Thanks indeed!
@RvR So you are going to do (some of) these modifications? Would you mind forking my github repository and then making a pull request once you have finished making the changes? I could then include the changes to the next version of the plugin.
@Juho & RvR, you may find this idea for lightweight polling interesting (see "greener polling")
http://www.mrclay.org/2010/04/03/elgg-elggchat-and-greener-http-polling/
Basically it's issuing each client a flat file that it polls, using lightweight HTTP caching and native web server handling of flat files.
@juho.jaakkola Here's the 'brute force' method, but it works. But I'm not sure about the pull request because still in searching a better solution :(
Hey Juho,
It is possible to modify the chat plugin
to use jabber server?