Welcome, Guest
Username: Password: Remember me

TOPIC: Complete Page section in index.php

Complete Page section in index.php 2 years 1 week 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.

Re: Complete Page section in index.php 2 years 1 week ago #88459

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6551
  • Thank you received: 869
  • Karma: 257
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
The administrator has disabled public write access.

Re: Complete Page section in index.php 2 years 1 week 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.

Re: Complete Page section in index.php 2 years 1 week ago #88517

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6551
  • Thank you received: 869
  • Karma: 257
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 :).
Last Edit: 2 years 1 week ago by DenisChenu.
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.120 seconds
Donation Image