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
  • romandf's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 1 month ago #159312 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:
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
The topic has been locked.
  • LouisGac
  • LouisGac's Avatar
  • Visitor
  • Visitor
7 years 1 month 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
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
7 years 1 month ago #159327 by DenisChenu
Replied by DenisChenu on 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 support - Plugins, theme and development .
I don't answer to private message.
The following user(s) said Thank You: LouisGac
The topic has been locked.
  • romandf
  • romandf's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 1 month 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.
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose