- Posts: 14
- Thank you received: 0
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
- Topic Author
- Offline
- New Member
Less
More
9 years 2 months ago #116517
by maximum
How to customize text in register page was created 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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10099
- Thank you received: 3589
9 years 2 months ago #116529
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic How to customize text in register page
Add something like this to register.pstpl:
And, then something like this in template.css:
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
- Topic Author
- Offline
- New Member
Less
More
- Posts: 14
- Thank you received: 0
9 years 2 months 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
<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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10099
- Thank you received: 3589
9 years 2 months ago #116554
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
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
- Topic Author
- Offline
- New Member
Less
More
- Posts: 14
- Thank you received: 0
9 years 2 months 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} – {GROUPNAME}</title>
<meta name="generator" content="LimeSurvey www.limesurvey.org " />
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>{SURVEYNAME} – {GROUPNAME}</title>
<meta name="generator" content="LimeSurvey www.limesurvey.org " />
The topic has been locked.