Changing the Registration Agreement |
Description: Step-by-step guide on changing the Registration Agreement terms, age, and links. |
Author: Erisar |
Date: Thu Mar 27, 2003 4:55 pm |
Type: HowTo |
Keywords: registration, agreement, terms, age |
Category: Miscellanea |
|
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, FrontPage, etc.
Find the code: Code: | $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: | $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, FrontPage, etc.
Find the code:
Code: | $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: | $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 /includes/usercp_register.php file in an editor such as Notepad, FrontPage, etc.
Find the code (near the beginning of the page):
Code: | "U_AGREE_UNDER13" => append_sid("profile.$phpEx?mode=register&agreed=true&coppa=true")) |
Select (in-line) and delete:
Code: | append_sid("profile.$phpEx?mode=register&agreed=true&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: | "U_AGREE_UNDER13" => "http://www.disney.com/")
); |
- Written by Erisar. Last updated on 9 October 2005. - |
|
|