- Posts: 146
- Thank you received: 2
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
- Topic Author
- Offline
- Premium Member
Less
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 was created 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.
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12940
- Thank you received: 3979
3 years 10 months ago #200323
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Is it possible to insert a php file or html file into the End Message? Thanks
What are you trying to do?
Do you want to link to that file?
Joffm
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
- Topic Author
- Offline
- Premium Member
Less
More
- Posts: 146
- Thank you received: 2
3 years 10 months ago #200324
by mrli999
Replied by mrli999 on topic Is it possible to insert a php file or html file into the End Message? Thanks
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.
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10109
- Thank you received: 3595
3 years 10 months ago #200325
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Is it possible to insert a php file or html file into the End Message? Thanks
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
- Topic Author
- Offline
- Premium Member
Less
More
- Posts: 146
- Thank you received: 2
3 years 10 months ago #200328
by mrli999
Replied by mrli999 on topic Is it possible to insert a php file or html file into the End Message? Thanks
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 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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10109
- Thank you received: 3595
3 years 10 months ago #200330
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Is it possible to insert a php file or html file into the End Message? Thanks
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
- Topic Author
- Offline
- Premium Member
Less
More
- Posts: 146
- Thank you received: 2
3 years 10 months ago #200338
by mrli999
Thank you.
How to change the theme files for End Message only? I am using limesurvey 2.70. Thanks.
Replied by mrli999 on topic Is it possible to insert a php file or html file into the End Message? Thanks
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12940
- Thank you received: 3979
3 years 10 months ago #200341
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Is it possible to insert a php file or html file into the End Message? Thanks
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Attachments:
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13648
- Thank you received: 2491
3 years 10 months ago - 3 years 10 months ago #200365
by DenisChenu
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.
Replied by DenisChenu on topic Is it possible to insert a php file or html file into the End Message? Thanks
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() }} ?
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10109
- Thank you received: 3595
3 years 10 months ago #200366
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Is it possible to insert a php file or html file into the End Message? Thanks
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.For adding an dynamic element on footer : ajax (but need js activated) , maybe can add twig function something like {{ getMyPluginFunction() }} ?
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13648
- Thank you received: 2491
3 years 10 months ago #200367
by DenisChenu
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.
Replied by DenisChenu on topic Is it possible to insert a php file or html file into the End Message? Thanks
And we have a manual page :
manual.limesurvey.org/Theme:Available_fu...on#Adding_a_function
Maybe need a "own" function sample ?
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10109
- Thank you received: 3595
3 years 10 months ago #200368
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Is it possible to insert a php file or html file into the End Message? Thanks
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.