Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

How to customize text in register page

  • maximum
  • maximum's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 1 month ago #116517 by maximum
Hello everyone, How can I edit the message/text in the register page? I want to add a privacy policy message. The survey uses more than one languages. Thanks
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 1 month ago #116529 by tpartner
Replied by tpartner on topic How to customize text in register page
Add something like this to register.pstpl:
Code:
<p class="register-privacy en">Some privacy message for English.</p>
<p class="register-privacy fr">Some privacy message for French.</p>

And, then something like this in template.css:
Code:
.register-privacy {
  display: none;
}
 
.lang-en .register-privacy.en {
  display: block;
}
 
.lang-fr .register-privacy.fr {
  display: block;
}

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • maximum
  • maximum's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 1 month ago #116535 by maximum
Replied by maximum on topic How to customize text in register page
Thanks tpartner!. In the meantime I found a slight variation in the LimeSurvey manual:

<div class="fr" lang="fr">Pour de l'aide en direct appelez le 000000</div>
<div class="en" lang="en">For some help, please call 000000</div>

and in template.css

.lang-fr .en {display:none}
.lang-en .fr {display:none}

Both solution will display text in the corresponding language. However, special characters won't display properly. For instance, "é" turns into "�". I could insert the ascii code for each characters but it can be a pain. I would prefer not to have to do this. Would there be any other way to make special characters display properly? Thanks
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 1 month ago #116554 by tpartner
Replied by tpartner on topic How to customize text in register page
That should not be if you have the following at the beginning of startpage.pstpl. What template are you using?

Code:
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • maximum
  • maximum's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 1 month ago #116556 by maximum
Replied by maximum on topic How to customize text in register page
I use a copy of limespired. This line is in startpage.pstpl:

<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>{SURVEYNAME} &ndash; {GROUPNAME}</title>
<meta name="generator" content="LimeSurvey www.limesurvey.org " />
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose