Knowledge Base

Changing the Registration Agreement
Article ID: 81
Written By: Erisar
Written On: Sun Jun 03, 2007 9:42 am
Description: Step-by-step guide on changing the Registration Agreement terms, age, and links.
link to this article on phpbb.com: Select All
[kb=changing-the-registration-agreement]Changing the Registration Agreement[/kb]
link to this article on your own board: Select All
[url=http://www.phpbb.com/kb/article/changing-the-registration-agreement/]Knowledge Base - Changing the Registration Agreement[/url]

Changing the Registration Agreement
  • Options available:
    • Change the Agreement Terms
    • Change the Agreement Age
    • Change the Agreement Links
  • Note: Always backup your files first!
Changing the agreement terms:
  • This will allow you to modify any part or all of the Registration Agreement terms that users must read and agree to in order to register.
  • Open the /language/lang_english/lang_main.php file in an editor such as Notepad etc..
  • Find the code:
    Code: Select all
    $lang['Reg_agreement'] = '
  • The text that you want to appear on your Registration Agreement page is what follows the = ' code.
  • Change that text to whatever you wish. If you want to insert a paragraph break in your text, you can use the <br /> HTML code. If you want to insert an apostrophe ' in your text, you will need to place a backslash \ before it. When you are done, ensure that the code ' ; is at the end of the line
  • So, when you are done it should look like:
    Code: Select all
    $lang['Reg_agreement'] = 'Your agreement text here';
Changing the agreement birth-age
  • This will allow you to change the age on the Registration Agreement terms from the default of 13 years old.
  • Open the /language/lang_english/lang_main.php file in an editor such as Notepad etc..
  • Find the code:
    Code: Select all
    $lang['Agree_under_13'] = 'I Agree to these terms and am <b>under</b> 13 years of age';
    $lang['Agree_over_13'] = 'I Agree to these terms and am <b>over</b> or <b>exactly</b> 13 years of age';
    $lang['Agree_not'] = 'I do not agree to these terms';
  • Do not change the text inside the brackets (Agree_under_13, Agree_over_13, or Agree_not). Only change the 13 that comes before "years of age".
  • So, if you wanted to change the agreement age to 18, it would look like:
    Code: Select all
    $lang['Agree_under_13'] = 'I Agree to these terms and am <b>under</b> 18 years of age';
    $lang['Agree_over_13'] = 'I Agree to these terms and am <b>over</b> or <b>exactly</b> 18 years of age';
    $lang['Agree_not'] = 'I do not agree to these terms';
Changing the agreement links
  • This will allow you to change the page that users are redirected to if they are under your Registration Agreement age (default is 13 years old).
  • Open the [b]/includes/usercp_register.php[b] file in an editor such as Notepad etc..
  • Find the code (near the beginning of the page):
    Code: Select all
    "U_AGREE_UNDER13" => append_sid("profile.$phpEx?mode=register&amp;agreed=true&amp;coppa=true"))
  • Select (in-line) and delete:
    Code: Select all
    append_sid("profile.$phpEx?mode=register&amp;agreed=true&amp;coppa=true")
  • You can now put in any web address you wish after the
    =>
    code. Make sure you enclose the address with quotation marks.
  • So if you wanted the users under your age limit to be redirected to the Disney homepage, it would look like:
    Code: Select all
     "U_AGREE_UNDER13" => "http://www.disney.com/")
       );