Bienvenue, Invité
Nom d'utilisateur : Mot de passe : Se souvenir de moi
  • Page :
  • 1
  • 2

SUJET : Modifying the self-registration text

Modifying the self-registration text il y a 1 an 8 mois #91299

  • stevage
  • Portrait de stevage
  • Hors ligne
  • Fresh Lemon
  • Messages : 15
  • Karma: 0
I can't find an easy way to modify this text, from within LimeSurvey:
You must be registered to complete this survey
You may register for this survey if you wish to take part.
Enter your details below, and an email containing the link to participate in this survey will be sent immediately.

Also, we would really like to remove the "first name" and "last name" boxes: all we want to collect is the email address. Is this possible?

We'd really prefer to host the survey on LimeService, so modifying code is out - but can do it if there's no other solution.
L'administrateur a désactivé l'accès en écriture pour le public.

Re: Modifying the self-registration text il y a 1 an 8 mois #91301

  • stevage
  • Portrait de stevage
  • Hors ligne
  • Fresh Lemon
  • Messages : 15
  • Karma: 0
Ah, I've solved it.

1. Copy the default template
2. On startpage.pstpl, insert this at the end of the HEAD tag:
<script>
$(function(){
$("[name=register_firstname]").parent().parent().hide()
$("[name=register_lastname]").parent().parent().hide()
});
</script>
3. On register.pstpl, replace {REGISTERMESSAGE1} and {REGISTERMESSAGE2} with whatever you want. (This wouldn't work if you needed multiple languages.)

Sweet!
L'administrateur a désactivé l'accès en écriture pour le public.

Re: Modifying the self-registration text il y a 11 mois 2 semaines #100725

  • firstservey
  • Portrait de firstservey
  • Hors ligne
  • Fresh Lemon
  • Messages : 18
  • Karma: 0
Hello,

I think it is too late now, but you can change the REGISTERMESSAGE1 and REGISTERMESSAGE2 in the following folder: /application/helper/replacements_helper.php

in line 841 & 842 you can change the messages but as you said: translation to a second language is not possible this way
L'administrateur a désactivé l'accès en écriture pour le public.

Re: Modifying the self-registration text il y a 11 mois 1 semaine #100973

  • dweisser
  • Portrait de dweisser
  • En ligne
  • Bronze Donor
  • Messages : 205
  • Remerciements reçus 5
  • Karma: 5
My question pertains to the screen a registrant sees after he/she registers.


Thank you for registering to participate in this survey.

An email has been sent to the address you provided with access details for this survey. Please follow the link in that email to proceed.

Survey administrator Administrator (Cette adresse e-mail est protégée contre les robots spammeurs. Vous devez activer le JavaScript pour la visualiser.)


Am I dense? (yes, but...) I can't seem to find a way to access and alternate this text and formatting. The Register.pstpl doesn't seem to contain this text. Any help anyone?

Nebraska
L'administrateur a désactivé l'accès en écriture pour le public.

Re: Modifying the self-registration text il y a 11 mois 1 semaine #100975

  • dweisser
  • Portrait de dweisser
  • En ligne
  • Bronze Donor
  • Messages : 205
  • Remerciements reçus 5
  • Karma: 5
Found it.

This text is in /(your install directory)/application/controllers/RegisterController.php.

The text is in line 242. However, I'm scared to change it. And, even if I change it, it will be blown away when I update.

Are there alternatives?

Thank you,
David
L'administrateur a désactivé l'accès en écriture pour le public.

Re: Modifying the self-registration text il y a 11 mois 1 semaine #100977

  • tpartner
  • Portrait de tpartner
  • Hors ligne
  • LimeSurvey Team
  • Messages : 4206
  • Remerciements reçus 790
  • Karma: 360
Safer to modify the translation string or create a new "custom" language - manual.limesurvey.org/How_to_translate_L...existing_translation
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.
L'administrateur a désactivé l'accès en écriture pour le public.

Re: Modifying the self-registration text il y a 11 mois 1 semaine #100981

  • dweisser
  • Portrait de dweisser
  • En ligne
  • Bronze Donor
  • Messages : 205
  • Remerciements reçus 5
  • Karma: 5
Thank you T. As always, your advice is appreciated.

But, I simply want to change the text. I don't see how the translation editor can help.
If I could create new {replacement} fields, that might be something, but as it stands the .php sends the email upon registration and prints the text as defined above to the page.

I think I'd have to alter that function, or alter the text, in order to influence the outcome. Am I wrong?

David
L'administrateur a désactivé l'accès en écriture pour le public.

Re: Modifying the self-registration text il y a 11 mois 1 semaine #100982

  • tpartner
  • Portrait de tpartner
  • Hors ligne
  • LimeSurvey Team
  • Messages : 4206
  • Remerciements reçus 790
  • Karma: 360
If you create a custom language for your survey and modify that string in the language file, it will automatically be applied.

That is what $clang->gT() does.
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.
L'administrateur a désactivé l'accès en écriture pour le public.

Re: Modifying the self-registration text il y a 11 mois 1 semaine #100983

  • dweisser
  • Portrait de dweisser
  • En ligne
  • Bronze Donor
  • Messages : 205
  • Remerciements reçus 5
  • Karma: 5
The light is dawning.
I think I now understand this process. I downloaded and installed poedit.
I downloaded the language template file from www.limesurvey.org/translationstatus/limesurvey.pot.

Couple of questions:

Question 1. Does every entry (There are over 10,000 need a "translation" or can I simply "translate" the one(s) I want changed?

Question 2. Will LimeSurvey updates obliterate these edits? Easy workaround is to save the custom language offline and reload upon update.

David
L'administrateur a désactivé l'accès en écriture pour le public.

Re: Modifying the self-registration text il y a 11 mois 1 semaine #100984

  • tpartner
  • Portrait de tpartner
  • Hors ligne
  • LimeSurvey Team
  • Messages : 4206
  • Remerciements reçus 790
  • Karma: 360
1) Simply translate those you want changed.

2) If you create a custom language, it will not be affected by updates.
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.
L'administrateur a désactivé l'accès en écriture pour le public.
  • Page :
  • 1
  • 2
Modérateurs: ITEd
Temps de génération de la page : 0.151 secondes
Donation Image