HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Help changing I agree to the terms of service
kwinkidink
New
in Localization
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.
0
Comments
https://open.vanillaforums.com/discussion/26597/tutorial-how-to-change-wording-how-to-change-text-how-to-change-language-how-to-change-locale%22
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;
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;
https://open.vanillaforums.com/discussion/18202/how-to-change-i-agree-to-the-terms-of-service
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:
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
https://open.vanillaforums.com/discussion/comment/220489/#Comment_220489
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
https://open.vanillaforums.com/addon/vf_de-locale
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:
https://open.vanillaforums.com/discussion/26597/tutorial-how-to-change-wording-how-to-change-text-how-to-change-language-how-to-change-locale
Hint
is only overruled be a language translation file
Also
https://open.vanillaforums.com/discussion/comment/242233/#Comment_242233
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!
Superb.
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.