Welcome, Guest
Username: Password: Remember me

TOPIC: Help with template

Help with template 3 years 1 month ago #64632

  • barbapapa
  • barbapapa's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 11
  • Karma: 1
Hi!

I am new one in LimeSurvey World, but I am very impressed of results of your work!

I have a problem with text info on register page. I was searching help-guide and that forum, but I found no tips. Maybe I don't know what to search for - remember I am a new one in Lime World and in www generally. I hope there is some easy, basic solution you could point in a few words.

I want to add a couple of lines of expanations to be visible on register page and nowhere else. I have witten it down in the area of description of my survey, but it is no visibile. I am trying now to modify template (clear_logo) to display that. I have added the line:
<p><strong>{SURVEYDESCRIPTION}</strong></p>
to register.pstpl. I can see the description text in preview, but it is still not visible in my real form.
The same is with other tempaltes. I can see description only when I add above line to survey.pstpl for example, byt it is then visible on each page with questions, what I don't want.

What I am doing wrong? What should I do or where to search for?
The administrator has disabled public write access.

Re: Help with template 3 years 1 month ago #64638

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4195
  • Thank you received: 789
  • Karma: 359
The {SURVEYDESCRIPTION}placeholder works in register.pstpl. You should be able to add it there and nowhere else.

Did you make a copy of the template? You can't modify the originals.
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.

Re: Help with template 3 years 1 month ago #64643

  • barbapapa
  • barbapapa's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 11
  • Karma: 1
Thank you for your answer.

Yes, I've made a copy of original template and saved it with other name. I'am working with that copy.

I've added the line with {SURVEYDESCRIPTION} "placeholder" as a second line in the register.pstpl. But it doesn't work. I see no template description, except in preview.

I can add that line also in survey.pstpl. As a result I can see in preview of register page two test description messages. After deleting that row from survey.pstpl, saving tempates and pointing such modified tempalte as default in my survey I can see no survey description on the register page.

What am I doing wrong?
Last Edit: 3 years 1 month ago by barbapapa.
The administrator has disabled public write access.

Re: Help with template 3 years 1 month ago #64644

  • barbapapa
  • barbapapa's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 11
  • Karma: 1
When I choose some other templates, for example bluengrey or limespired, there is visible suvey description on the register page, but it is visible also on welcome page and survey page because of presence of that "placeholder" in these templates (but in survey.pstpl and welcome.pstpl).

When I've tried to modify copies of these templates to have surveydescription in register.pstpl and delete it from survey.pstpl or welcome.pstpl, I had the same results like with clear_logo template - survey description was visble only in preview, not in final version. No matter what browser I use.
Last Edit: 3 years 1 month ago by barbapapa.
The administrator has disabled public write access.

Re: Help with template 3 years 1 month ago #64659

  • barbapapa
  • barbapapa's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 11
  • Karma: 1
Sorry Toni, I've found that you are right!

Survey description works fine and is visible after adding that line mentioned above, but only when "Allow public registration" is set on "Yes".

So what should I modify to see surveydescription when "Allow public registration" is set on "No" and there are tokens?

I want survey description to be visible also with such option. I found no "login.pstpl" or something like that.
Last Edit: 3 years 1 month ago by barbapapa.
The administrator has disabled public write access.

Re: Help with template 3 years 1 month ago #64663

  • barbapapa
  • barbapapa's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 11
  • Karma: 1
Is my question connected with that topic: login page template and there is no login template?

If yes, is it possible and how should I add text info to the login page in one of my surveys?
Last Edit: 3 years 1 month ago by barbapapa.
The administrator has disabled public write access.

Re: Help with template 3 years 1 month ago #64671

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4195
  • Thank you received: 789
  • Karma: 359
Is my question connected with that topic: login page template and there is no login template?
Not directly. That post refers to the admin login page, not the respondent login page.

Having said that, it seems the answers are similar. There is no template file for the "enter token" screen. That page is hard-coded in index.php so you would need to modify that file. Be aware that any modifications there would be overwritten when updating the installation.

You can submit a feature request to add a template file for this - ideas.limesurvey.org
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
Last Edit: 3 years 1 month ago by tpartner.
The administrator has disabled public write access.
The following user(s) said Thank You: barbapapa

Re: Help with template 3 years 1 month ago #64681

  • barbapapa
  • barbapapa's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 11
  • Karma: 1
Thank you very much.

I have no solution but I have knowledge now :)

As a patchwork I've prepared additional "starter page" for my survey, out of Lime. There is a link to the "enter token" screen after the survey description.

I have submitted a feature request to add a template to "ideas".

I wish you all good ideas - such class like LimeSurvey is generally!
Last Edit: 3 years 1 month ago by barbapapa.
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.157 seconds
Donation Image