This might help Here's a tutorial:
1) create your user fields in the database... using phpmyadmin...
-- a) click on the phpbb_users table
-- b) On the bottom of the page select "add new field"
-- c) give it a name starting with "user_" fox ex. "user_testfield" and set it's type...
----- For this example let's suppose I want a yes/no field. Meaning values 0 and 1 thus using TINYINT.
----- This resilves in this query
"ALTER TABLE `phpbb_users` ADD `user_testfield` TINYINT;"
2) Create a label and explanation for the field...
-- a) open languages/lang_xxxx/lang_extend_profile_control_panel.php and find ?>
-- b) add BEFORE
- Code: Select all
$lang['User_testfield'] = 'Is this the test field?'; $lang['User_testfield_explain'] = 'This field is put here as a test. If you see it, select YES';
-- c) save and upload the file
3) Define the field in the PCP
-- a) Go to ACP > PCP > PCP Wizard > Manage Fields
-- b) in "Select New Field:" select the user_testfield and hit select
-- c) the message "You selected the NEW field user_testfield" is shown
-- d) as "Legend of the field" put "User_testfield" ==> the entry made in the language file (CaSeSeNsItIvE)
-- e) as type, select the same type that is shown in green
-- f) as "Explanation of the field" put "User_testfield_explain" ==> the entry made in the language file (CaSeSeNsItIvE)
-- g) hit submit
-- h) a message is shown "Successfully updated the PCP files"
4) Add the new field to the register page...
-- a) Go to ACP > PCP > PCP Wizard > Add / Remove Page Fields
-- b) In "Select a Page" find "Profile ÂÂÂ » Profile ÂÂÂ » Your profile ÂÂÂ » Registration information" and hit select
-- c) this message is shown: You selected the page Profile ÂÂÂ » Profile ÂÂÂ » Your profile ÂÂÂ » Registration information
-- d) On the left side, in the "Available Fields" box, find "user_testfield" and select it
-- e) click on the -> button
-- f) Check if the field is now on the right side box, called "Selected Fields", at the bottom...
-- g) select the field on the right side box, , called "Selected Fields".
-- h) move the field up to where you want, for example just after username, by using the "Move Up" button
-- i) hit the submit button when field is in your desired place
-- j) Now you come to the "Alter Form Display"; if so, go to 5) else do next steps
-- k) Go to ACP > PCP > PCP Wizard > Alter Form Display (!! that is FORM not PAGE)
-- l) In the "select a page" find Profile ÂÂÂ » Profile ÂÂÂ » Your profile ÂÂÂ » Registration information and hit select
-- m) a message "You selected the page Profile ÂÂÂ » Profile ÂÂÂ » Your profile ÂÂÂ » Registration information" is shown
5) Define the output of the field
-- a) Find your user_testfield, If you followed the example well, it's the second field.
-- b) Make it a required field by checking the "required" checkbox
-- c) As we wanted yes/no, select "radion bottons" as type
-- d) On the right "values list" will appear, select for that field "list_yes_no"
-- e) scroll down and hit the submit button
-- f) a message "Successfully updated the PCP files." is displayed
6) Validate the screen...
-- a) Go to the register page
-- b) see your new field