Dynamic Usage
-
Hello there π
First of all I would like to thank you for this amazing plugin! This is the only one I found that suits our interests.
However there are some things I’d like to ask you:
We need to start a conversation without the widget. I tried to initialize the core handling by calling the “getRenderedChat” function from WiseChat-class and redirect the output. After that I call the “addMessage” function from the MessageDAO (I modified the first two layers to make this public). Adding the message works fine, but it seems, that calling the render-function without displaying the content doesn’t finish the handling. I checked the Database and the channel isn’t created. Before I write my long time trial and error: You know your system the best. Could you provide a way to send a message over a php call?
And secondly: This could be a related problem, why the handling isn’t finished. We call everything in an AJAX response. This is a result of implementing this plugin in an inbox system. It does nothing more then reading the related channels to the actual user id (stored in a database table) and returning the output of “wise_chat(<channel>)” for the specified channel to the js caller. Just putting it in the InnerHTML of a div-element seems to break some links, because no interactions are handled. It works fine with a static call however.
I hope you can help us on these problems. And like I said: Nice work! Keep it going π
The topic ‘Dynamic Usage’ is closed to new replies.