Closed lloydwatkin closed 10 years ago
Thanks so much Lloyd. I'll try and merge this now and get it running on my local copy.
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 :)
@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?
Ahh crap. No the reference will need to be fixed to point at xmpp-ftw.jit.su, I'll do this in master now.
Ah thanks!
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.
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.