buddycloud / buddycloud.com

buddycloud static site generation and gh_pages
http://buddycloud.com
Other
18 stars 18 forks source link

Add basic loading of xmpp-ftw and buddycloud connection #27

Closed lloydwatkin closed 10 years ago

lloydwatkin commented 10 years ago

FAO @guilhermesgb

This code anonymously logs into buddycloud.org, it registers with the server, and then sends a presence notification. Status information is given at the bottom of the page.

All you need to do now is register the incoming events you want to listen for, e.g. push events from the server. Then you'll just need to make the calls you want as per https://xmpp-ftw.jit.su/manual/extensions#buddycloud.

If I can be of any more help please let me know, Lloyd.

imaginator commented 10 years ago

Thanks so much Lloyd. I'll try and merge this now and get it running on my local copy.

lloydwatkin commented 10 years ago

Was running fine for me once I got pelican working so any issues please let me know. @guilhermesgb still has some work to do in order to make it useful, but its simply a case of listening for the correct events, and sending others :)

imaginator commented 10 years ago

@guilhermesgb, I've pulled the code in and renamed the page to /getting-started.html (http://new.buddycloud.com/get-started) @lloydwatkin I presume the reference to http://localhost:3000/scripts/primus.js means I can just grab the latest version of https://github.com/primus/primus/blob/master/primus.js and stick that in.

But I couldn't see how you were calling xmpp-ftw-demo.js?

lloydwatkin commented 10 years ago

Ahh crap. No the reference will need to be fixed to point at xmpp-ftw.jit.su, I'll do this in master now.

imaginator commented 10 years ago

Ah thanks!

lloydwatkin commented 10 years ago

The script is pulled in from where @guilhermesgb set it up, namely here, https://github.com/buddycloud/buddycloud.com/blob/master/buddycloud-theme/static/js/xmpp-ftw-demo.js

Fixed.