Welcome to the LimeSurvey Community Forum

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

How to customize text in register page

More
10 years 7 months 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.
More
10 years 7 months ago #116529 by tpartner
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.
More
10 years 7 months ago #116535 by maximum
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.
More
10 years 7 months ago #116554 by tpartner
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.
More
10 years 7 months ago #116556 by maximum
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.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose