| 1 |
$Id: $
|
| 2 |
|
| 3 |
CONTENTS OF THIS FILE
|
| 4 |
---------------------
|
| 5 |
* Introduction
|
| 6 |
* Installation
|
| 7 |
|
| 8 |
INTRODUCTION
|
| 9 |
------------
|
| 10 |
Advanced Profile Kit (http://drupal.org/project/advanced_profile) provides building
|
| 11 |
blocks for putting together fancy user profile pages like those commonly found on social
|
| 12 |
networking sites.
|
| 13 |
|
| 14 |
INSTALLATION
|
| 15 |
------------
|
| 16 |
1. Install <a href="http://drupal.org/project/panels">Panels 2</a>,
|
| 17 |
<a href="http://drupal.org/project/views">Views</a>,
|
| 18 |
<a href="http://drupal.org/project/cck">CCK</a>,
|
| 19 |
<a href="http://drupal.org/project/bio">bio</a>, and
|
| 20 |
<a href="http://drupal.org/project/link">Link</a>.
|
| 21 |
|
| 22 |
2. Copy the entire advanced_profile module directory into your normal directory for
|
| 23 |
modules, usually sites/all/modules
|
| 24 |
|
| 25 |
3. Copy theme/advanced_profile_author-pane.tpl.php and theme/advanced_profile_view_user-list.tpl.php to your theme.
|
| 26 |
|
| 27 |
4. Enable the advanced profile module in ?q=admin/build/modules
|
| 28 |
|
| 29 |
5. Navigate to ?q=admin/user/settings and enable picture support if you want users to
|
| 30 |
have avatars on their profiles.
|
| 31 |
|
| 32 |
6. Advanced Profile can create the profile node type for you. It comes with fields
|
| 33 |
typically found on user profiles. You can further edit this type to add or remove
|
| 34 |
fields. If you prefer to use your own node type, skip this step. If you just want to
|
| 35 |
add the fields, you can use the content copy module directly and import the contents
|
| 36 |
of uprofile.inc. If you skip this step, you will need to delete the uncreated groups
|
| 37 |
from the panels page.
|
| 38 |
|
| 39 |
a) Navigate to ?q=admin/settings/advanced-profile
|
| 40 |
b) Profile type auto creation: Check this box and save configuration. This option
|
| 41 |
will be disabled once the node type exists and you will need to delete your node
|
| 42 |
type if you want to re-create it. If you get errors with this step, it is due to
|
| 43 |
issues with CCK's content copy module. Try importing uprofile.inc directly at
|
| 44 |
?q=admin/content/types/import
|
| 45 |
c) Navigate to ?q=admin/content/types/uprofile/display and change the labels to
|
| 46 |
inline as needed. This is not carried over via content copy.
|
| 47 |
|
| 48 |
7. Configure Advanced Profile Kit
|
| 49 |
a) Navigate to ?q=admin/settings/advanced-profile
|
| 50 |
b) If you want to use your own images, fill in the path to your image directory.
|
| 51 |
c) The granularity on the profile vists list defaults to 2. Set it to 1 to take up
|
| 52 |
less room or to 3 for more precision.
|
| 53 |
|
| 54 |
8. Configure Bio:
|
| 55 |
|
| 56 |
a) Navigate to ?q=admin/user/bio
|
| 57 |
b) Content type for user biographies: Choose the type you are using to hold the
|
| 58 |
profile data. (User Profile if you had Advanced Profile create it)
|
| 59 |
c) Display bio link: Up to you
|
| 60 |
d) Use bio for user profiles: Check this box
|
| 61 |
e) Takeover profile: DON'T check this box (panels handles it)
|
| 62 |
f) Show fields on registration form: Up to you. If you don't put any fields on the
|
| 63 |
reg form, the user's profile node will not be created until they go to the edit link.
|
| 64 |
|
| 65 |
9. Set access control ( ?q=admin/user/access ): This will vary from site to site, but you
|
| 66 |
will want to look at these items in particular:
|
| 67 |
|
| 68 |
a) access user profiles
|
| 69 |
b) create uprofile content
|
| 70 |
c) edit uprofile content
|
| 71 |
d) edit own uprofile content
|
| 72 |
|
| 73 |
Also note: The included User Listing view provides a list of all profile nodes. By
|
| 74 |
default, it is visible to all roles at "?q=user-list". If you have profile information
|
| 75 |
restricted on your site, you will want to enable access control on this view. Navigate
|
| 76 |
to ?q=admin/build/views/add/user_list and check the roles under "access".
|