Author: HoRuZ » Sat Sep 23, 2006 5:04 pm
1. Go to your adminpanel.
2. In admin go to P.C.P. -> fields definition,
3. On the bottom, click on 'Add a new field',
(for example we'll make a clan field, user_clan)
4. In 'Base definition' you have to fill out some fields like:
[list type=lower-alpha][*]Field name (Set here the name of the field used in php scripts.) = user_clan[*]Legend of the field (This is the legend that will be use to display the field.) = What clan are you in?[*]Image (You can set here a direct URI or a $image[] key entry )[*]Image title (Text displayed in the bubble under the mouse cursor. You can use a text or a $lang[] key entry)[/list]
5. In 'Output' set the following:
[list type=lower-alpha][*]Class (Determines on which condition the content of the field is displayed. Use generic for a non-conditioned field.) = generic (if you want to show it to all users)[*]Type (Set here the nature of the field.) = VARCHAR[*]Leave the rest unless you understand the explanations.[/list]
6. In 'Input' set the following:
[list type=lower-alpha][*]Required field =Set this to yes will force the user to submit a value for the field.[*]Show visibility = Show to the user, who will see the data being entered.[*]Leave the rest unless you understand the explanations.[/list]
7. Click on 'Submit'.
8. Now you'll have to alter the tables.
[list type=lower-alpha][*]Type = VARCHAR[*]Lenght = How many characters you want to allow users to insert.[*]Null allowed = set to 'yes'.[*]Default value = select the NULL and leave the field empty.[/list]
Now we will add the new field to the registration form:
1. Go to P.C.P. -> PCP Wizard -> Add / Remove Page Fields,
2. In the first drop down menu select 'Profile >> Profile >> Your Profile >> Registration information', click on 'select'.
3. In the left table select the 'user_clan' field you created and click on 'add' and move it to where you want to display it. (example: under user_realname)
4. Click submit.
5. In the next screen, you can select wether you want the fields to be required and visible or not.
6. Once again click on 'Submit'.
To let the field be displayed on someone's profile:
1. Go to P.C.P. -> PCP Wizard -> Add / Remove Page Fields,
2. In the first drop down menu select 'Profile >> Public >> Base Info >> messengers (example)', click on 'select'.
3. In the left table select the 'user_clan' field you created and click on 'add' and move it to where you want to display it. (example: above user_msnm)
4. Click submit.
5. In the next screen, you can select wether you want the fields to be seperated or if they are images or text.
6. Once again click on 'Submit'.
I hope this small tutorial is of some use, I don't know another way to explain how I think the P.C.P. works.
HoRuZ
Last edited by HoRuZ on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.