Having difficulties adding an image to the welcome and end pages

More
4 weeks 1 hour ago #160601 by IlanaWilken
IlanaWilken created the topic: Having difficulties adding an image to the welcome and end pages
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

Please Log in to join the conversation.

More
4 weeks 1 hour ago #160605 by Joffm
Joffm replied the topic: Having difficulties adding an image to the welcome and end pages
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).
<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
Attachments:

Please Log in to join the conversation.

More
3 weeks 6 days ago #160625 by IlanaWilken
IlanaWilken replied the topic: Having difficulties adding an image to the welcome and end pages
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:

Please Log in to join the conversation.

More
3 weeks 6 days ago - 3 weeks 6 days ago #160639 by Joffm
Joffm replied the topic: Having difficulties adding an image to the welcome and end pages
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
Attachments:
Last Edit: 3 weeks 6 days ago by Joffm.

Please Log in to join the conversation.

More
3 weeks 5 days ago #160662 by jelo
jelo replied the topic: Having difficulties adding an image to the welcome and end pages

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 following user(s) said Thank You: DenisChenu

Please Log in to join the conversation.

More
3 weeks 5 days ago - 3 weeks 5 days ago #160681 by DenisChenu
DenisChenu replied the topic: Having difficulties adding an image to the welcome and end pages

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 (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .
Last Edit: 3 weeks 5 days ago by DenisChenu.

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!