Can I embed converse.js in Limesurvey?

More
1 month 2 weeks ago #159312 by romandf
romandf created the topic: Can I embed converse.js in Limesurvey?
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:
<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:
<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

Please Log in to join the conversation.

More
1 month 2 weeks ago #159314 by LouisGac
LouisGac replied the 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

Please Log in to join the conversation.

More
1 month 2 weeks ago #159327 by DenisChenu
DenisChenu replied the topic: Can I embed converse.js in Limesurvey?

LouisGac wrote: add the files in the manifest of your template.

In 2.06+ ? Didn't think ;)

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 (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .
The following user(s) said Thank You: LouisGac

Please Log in to join the conversation.

More
1 month 2 weeks ago #159343 by romandf
romandf replied the 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.

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!