Willkommen, Gast
Benutzername: Passwort: Angemeldet bleiben:

THEMA: Complete Page section in index.php

Complete Page section in index.php 1 Jahr 5 Monate her #88443

  • dsfinancial
  • dsfinancials Avatar
  • OFFLINE
  • Fresh Lemon
  • Beiträge: 2
  • Karma: 0
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!
Anhang:
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Re: Complete Page section in index.php 1 Jahr 5 Monate her #88459

  • DenisChenu
  • DenisChenus Avatar
  • OFFLINE
  • Moderator Lime
  • Beiträge: 5838
  • Dank erhalten: 714
  • Karma: 222
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
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Re: Complete Page section in index.php 1 Jahr 5 Monate her #88502

  • dsfinancial
  • dsfinancials Avatar
  • OFFLINE
  • Fresh Lemon
  • Beiträge: 2
  • Karma: 0
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?
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Re: Complete Page section in index.php 1 Jahr 5 Monate her #88517

  • DenisChenu
  • DenisChenus Avatar
  • OFFLINE
  • Moderator Lime
  • Beiträge: 5838
  • Dank erhalten: 714
  • Karma: 222
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 :).
Letzte Änderung: 1 Jahr 5 Monate her von DenisChenu.
Der Administrator hat öffentliche Schreibrechte deaktiviert.
Moderatoren: ITEd
Ladezeit der Seite: 0.150 Sekunden
Donation Image