| 1 |
|
The PCP (Profile Percent Complete) module allows privileged users to tag profile fields created through |
| 2 |
|
the profile module as fields needed for a users profile to be 100% complete. The module |
| 3 |
|
checks these tagged fields against each user and determines, based on what a user |
| 4 |
|
has successfully completed, the percentage that has been complete. |
| 5 |
|
|
| 6 |
|
INSTALL |
| 7 |
|
============================================== |
| 8 |
|
1. Download and extract the PCP module into your drupal site. |
| 9 |
|
2. Go to admin/build/modules and activate the "Profile Module" and "PCP Module". |
| 10 |
|
3. Make sure you set up the desired profile fields in the profile module at admin/user/profile. |
| 11 |
|
4. Go to admin/user/pcp and Check the profile fields you want to use for completion then save. |
| 12 |
|
- Additionally when creating profile fields in step 3 you can tag the field there as well. |
| 13 |
|
5. Go to admin/build/block and place the "Profile Complete Percentage" block to your desired location. |
| 14 |
|
|
| 15 |
|
After steps 1 - 5 of INSTALL are complete, you will see a basic block informing you |
| 16 |
|
of how much your profile has been complete. All data is determined on the fly so |
| 17 |
|
should you opt to activate or deactivate fields to be required in admin/user/pcp the displayed |
| 18 |
|
data will adjust when the change has been mage. |
| 19 |
|
|
| 20 |
|
THEME |
| 21 |
|
============================================== |
| 22 |
|
One function in pcp.module is being used to theme the output of the profile percentage complete block. |
| 23 |
|
- function theme_pcp_profile_percent_complete($complete_data); |
| 24 |
|
To override the output of the Profile Percent Complete block, copy this function and |
| 25 |
|
paste it into your template.php file and rename it to: |
| 26 |
|
A) phptemplate_pcp_profile_complete($complete_data) |
| 27 |
|
B) sitename_pcp_profile_complete($complete_data) |
| 28 |
|
You now have full control of the output this block will generate. |
| 29 |
|
|