Using Lytebox in Limesurvey

More
4 years 10 months ago #90873 by alexandra1977
alexandra1977 created the topic: Using Lytebox in Limesurvey
Hello,

I´m using the LimeSurvey Hosting and would like to use Lytebox in my Survey to show Information in a popup and to include a javascript to import the click in a variable (excuse my bad english, I hope someone can understand, what I mean).
Where must I put the CSS and the Javascript to include Lytebox (in the template editor??) I would be very thankful for your helping.

lg

Alexandra

Please Log in to join the conversation.

More
4 years 10 months ago #90911 by tpartner
tpartner replied the topic: Using Lytebox in Limesurvey
You cannot upload the Lytebox files directly with the template editor so you have 2 options:

1) Upload the lytebox.css and lytebox.js to your template directory with FTP and then add the following to startpage.pstpl right after the {TEMPLATEJS} placeholder:
<script type="text/javascript" src="{TEMPLATEURL}lytebox.js"></script>
<link href="{TEMPLATEURL}lytebox.css" media="all" type="text/css" rel="stylesheet" />

2) In the template editor, add the contents of lytebox.css to the end of your template.css file and add the contents of lytebox.js to the beginning of your template.js file.

Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Please Log in to join the conversation.

More
4 years 10 months ago - 4 years 10 months ago #90932 by alexandra1977
alexandra1977 replied the topic: Using Lytebox in Limesurvey
Thank you very much for your fast request. Now I know, what was wrong, when I tried to integrate. Thank you so much.

lg

Alexandra :kiss:
Last Edit: 4 years 10 months ago by alexandra1977.

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!