Welcome to the LimeSurvey Community Forum

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

Is it possible to insert a php file or html file into the End Message? Thanks

  • mrli999
  • mrli999's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
3 years 10 months ago #200321 by mrli999
Is it possible to insert a php file or html file into the End Message? Thanks

For example, I have a php file or html file names example.php. Is it possible to insert example.php into End Message using filename?

Thanks for your help.
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 10 months ago #200323 by Joffm
What are you trying to do?

Do you want to link to that file?

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: mrli999
The topic has been locked.
  • mrli999
  • mrli999's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
3 years 10 months ago #200324 by mrli999
I want to display the content of that file.


I hope to add header and footer to the End message. Then all of my surveys can show the same header and footer.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 10 months ago #200325 by tpartner
jQuery load() - api.jquery.com/load/

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: mrli999
The topic has been locked.
  • mrli999
  • mrli999's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
3 years 10 months ago #200328 by mrli999
Thank you very much for your help.

The default folder of End Message is? Which folder should I put the header.php and footer.php to? If I put those files in the root director of the web site or the limesurvey root directory, how to load them in the End message? Thanks.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 10 months ago #200330 by tpartner
Why import files. Why not make these changes directly in the theme files?

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: mrli999
The topic has been locked.
  • mrli999
  • mrli999's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
3 years 10 months ago #200338 by mrli999

tpartner wrote: Why import files. Why not make these changes directly in the theme files?


Thank you.

How to change the theme files for End Message only? I am using limesurvey 2.70. Thanks.
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 10 months ago #200341 by Joffm
Hi,
in template editor
"Completed page"

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Attachments:
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 10 months ago - 3 years 10 months ago #200365 by DenisChenu
There are way to add easily constructed HTML via PHP in end message : see github.com/LimeSurvey/LimeSurvey/blob/ma...nse/ShowResponse.php for sample

For adding an dynamic element on footer : ajax (but need js activated) , maybe can add twig function something like {{ getMyPluginFunction() }} ?

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: 3 years 10 months ago by DenisChenu. Reason: {{ getMyPluginFunction() }} twig idea
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 10 months ago #200366 by tpartner

For adding an dynamic element on footer : ajax (but need js activated) , maybe can add twig function something like {{ getMyPluginFunction() }} ?

mrli999 is using 2.x so the twig functions are not available, but yes, in 4.x they work well. I have tested using them to replace AJAX calls.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
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
3 years 10 months ago #200367 by DenisChenu
And we have a manual page : manual.limesurvey.org/Theme:Available_fu...on#Adding_a_function

Maybe need a "own" function sample ?

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.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 10 months ago #200368 by tpartner
Sorry, I'm referring to Twig Extensions - github.com/LimeSurvey/LimeSurvey/tree/ma...load/twig/extensions

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: DenisChenu
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose