New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JappixMini in stand alone bundle ? #192

Closed
ggambini opened this Issue Dec 17, 2012 · 9 comments

Comments

5 participants
@ggambini

Hi all,

I actually work on a jabber integration in owncloud. I have a fonctionnal ejabberd v2 and a owncloud v4.5.3. Im looking for a web based client, i try candy-chat, jwchat. Candy-chat seems to be conference only (doesn't use jabber roster, erf) and jwchat project are stop since 2010.

I try your minichat and i love it :-) But i dont want install a complete instance of jappix, i just need the minichat. I make sone tests and i cant use the source code hosting on your website and my own jabber server ?

My ejabberd have both methods activate : http-bind and http-poll.

If i use this code :

<script type=\"text/javascript\" src=\"https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js\"></script>
<script type=\"text/javascript\" src=\"https://static.jappix.com/php/get.php?l=fr&amp;t=js&amp;g=mini.xml\"></script>

<script type=\"text/javascript\">
   jQuery(document).ready(function() {
      MINI_ANIMATE = true;
      MINI_RANDNICK = false;
      launchMini(true, true, \"<jabber_domain>\", \"<jabber_uid>\", \"<jabber_pwd>\");
   });
</script>

I can see in the debug console : connecting to bind.jappix.com. I dont understand why dont use jabber_domain ? (jabber_domain = jabber_server). bind.appix.com is hard coded ? How to use my own jabber server ?

Regards, Gamb.

@ggambini

This comment has been minimized.

Show comment
Hide comment
@ggambini

ggambini Dec 17, 2012

I make some test and now this configuration works with my ejabberd ! Sorry for the fake issue :-(

Regards, GAmb.

I make some test and now this configuration works with my ejabberd ! Sorry for the fake issue :-(

Regards, GAmb.

@valeriansaliou

This comment has been minimized.

Show comment
Hide comment
@valeriansaliou

valeriansaliou Dec 17, 2012

Member

Hey,

Happy to hear that! I'm a delighted OwnCloud user myself ;)

If you need only Jappix Mini, you can use the command-line script we provide (extract_mini.sh). Then the script will do all the work for you.

About the bind.jappix.com thing, it's the BOSH server. Jappix Mini is an XMPP Web client - not a native client because it is unable to connect to XMPP from Web browsers. BOSH is here as a gateway from HTTP to XMPP.

ejabberd has a built-in BOSH server but I recommend you to use node-xmpp-bosh as the BOSH server (support for session restore & IE legacy cross-domain). Plus, Prosody is maybe a better alternative to ejabberd (which is quite heavy).

Good luck!

Member

valeriansaliou commented Dec 17, 2012

Hey,

Happy to hear that! I'm a delighted OwnCloud user myself ;)

If you need only Jappix Mini, you can use the command-line script we provide (extract_mini.sh). Then the script will do all the work for you.

About the bind.jappix.com thing, it's the BOSH server. Jappix Mini is an XMPP Web client - not a native client because it is unable to connect to XMPP from Web browsers. BOSH is here as a gateway from HTTP to XMPP.

ejabberd has a built-in BOSH server but I recommend you to use node-xmpp-bosh as the BOSH server (support for session restore & IE legacy cross-domain). Plus, Prosody is maybe a better alternative to ejabberd (which is quite heavy).

Good luck!

@ggambini

This comment has been minimized.

Show comment
Hide comment
@ggambini

ggambini Dec 18, 2012

Hi Vanaryon,

An other owncloud user, yeah :-) I dont know Prosody, i search on internet and i see ejabberd was the mostly used jabber server. Prosody and ejabberd are both written with exotic programming langage ... erffff :D

Well, i find our script (thx google) and i run it in the root directory of jappix. I have some errors about licensing :

ERROR: Could not detect a MPL-compatible license for file 'js/jxhr.js'!
ERROR: Could not detect a MPL-compatible license for file 'js/base64.js'!
ERROR: Could not detect a MPL-compatible license for file 'js/browser-detect.js'!
[...]

For the first file, the license header was malformed. You search for "License(s) : Licensed under", dont match on this files.
For js/base64.js, there are no MPL compatible license because this file is placed in the public domain.

How to fix it ?

Regards, Gamb.

Hi Vanaryon,

An other owncloud user, yeah :-) I dont know Prosody, i search on internet and i see ejabberd was the mostly used jabber server. Prosody and ejabberd are both written with exotic programming langage ... erffff :D

Well, i find our script (thx google) and i run it in the root directory of jappix. I have some errors about licensing :

ERROR: Could not detect a MPL-compatible license for file 'js/jxhr.js'!
ERROR: Could not detect a MPL-compatible license for file 'js/base64.js'!
ERROR: Could not detect a MPL-compatible license for file 'js/browser-detect.js'!
[...]

For the first file, the license header was malformed. You search for "License(s) : Licensed under", dont match on this files.
For js/base64.js, there are no MPL compatible license because this file is placed in the public domain.

How to fix it ?

Regards, Gamb.

@valeriansaliou

This comment has been minimized.

Show comment
Hide comment
@valeriansaliou

valeriansaliou Dec 18, 2012

Member

Hey, just change the headers in your build so that you can get the script to work.

Member

valeriansaliou commented Dec 18, 2012

Hey, just change the headers in your build so that you can get the script to work.

@Leberwurscht

This comment has been minimized.

Show comment
Hide comment
@Leberwurscht

Leberwurscht Dec 18, 2012

Member

I think you downloaded jappix from jappix.org and used the script from github. If you clone everything from github, the script should work.
I wonder why the zip files released on jappix.org differ so much from github - how are they created? And why is the last tag on github from version 0.8?

Member

Leberwurscht commented Dec 18, 2012

I think you downloaded jappix from jappix.org and used the script from github. If you clone everything from github, the script should work.
I wonder why the zip files released on jappix.org differ so much from github - how are they created? And why is the last tag on github from version 0.8?

@valeriansaliou

This comment has been minimized.

Show comment
Hide comment
@valeriansaliou

valeriansaliou Dec 18, 2012

Member

The ZIP files on Jappix.org are just versions that come directly from Github. I forgot to edit tags with 0.9 and 0.9.1, shame on me. I'll do this soon.

Member

valeriansaliou commented Dec 18, 2012

The ZIP files on Jappix.org are just versions that come directly from Github. I forgot to edit tags with 0.9 and 0.9.1, shame on me. I'll do this soon.

@Leberwurscht

This comment has been minimized.

Show comment
Hide comment
@Leberwurscht

Leberwurscht Dec 23, 2012

Member

Hey, no problem! I was just a bit confused because I thought that extract_mini.sh was added before the latest Jappix release, but I was wrong.

Member

Leberwurscht commented Dec 23, 2012

Hey, no problem! I was just a bit confused because I thought that extract_mini.sh was added before the latest Jappix release, but I was wrong.

@maranda maranda closed this Feb 1, 2013

@royalterra

This comment has been minimized.

Show comment
Hide comment
@royalterra

royalterra Sep 19, 2014

I get the last release but I have the seam problem
sh extract.sh
extract.sh: 84: [: MPL: unexpected operator
extract.sh: 92: [: MPL: unexpected operator
Extracting Jappix Mini into directory '/var/www/chat/tools/../mini'

ERROR: Could not detect a MPL-compatible license for file '/var/www/chat/tools/../app/javascripts/origin.js'!
Any idea how I solve the problem
Thanks

I get the last release but I have the seam problem
sh extract.sh
extract.sh: 84: [: MPL: unexpected operator
extract.sh: 92: [: MPL: unexpected operator
Extracting Jappix Mini into directory '/var/www/chat/tools/../mini'

ERROR: Could not detect a MPL-compatible license for file '/var/www/chat/tools/../app/javascripts/origin.js'!
Any idea how I solve the problem
Thanks

@ggambini

This comment has been minimized.

Show comment
Hide comment
@ggambini

ggambini Sep 23, 2014

Hi royalterra,

You need to patch directly the licence header with a right MIT licence. In other word, bypass licence checker.

Regards.

Hi royalterra,

You need to patch directly the licence header with a right MIT licence. In other word, bypass licence checker.

Regards.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment