Hello
This is my first post here.
Thank you very much for the great solutions in this forum. Until now every problem I had was covered by just reading your contributions.
Now I try to embed converse.js in Limesurvey to be able to do live chat support. I found this post which didn`t really help:
How can I embed Zopim chat support into the survey page?
I`m not sure were the problem lies. We run Limesurvey Version 2.06+ on our own server. On a different server we have ejabberd running and converse.js works fine via browser (for example on
inverse.chat
).
I added this to startpage.pstpl:
Code:
<link rel="stylesheet" type="text/css" media="screen" href="https://cdn.conversejs.org/css/converse.min.css">
<script src="https://cdn.conversejs.org/dist/converse.min.js"></script>
And this to endpage.pstpl:
Code:
<script>
converse.initialize({
bosh_service_url: 'https://MY_HTTP-BIND_URL',
keepalive: true,
message_carbons: true,
play_sounds: true,
roster_groups: false,
show_controlbox_by_default: false,
xhr_user_search: false,
allow_bookmarks: false,
allow_contact_removal: false,
allow_contact_requests: false,
allow_muc: false,
allow_muc_invitations: false,
allow_registration: false,
auto_list_rooms: false,
auto_login: false,
jid: 'user@MY_EJABBERD_HOST_URL',
authentication: 'login',
auto_reconnect: true
});
</script>
The chat window is there and seems to do something but it won’ t connect to ejabberd.
Is it possible to embed converse.js in Limesurvey?
If yes: Does anyone have a clue what I am doing wrong? It might just be my ejabberd configuration or something with cross-site scripting restrictions. But before wasting even more time on these topics I would like to know if it is actually possible to embed it in Limesurvey.
Looking forward for your replies. Thanks a lot.
Roman