Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Upgrading from v3 to v6 and imbedded videos are not working

  • rwinford77
  • rwinford77's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 day 11 hours ago #271177 by rwinford77
Please help us help you and fill where relevant:
LimeSurvey version:  6.15.5   build 250724
Own server or LimeSurvey Cloud:  Own Server, running on a linux VPS
Survey theme/template:  Bootstrap Vanilla    extended into ( GEMmetrics )
==================
I am updating from v3 to v6.  I installed v6 in a separate instance on my server and I have exported one survey from v3 and imported it into v6.  Several things are different that I have had to correct by hand, but one thing I can't figure out how to make it work in v6 the same way.  In the survey each question has a link to video on Vimeo that explains the question.  In the v3 survey we created a button that links to the video, but the same html does not work on my v6 instance.  On the v6 survey the button shows up but does nothing.  When I inspect the survey question within Chrome Dev Tools, it looks correct to me.  But, nothing happens.  The v3 code creates a modal popup window with an iframe.  In the v6 question I can change the code to an aref link which works, but that opens vimeo in a new tab rather than as a modal popup.  My v3 code is as follows:
Code:
 
<p style="text-align: center;"><button class="btn btn-default btn-sm" data-target="#myModal" data-toggle="modal" type="button">Metrics Intro Video</button></p>
 
<div aria-labelledby="myModalLabel" class="modal fade" id="myModal" role="dialog" tabindex="-1">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
<div class="modal-header"><button aria-label="Close" class="close" data-dismiss="modal" type="button"><span aria-hidden="true">×</span></button>
 
<h4 class="modal-title" id="myModalLabel">Metrics Intro</h4>
</div>
 
<div class="modal-body"><iframe frameborder="1" height="640" src="https://player.vimeo.com/video/444252804" style="zoom:0.60" width="99.6%"></iframe></div>
 
<div class="modal-footer"><button class="btn btn-default" data-dismiss="modal" type="button">Close</button></div>
</div>
</div>
</div>
 
 

Please Log in to join the conversation.

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 day 6 hours ago #271179 by holch
No need to post twice. Due to a high spam volume the forum requires that posts from new members are first approved by a moderator (and as it seems, due to the summer vacations there aren't a lot of moderators around at the moment).

Help us to help you!
  • Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
  • Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.
The following user(s) said Thank You: rwinford77

Please Log in to join the conversation.

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 day 6 hours ago #271180 by holch
To your issue: LS has changed its theme engine since LS3, so the classes and IDs from LS3 won't work in LS6. So you will need to adapt your code to the new structure.

Help us to help you!
  • Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
  • Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 day 4 hours ago #271181 by Joffm
As LS6 is based on bootstrap 5 there are some small changes.
See the documentation
getbootstrap.com/docs/5.3/components/modal

e.g. one thing to exchange is
data-bs-target, data-bs-toggle, data-bs-dismiss
to
data-bs-target, data-bs-toggle, data-bs-dismiss

Joffm



 

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: rwinford77

Please Log in to join the conversation.

  • rwinford77
  • rwinford77's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
17 hours 55 minutes ago #271182 by rwinford77
So sorry about that. I was concerned that I had not done it right, by including all the html code. Thank you for your response, and thank you for spending your spare time helping other people. I do appreciate it.

Please Log in to join the conversation.

  • rwinford77
  • rwinford77's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
17 hours 52 minutes ago - 17 hours 46 minutes ago #271183 by rwinford77
Thank you, Joffm.  This helped greatly!!!  

I think you meant (the editor/scanner keeps changing it on me)

data - target   to  data-bs-target,  data - toggle to data-bs-toggle
and so on...


That's what I did and it works much better.  There are still some fine tuning issues, but this got me so much closer.
Last edit: 17 hours 46 minutes ago by rwinford77. Reason: autocorrect failure

Please Log in to join the conversation.

  • rwinford77
  • rwinford77's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
17 hours 35 minutes ago #271184 by rwinford77
Hi Holch,
Thanks for the information. Are there any tools to help with the conversion? (I'm guessing not). I have quite a few surveys that will take some tweaking, and I dread doing it all by hand.

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
14 hours 39 minutes ago - 14 hours 28 minutes ago #271188 by Joffm

data - target   to  data - bs - target

Yes, of course. And I really did write this.
Again an issue of an editor who knows better.

You have to consider both sides:
  • the change of the bootstrap version
  • themes (sometimes it helps to copy a "config.xml" of a LS 6.x. theme to the "old" one.)
Joffm

 

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 14 hours 28 minutes ago by Joffm.

Please Log in to join the conversation.

  • rwinford77
  • rwinford77's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
13 hours 43 minutes ago #271189 by rwinford77
Thanks, Joffm.  I will try to "overrule" the editor, but the system always wins..... :-)

I'm finding many of these little differences between LS3 and LS6; not major, but different enough that I have to go research and figure it out.  On LS3 I used a very simple mechanism to line up 2 questions next to each other:   in both questions' custom css field in I added "col-sm-6" and that worked great.  Now, on LS6 that doesn't work.  From looking at the generated html it appears that LS6 wraps each question in a div in a way that I can't use the "col-sm-6"   So, I've spent 3 hours today trying to figure it out.  If I have to do this with every survey it will take a very long time and cost.  

What do you mean, "copy config.xml from an LS6 theme to the old one?"  

thank you very much.  
 

Please Log in to join the conversation.

Moderators: holchtpartner

Lime-years ahead

Online-surveys for every purse and purpose