View Issue Details

This bug affects 1 person(s).
 6
IDProjectCategoryView StatusLast Update
06992Bug reportsTheme editorpublic2012-12-04 13:16
Reportercreativologist Assigned Toc_schmitz  
PrioritynormalSeverityminor 
Status closedResolutionfixed 
Fixed 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 Reproduce

http://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.

TagsNo tags attached.
Bug heat6
Complete LimeSurvey version number (& build)121127
I will donate to the project if issue is resolvedNo
BrowserFirefox
Database type & versionN/A
Server OS (if known)N/a
Webserver software & version (if known)N/a
PHP VersionN/a

Users monitoring this issue

tpartner

Activities

Renier

Renier

2012-12-02 12:09

reporter   ~22803

Last edited: 2012-12-02 12:24

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__);
c_schmitz

c_schmitz

2012-12-02 13:26

administrator   ~22804

Can you please create a gitHub pull request?

c_schmitz

c_schmitz

2012-12-03 11:14

administrator   ~22819

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

c_schmitz

c_schmitz

2012-12-03 11:29

administrator   ~22820

Thank you.

c_schmitz

c_schmitz

2012-12-03 14:57

administrator   ~22823

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

c_schmitz

c_schmitz

2012-12-04 13:16

administrator   ~22845

LimeSurvey 2.0+ build 121204 released.

Related Changesets

LimeSurvey: master d1e0c87f

2012-12-03 10:14:25

c_schmitz

Details Diff
Merge pull request #57 from ravindrakhokharia/master

Fixed issue 06992
Affected Issues
06992
mod - application/controllers/RegisterController.php Diff File

LimeSurvey: 2.1 92de1b45

2012-12-03 13:54:40

c_schmitz

Details Diff
Fixed issue 06992: After registering for a token based survey - the next page is missing template css Affected Issues
06992
mod - application/controllers/RegisterController.php Diff File

Issue History

Date Modified Username Field Change
2012-11-29 20:34 creativologist New Issue
2012-11-29 20:38 tpartner Issue Monitored: tpartner
2012-12-02 12:09 Renier Note Added: 22803
2012-12-02 12:24 Renier Note Edited: 22803
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
2021-08-03 20:07 guest Bug heat 4 => 6