Welcome to the LimeSurvey Community Forum

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

Having difficulties adding an image to the welcome and end pages

  • IlanaWilken
  • IlanaWilken's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 4 months ago #160601 by IlanaWilken
Hello everyone

I would like to add our company logo to the welcome and end pages. When I click on the image button in the editor, and then on Browse Server, I get this message:
"Cannot find any of the supported PHP image extensions!"

What does it mean and how do I fix it so that I can add images?

(We are self-hosters, if that makes any difference.)

Thanks so much!

Regards
Ilana
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 4 months ago #160605 by Joffm
Hello, Ilana,

where is there an "image button" in the template editor?

But it doesn't matter.
You can use any picture in the internet as long as you know the url.

I suppose, you want to add the logo onl in the welcome page, not in the question page.

So edit the "welcome.pstpl".
Here the first lines with my included picture (very quick example).
Code:
<div class="alert alert-danger" role="alert"  id="checkjavascript">
    {CHECKJAVASCRIPT}
</div>
<script>
document.getElementById("checkjavascript").style.display = 'none';
</script>
<!-- Survey Description -->
<div class="row" id="welcome-container">
 
<!-- This Image-Tag you add wherever you want -->
    <img id='page_logo' src='http://www.example.com/path_to_picture/name_of_picture.jpg' class="img-responsive clearfix pull-left" />
 
    <div class="col-sm-12 ">
        <h1>{SURVEYNAME}</h1><br />
        <p class='surveydescription text-info'>{SURVEYDESCRIPTION}</p>
    </div>
</div>



Endpage analogue in "completed.pstpl"


Best regards
Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • IlanaWilken
  • IlanaWilken's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 4 months ago #160625 by IlanaWilken
Hello Joffm

Thank you for your answer. I will attach a screenshot of where I found the image button. (Unless I incorrectly interpreted that "functionality"!)

The images/logo's I want to add aren't available on the internet and are stored locally on my PC. Is there a way of uploading images without them being on the internet?

Also, is there perhaps a simpler way of adding an image without fiddling with code?

Thank you again.

Regards
Ilana
Attachments:
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 4 months ago - 6 years 4 months ago #160639 by Joffm
Hi, Ilana,

but this is something quite different.

You talked about the "welcome page", not about the "welcome message"

But nevertheless, just insert by the img-tag (of course in "source code mode")


You can set the width and height, but it's not necessary. Depands on the size of the picture.

Result:


Best regards
Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 6 years 4 months ago by Joffm.
The topic has been locked.
More
6 years 4 months ago #160662 by jelo

Joffm wrote: But nevertheless, just insert by the img-tag (of course in "source code mode")

As long as the images are not uploaded to the webspace, the img-tags won't help.


@IlanaWilken:
What Limesurvey version/build is used? What webstack (PHP version, Webserver, OS) is used?
You PHP installation is missing some extensions.
Depending on the OS you need to install these php graphic extensions.
Have you tried to get past the error message about the missing extensions.
The upload should not be depend on these graphic extensions.

Optional PHP Extensions:
GD-Library with FreeType support installed is needed for captchas or nice charts in statistics - see PHP GD-Library Extension documentation


Or you upload the images via other ways (e.g. FTP or via a Controlpanel, if availble) to the webspace and follow the instructions of Joffm.

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The following user(s) said Thank You: DenisChenu
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 4 months ago - 6 years 4 months ago #160681 by DenisChenu

jelo wrote: […]
The upload should not be depend on these graphic extensions.

Optional PHP Extensions:
GD-Library with FreeType support installed is needed for captchas or nice charts in statistics - see PHP GD-Library Extension documentation


Or you upload the images via other ways (e.g. FTP or via a Controlpanel, if availble) to the webspace and follow the instructions of Joffm.

Seems GD is needed by third_party extension kcfinder. I update manual according to this information.

[edit]
Manual updated : manual.limesurvey.org/Installation_-_LimeSurvey_CE
GD (or convert or … ) is a really common PHP library

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: 6 years 4 months ago by DenisChenu.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose