Welcome to the LimeSurvey Community Forum

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

Issue with images in footer

  • cgrewal94
  • cgrewal94's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 months 2 weeks ago #251895 by cgrewal94
Issue with images in footer was created by cgrewal94
Please help us help you and fill where relevant:
Your LimeSurvey version: 5.6.43
Own server or LimeSurvey hosting: Own Server
Survey theme/template: Custom template
==================
Hi there,

I was wondering why my image for the footer is not showing up properly. I am editing the info.twig file within my custom theme. I have attached a screenshot of what I have in the info.twig file - the src seems to be different when actually loading the image.

In my twig file, the url is:  mango.sentis.ca/upload/themes/survey/sen...-by-sentis-small.png

But in the console when you load the page the url changes to:  mango.sentis.ca/upload/themes/survey/sen...-by-sentis-small.png

It replaces the "/" with "image::theme::" bit

Any idea why this is the case? Seemed to work fine in Limesurvey 3
The following user(s) said Thank You: DenisChenu

Please Log in to join the conversation.

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 months 2 weeks ago #251897 by DenisChenu
Replied by DenisChenu on topic Issue with images in footer

It replaces the "/" with "image::theme::" bit

Any idea why this is the case? Seemed to work fine in Limesurvey 3

There are an update on the dropdown system adding image::theme:: on dropdown ( already reported )

But i don't understand why it's happen here ? There are no reason here …

Maybe need to be reported as an issue ?
(temporary : can you put the image out of this server and try again ?)

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.

Please Log in to join the conversation.

  • cgrewal94
  • cgrewal94's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 months 2 weeks ago #251971 by cgrewal94
Replied by cgrewal94 on topic Issue with images in footer
Thanks Denis!

Realized there was another setting in the twig file which was causing that issue. I've attached the screenshot. For now I've just updated it to be static images but is there a way to make it dynamic with the selector in theme options?

Thanks!

Please Log in to join the conversation.

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 months 2 weeks ago - 5 months 2 weeks ago #251980 by DenisChenu
Replied by DenisChenu on topic Issue with images in footer
OK, then need the workaround
Code:
str_replace('image::theme::','',aSurveyInfo.options.extrasettings);

gitlab.com/SondagesPro/SurveyThemes/skel...ea497b426a4fe603_6_6

You can put a +1 to the issue reported …

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.
Last edit: 5 months 2 weeks ago by DenisChenu.

Please Log in to join the conversation.

  • cgrewal94
  • cgrewal94's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 months 2 weeks ago #252009 by cgrewal94
Replied by cgrewal94 on topic Issue with images in footer
Thanks!

Please Log in to join the conversation.

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 months 2 weeks ago #252011 by DenisChenu
Replied by DenisChenu on topic Issue with images in footer

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.

Please Log in to join the conversation.

Lime-years ahead

Online-surveys for every purse and purpose