candy-chat / candy

JavaScript-based multi-user chat client for XMPP.
http://candy-chat.github.io/candy
MIT License
1.32k stars 370 forks source link

Plugin roomPanel #421

Closed konradsztukowski closed 9 years ago

konradsztukowski commented 9 years ago

I use OpenFire for CandyChat on my website and i have one conference service in openfire and 3 rooms, but only the first created room is used and visible, so i want to use the roomPanel plugin but I don't understand how to use it. I used te script and the css file but how and where do i call the init method where do I have to put code and how should it look like? I quess that in the JS file i need to specify the rooms names and jids but how to initiate the plugin?

benlangfeld commented 9 years ago

You call init after initializing Candy. The docs are very clear at https://github.com/candy-chat/candy-plugins/tree/master/roomPanel.