Complete Page section in index.php

More
4 years 6 months ago #88443 by dsfinancial
dsfinancial created the topic: Complete Page section in index.php
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:

Please Log in to join the conversation.

More
4 years 6 months ago #88459 by DenisChenu
DenisChenu replied the topic: Complete Page section in index.php
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 (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in to join the conversation.

More
4 years 6 months ago #88502 by dsfinancial
dsfinancial replied the topic: Complete Page section in index.php
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?

Please Log in to join the conversation.

More
4 years 6 months ago - 4 years 6 months ago #88517 by DenisChenu
DenisChenu replied the topic: Complete Page section in index.php
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 (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .
Last Edit: 4 years 6 months ago by DenisChenu.

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now