- Posts: 2
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Can I embed converse.js in Limesurvey?
- romandf
- Topic Author
- Offline
- New Member
Less
More
6 years 6 months ago #159312
by romandf
Can I embed converse.js in Limesurvey? was created by romandf
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:
And this to endpage.pstpl:
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
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>
Code:
<script> converse.initialize({ bosh_service_url: 'http://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
The topic has been locked.
- LouisGac
- Visitor
6 years 6 months ago #159314
by LouisGac
Replied by LouisGac on topic Can I embed converse.js in Limesurvey?
add the files in the manifest of your template.
Exemple for default template:
github.com/LimeSurvey/LimeSurvey/blob/ma...fault/config.xml#L23
Exemple for default template:
github.com/LimeSurvey/LimeSurvey/blob/ma...fault/config.xml#L23
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13597
- Thank you received: 2487
6 years 6 months ago #159327
by DenisChenu
Else @romandf : some javascript error ? Activate console and see what happen.
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Replied by DenisChenu on topic Can I embed converse.js in Limesurvey?
In 2.06+ ? Didn't thinkLouisGac wrote: add the files in the manifest of your template.
…
Else @romandf : some javascript error ? Activate console and see what happen.
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The following user(s) said Thank You: LouisGac
The topic has been locked.
- romandf
- Topic Author
- Offline
- New Member
Less
More
- Posts: 2
- Thank you received: 0
6 years 6 months ago #159343
by romandf
Replied by romandf on topic Can I embed converse.js in Limesurvey?
Thank you very much guys!
As far as I understand you think it should be possible?
Will try to get it running this weekend and share the solution here, in case it works.
As far as I understand you think it should be possible?
Will try to get it running this weekend and share the solution here, in case it works.
The topic has been locked.