beechannels / beechat Goto Github PK
View Code? Open in Web Editor NEWThe first XMPP chat for Elgg
Home Page: http://www.beechannels.com/
The first XMPP chat for Elgg
Home Page: http://www.beechannels.com/
Sounds are not yet handled properly
This occurs when you try to chat wit someone.
The problem is In beechat.js.php
All the filter('bareJid=' + something + ']')
need to be changed to
filter('bareJid="' + something + '"]')
In the beechat_tooltip_trigger url the img is defined as something specific to your theme.
I changed it to this:
<a id="beechat_tooltip_trigger" href="<?php echo $vars['url']; ?>"><img src="<?php echo $vars['url']; ?>favicon.ico" /></a>
refreshing the page is sometimes needed to see a new chat window properly, ie the one being talked to needs to refresh the page before being able to see someone else is trying to chat.
I have installed the plugin and it workes beautifully - thank you :)
But - the perl-scripts (probably the polling) maxes out my CPU, slowing down the server so much that I had to disable the plugin again. Any solution for this?
I am still unable to get this to work, I can see it now, but when I click the chat button it does nothing.
hello.
we are using centos 6, and elgg version 1.7.2
i installed ejabbered using repo, that is running on our server with admin user: http://localhost:5280/admin.
we installed beechat plugin, also added settings and the chat bar is also showing.
Now the issue is when i click on chat bar its loading for sometime and showing connecting.., after sometime its deactivated.
backend error when i click on chat bar is like below:
*106 FastCGI sent in stderr: "PHP message: beechat: get_details" while reading response header from upstream, client: 103.60.176.18, server: localhost, request: "GET /action/beechat/get_details?__elgg_ts=1486567xxxx__elgg_token=45b7a73f6f63d3762dc9d7c71c2xxxxx HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "localhost", referrer: "http://localhost/pg/dashboard/"
so can you please explain how can i resolve this issue.
please let me know how can i debug and where is the issue.
thank you.
i already had ejabberd installed and integrated with elgg, but i like your approach so i have modified my setup to be like yours. Ejabberd connects ok with the auth script for external clients, but when i log into the elgg site I don't see any sort of client for xmpp.
Just discovered the errors
** Message: console message: http://duuit.com/pg/riverdashboard/ @1: ReferenceError: Can't find variable: init_beechat
** Message: console message: http://duuit.com/mod/beechat/js/beechat.js @23: SyntaxError: Parse error
** Message: console message: http://duuit.com/pg/riverdashboard/ @2628: ReferenceError: Can't find variable: rcPrepareItems
** Message: console message: http://duuit.com/mod/beechat/js/beechat.js @23: SyntaxError: Parse error
** Message: console message: http://duuit.com/pg/riverdashboard/mod/beechat/sounds/newmessage.wav @2628: ReferenceError: Can't find variable: rcPrepareItems
** Message: console message: http://duuit.com/mod/beechat/js/beechat.js @23: SyntaxError: Parse error
** Message: console message: http://duuit.com/pg/riverdashboard/mod/beechat/sounds/mod/beechat/sounds/newmessage.wav @2628: ReferenceError: Can't find variable: rcPrepareItems
** Message: console message: http://duuit.com/pg/riverdashboard/mod/beechat/sounds/newmessage.wav @1: ReferenceError: Can't find variable: init_beechat
my site has more than one domain and my chat users log in with any of the domain names currently, once i enable this they can only log in from the specified domain in the config but not the others accepted in the ejabberd.cfg
I had the problem of the javascript never loading and had to change the plugin to extend meta tags to get it to show, feel free to look at my fork here, all the javascript has moved to beechat/js and is only loaded if logged in.
this solved the problem to make mine show up but didnt actually work.
Just discovered the errors
** Message: console message: http://duuit.com/pg/riverdashboard/ @1: ReferenceError: Can't find variable: init_beechat
** Message: console message: http://duuit.com/mod/beechat/js/beechat.js @23: SyntaxError: Parse error
** Message: console message: http://duuit.com/pg/riverdashboard/ @2628: ReferenceError: Can't find variable: rcPrepareItems
** Message: console message: http://duuit.com/mod/beechat/js/beechat.js @23: SyntaxError: Parse error
** Message: console message: http://duuit.com/pg/riverdashboard/mod/beechat/sounds/newmessage.wav @2628: ReferenceError: Can't find variable: rcPrepareItems
** Message: console message: http://duuit.com/mod/beechat/js/beechat.js @23: SyntaxError: Parse error
** Message: console message: http://duuit.com/pg/riverdashboard/mod/beechat/sounds/mod/beechat/sounds/newmessage.wav @2628: ReferenceError: Can't find variable: rcPrepareItems
** Message: console message: http://duuit.com/pg/riverdashboard/mod/beechat/sounds/newmessage.wav @1: ReferenceError: Can't find variable: init_beechat
I run a server with LDAP for the backend and all users currently synced between my existing elgg and ejabberd services. I would like to use this as the chat client but when installed and enabled I get "Failed" everytime i try to login.
First of all I would like to thank you for your work on the beechat!
I have found a problem when trying to log in to beechat using an external jabber chat client. Any person is allowed to log in. Have traced the problem down to the ejabberd_elgg_auth.pl line 136 that has an additional result=1 before exiting the funtion(I have added a comment to the line bellow)
sub auth_ext {
my($user, $password) = @_;
my $result = 0;
my $sql = qq/SELECT salt FROM $db_table WHERE $field_user = ?;/;
my $sth = $dbh->prepare($sql);
$sth->bind_param(1, $user);
$sth->execute()
or die DBI->errstr;
my @res = $sth->fetchrow_array();
$sth->finish;
if (!$res[0]) {
$result = 0;
} else {
$sql = qq/SELECT COUNT(*) FROM $db_table WHERE $field_user = ? AND $field_password = MD5(CONCAT(?, ?));/;
$sth = $dbh->prepare($sql);
$sth->bind_param(1, $user);
$sth->bind_param(2, $password);
$sth->bind_param(3, $res[0]);
$sth->execute()
or die DBI->errstr;
my @count = $sth->fetchrow_array();
$sth->finish;
$result = $count[0] || 0;
}
$result = 1; ###! siskap: This line of code should not be here
return ($result);
When this line is deleted the script works ok.
Regards,
Petr
Using the 855c6a4 release, I've noticed a strange behavior with a majority of users where:
"User A" (User.A@mydomain) sends a message to "User B" (User.B@mydomain). "User B" window pops up on A's screen and "User A" window pops up on B's display with the sent message. When B replies to the message, a new window is created titled "User.B@myd..." on A's display that is not selectable/expandable. A can still send messages to B, but A cannot receive messages from B.
I'm starting to poke around in the codebase a bit, but I'm somewhat unfamiliar with the project. Please let me know if this is a potential mis-configuration.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.