Anonymous Login
2016-09-30 10:16 CEST

View Issue Details Jump to Notes ] Related Changesets ]
IDProjectCategoryView StatusLast Update
06992Bug reports[All Projects] Theme editorpublic2012-12-04 13:16
Reportercreativologist 
Assigned Toc_schmitz 
PrioritynormalSeverityminor 
StatusclosedResolutionfixed 
Product Version 
Target VersionFixed in Version2.00+ 
Summary06992: After registering for a token based survey - the next page is missing template css
Description
The {TEMPLATECSS} placeholder is not being parsed.
Steps To Reproducehttp://pianowizardacademy.com/survey/index.php/survey/index/sid/156386/lang/en


(notice the CSS on this page)

Register (this is a test survey)

See next page.

Template CSS is missing.

Complete LimeSurvey version number (& build)121127
I will donate to the project if issue is resolvedNo
BrowserFirefox
Database & DB-VersionN/A
Operating System (Server)N/a
Webserver software & versionN/a
PHP VersionN/a
Attached Files

-Relationships
+Relationships

-Notes

~22803

Renier (reporter)

Last edited: 2012-12-02 12:24

View 2 revisions

I had one of my developers (Ravindra Khokharia) looked at the issue.
His comments:

1) File - /application/controllers/RegisterController.php
2) Added extra function at the end of file, below
    function _printTemplateContent($sTemplateFile, &$redata, $iDebugLine = -1)
    {
        echo templatereplace(file_get_contents($sTemplateFile),array(),$redata,'survey['.$iDebugLine.']');
    }
3) Function name - actionIndex - line no 50

Below code after line number 273 in Register Controller.php

    foreach(file("$thistpl/startpage.pstpl") as $op)
        {
            echo templatereplace($op);
        }
        foreach(file("$thistpl/survey.pstpl") as $op)
        {
            echo "\t".templatereplace($op);
        }
        echo $html;
        foreach(file("$thistpl/endpage.pstpl") as $op)
        {
            echo templatereplace($op);
        }

is replaced with below code

    $redata = compact(array_keys(get_defined_vars()));
        $this->_printTemplateContent($thistpl.'/startpage.pstpl', $redata, __LINE__);
        $this->_printTemplateContent($thistpl.'/survey.pstpl', $redata, __LINE__);
        echo $html;
    $this->_printTemplateContent($thistpl.'/endpage.pstpl', $redata, __LINE__);

~22804

c_schmitz (administrator)

Can you please create a gitHub pull request?

~22819

c_schmitz (administrator)

Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=10662

~22820

c_schmitz (administrator)

Thank you.

~22823

c_schmitz (administrator)

Fix committed to 2.1 branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=10670

~22845

c_schmitz (administrator)

LimeSurvey 2.0+ build 121204 released.
+Notes

+Related Changesets

-Issue History
Date Modified Username Field Change
2012-11-29 20:34 creativologist New Issue
2012-12-02 12:09 Renier Note Added: 22803
2012-12-02 12:24 Renier Note Edited: 22803 View Revisions
2012-12-02 13:26 c_schmitz Note Added: 22804
2012-12-02 13:26 c_schmitz Assigned To => c_schmitz
2012-12-02 13:26 c_schmitz Status new => feedback
2012-12-03 11:14 c_schmitz Changeset attached => LimeSurvey master d1e0c87f
2012-12-03 11:14 c_schmitz Note Added: 22819
2012-12-03 11:14 c_schmitz Resolution open => fixed
2012-12-03 11:29 c_schmitz Note Added: 22820
2012-12-03 11:29 c_schmitz Status feedback => resolved
2012-12-03 11:29 c_schmitz Fixed in Version => 2.00+
2012-12-03 14:57 c_schmitz Changeset attached => LimeSurvey 2.1 92de1b45
2012-12-03 14:57 c_schmitz Note Added: 22823
2012-12-04 13:16 c_schmitz Note Added: 22845
2012-12-04 13:16 c_schmitz Status resolved => closed
2015-12-11 14:40 c_schmitz Category Templates => Theme editor
+Issue History