I just need help changing this link on the registration page, not the form, just the link. How do I change the text from 'I agree to the terms of service' to something else? Thats all. Any help appreciated.
Wish it was that easy. I've been to the page you've suggested many times and I've been able to change nearly every other piece of text on the registration page using $Definitions but I am missing the exact reference to change this one. Anyone who has actually done this, I would really appreciate the help.
Why not try searching the forum? If not doing so as a first step, doing that as a second might come to your mind. That's the origin of most answers, which is okay because sometimes you need to know what to search for. But in this case I assume you have to admit that you haven't tried 😉
And even if the approach to change the text in this answer is wrong, the definitions are all here
Yes, I have searched and searched. My last desperate hope was to post here hoping someone had a solution other than to point me places I have already been.
I have tried this reference from all posts above;
$Definition['TermsOfService'] = 'Terms of Service';
$Definition['TermsOfServiceText'] = 'ToS Text';
These two definitions are for the Title and Content of the modal popup. They change those just fine but not the link text next to the checkbox inside the registration form 'I agree to the terms of service'. Although it does have the same reference ID, TermsofService,
<label for="Form_TermsOfService" class="CheckBoxLabel"><input type="hidden" name="Checkboxes" value="TermsOfService" /><input type="checkbox" id="Form_TermsOfService" name="TermsOfService" value="1" class="" /> I agree to the <a id="TermsOfService" class="Popup" target="terms" href="/mysite/home/termsofservice">terms of service</a></label>
The other reference I have found but am reluctant to try because its dated 2011, is this;
If someone can verify that works without breaking my site, I would appreciate it.
You can actually specify a custom ToS url in Vanila.
Add this to your conf/config.php file:
$Configuration['Garden']['TermsOfService'] = 'https://url.to/your/tos';
Ok, all I really want to do is change the text. Would a variation of that allow me to do it?
The definition is listed here
You want to change "I agree" look under " I agree
You can also download a translation file - to find various definitions (that also show syntax for "translating" changing text.
here I look at the German
in it I find
$Definition['I agree to the <a id="TermsOfService" class="Popup" target="terms" href="%s">terms of service</a>'] = 'Ich stimme den <a id="TermsOfService" class="Popup" target="terms" href="%s">Nutzungsbedingungen</a> zu';
Where to put it:
6- conf based - conf/locale.php
is only overruled be a language translation file
THANK YOU! Now THAT is a solution. I really appreciate your patience and time helping me solve this. Hopefully this post will make it easier for someone else moving forward. Thanks again, so much!
I think it was not clear to you what I linked to in my first reply as I used the overall discussion link (if you already had read it you end up on page 3) instead of using a link direct to a specific comment.