Check out the LimeSurvey source code on GitHub!
Welcome, Guest
Username: Password:

TOPIC: Complete Page section in index.php

Complete Page section in index.php 4 years 3 weeks ago #88443

Hi,
Brand new to LimeSurvey and giving it a test to see if I can make it work for us.
Our web page has a header and footer that is on all of our web pages.
We use an include statement to render the header and footer.
Example.
inlcude ('header.php');
include ('footer.php');

In index.php after each doFooter(); I add include ('footer.php'); and a few other sections and it works perfect.

But on the completed page when the user completes the page I cant find where in index.php where to add the footer statement.
I add two images. One showing the footer incorrectly and the complete page where its not rendering.

I appreciate any help!
Attachments:
The administrator has disabled public write access.

Complete Page section in index.php 4 years 3 weeks ago #88459

  • DenisChenu
  • DenisChenu's Avatar
  • Online
  • Moderator Lime
  • Posts: 9599
  • Thank you received: 1376
  • Karma: 390
Hello,
Maybe it's more easy to use a iframe.

With 1.92, there are a specific settings to have an include header.php / footer.php, but it take more time to do the same job with Yii.

Denis
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (use private message).
The administrator has disabled public write access.

Complete Page section in index.php 4 years 3 weeks ago #88502

I thought so too.
Thats what I started off with is an IFrame...but, I tied several different ways to auto adjust the height of the IFrame with LimeSurvey but was not able to make it work.
Has anyone made auto resize work?
The administrator has disabled public write access.

Complete Page section in index.php 4 years 3 weeks ago #88517

  • DenisChenu
  • DenisChenu's Avatar
  • Online
  • Moderator Lime
  • Posts: 9599
  • Thank you received: 1376
  • Karma: 390
Hello,

Made this on sondages pro
$(document).ready(function(){
    $("iframe.questionnaire").load(function() 
    {
        hauteur = $(this).contents().find("#container").outerHeight();
        $(this).height(hauteur+'px');
    });
});
:)

PS: I use a container id in my template :).
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (use private message).
Last Edit: 4 years 3 weeks ago by DenisChenu.
The administrator has disabled public write access.
Time to create page: 0.246 seconds
Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form