Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Where/how do I change the link to "Terms of Service" in the registration screen?

I created a different Terms of Service using the Basic Pages application and added links to it on the site. Now I noticed that the registration screen has a link to terms of service but I couldn't find where this page resides.
1. How do I change the link in the registration screen?
2. Where does the default registration screen reside?

Any ideas?

Best Answer

  • R_JR_J Admin
    Answer ✓

    It's in the translation ;)

    $Definition['TermsOfServiceText'] = 
    "You agree, through your use of this service, that you will not use this
    community to post any material which is knowingly false and/or defamatory,
    inaccurate, abusive, vulgar, hateful, harassing, obscene, profane, sexually
    oriented, threatening, invasive of a person's privacy, or otherwise violative
    of any law. You agree not to post any copyrighted material unless the
    copyright is owned by you.
    
    We at this community also reserve the right to reveal your identity (or
    whatever information we know about you) in the event of a complaint or legal
    action arising from any message posted by you. We log all internet protocol
    addresses accessing this web site.
    
    Please note that advertisements, chain letters, pyramid schemes, and
    solicitations are inappropriate on this community.
    
    We reserve the right to remove any content for any reason or no reason at
    all. We reserve the right to terminate any membership for any reason or no
    reason at all.
    
    You must be at least 13 years of age to use this service.";
    
    

Answers

  • R_JR_J Admin

    Looking at the registerapproval view I see this code:

    $TermsOfServiceUrl = Gdn::Config('Garden.TermsOfService', '#');
    $TermsOfServiceText = sprintf(T('I agree to the <a id="TermsOfService" class="Popup" target="terms" href="%s">terms of service</a>'), Url($TermsOfServiceUrl));
    

    So you can simply add $Configuration['Garden']['TermsOfService'] = '/yourtermsurl'; to conf/config.php and that's it!

  • rbrahmsonrbrahmson ✭✭✭

    Thanks @R_J , that answers question #1. But I'm dying out of curiosity about questions number 2 -- where is the source text for the default terms of service? It must be in a file somewhere in the system...

  • R_JR_J Admin
    Answer ✓

    It's in the translation ;)

    $Definition['TermsOfServiceText'] = 
    "You agree, through your use of this service, that you will not use this
    community to post any material which is knowingly false and/or defamatory,
    inaccurate, abusive, vulgar, hateful, harassing, obscene, profane, sexually
    oriented, threatening, invasive of a person's privacy, or otherwise violative
    of any law. You agree not to post any copyrighted material unless the
    copyright is owned by you.
    
    We at this community also reserve the right to reveal your identity (or
    whatever information we know about you) in the event of a complaint or legal
    action arising from any message posted by you. We log all internet protocol
    addresses accessing this web site.
    
    Please note that advertisements, chain letters, pyramid schemes, and
    solicitations are inappropriate on this community.
    
    We reserve the right to remove any content for any reason or no reason at
    all. We reserve the right to terminate any membership for any reason or no
    reason at all.
    
    You must be at least 13 years of age to use this service.";
    
    
Sign In or Register to comment.