Community Documentation

Installation and basic setup

Last updated April 4, 2011. Created by Michelle on July 12, 2009.
Edited by mherchel, jacobwg, Roger Saner, kamryn. Log in to edit this page.

Since this is a kit module, it is not necessary to install this exactly as directed. Depending on your experience, you can pick and choose which pieces to use to build your unique profiles. The instructions here will get you up and running with the standard APK profile.

Install and enable APK

  1. Copy the entire advanced_profile module directory into your normal directory for
    modules, usually sites/all/modules
  2. Enable Advanced Profile Kit in the "other" fieldset at ?q=admin/build/modules
  3. Copy advanced_profile_author-pane.tpl.php from the 'theme' directory inside of the 'advanced_profile' project directory to the root of your theme's directory. This is a customized version of the Author Pane template designed for APK. You can make further modifications to this if needed.

Install modules that APK uses

(submodules needed are listed in parentheses)

  • Author Pane 2.x (Author pane) Also see the Author Pane project page for modules it supports to add more functionality.
  • CTools (Chaos Tools, Page Manager)
  • Panels 3.x (Panels)
  • Views 2.x (Views, Views content panes, Views UI) [3.x may work but is untested at this time.]
  • CCK 2.x (Content, Content Copy, Fieldgroup, Option Widgets, Text)
  • Content Profile
  • ImageCache if you want to set the user picture in Author Pane to a standard size.
  • Link (Link - grouped with CCK)
  • User Relationships (UR-API, UR-UI, UR-Views)
  • Statistics (part of core, needed for user visits pane)
  • Comment (part of core, needed for topics/replies/posts views)
  • Facebook-style Statuses for a user "wall". (Alternately you can add the comments/comment form and use comments on the node for this.)
  • If you are using User Relationships and the "Friends" view for it, I highly recommend ImageCache Profiles and its dependencies to be able to size user pictures in Views.

Configure Advanced Profile Kit

Change configuration settings by going to ?q=admin/settings/advanced-profile.

  1. Redirect from profile node to user page: When using nodes as profiles, you have the node sitting out there just like other nodes. This redirect will prevent anyone from visiting that node as it will redirect them to the profile page of the owner of the profile node.
  2. Text of user page view tab: Provides an easy way to change the tab text. You will need to clear the cache if you use this option.
  3. Number of entries: Enter the number of profile visits to show at one time.
  4. Show only the last visit from each user: If checked, a given person will only be listed once no matter how many times they visit.
  5. Granularity of time ago: The granularity on the profile visits list defaults to 2. Set it to 1 to take up less room or to 3 for more precision.
  6. Roles to exclude: Check any roles you don't want to show up on the list. Make note of the performance warning.

Create the user profile node type

The short version: import the contents of uprofile.full.export via content copy.
The long version: http://drupal.org/node/579468

Configure core

  1. Navigate to ?q=admin/user/settings and enable picture support if you want users to have pictures on their profiles.
  2. Configure statistics module if you want to show profile visitors:
    1. Navigate to ?q=admin/reports/settings
    2. Enable access log: Enabled

Set access control

  1. Navigate to ?q=admin/user/permissions
  2. Enable "administer advanced profile" for your admins
  3. Enable "access user profiles" for everyone that you want to be able to view user profiles.
  4. Enable "edit any uprofile content" for your admins so they can edit anyone's profile.
  5. Allow users to create profile nodes by giving them access to "create uprofile content" and "edit own uprofile content". You will not want to give them delete perms.

Configure the user profile page

  1. Navigate to ?q=admin/build/pages
  2. Enable the "user_view" system page. If this is not enabled, APK cannot take over the user profile page. If you are using APK in a custom way and don't wish to use it with Page Manager, you can leave this disabled.
  3. Once it is enabled, click edit on "user_view" to make any desired changes to the profile content or layout.
  4. Example change (Author Pane):
    1. In APK's provided variant, click on "Content"
    2. Click the gear on the Author Pane content pane and then click "Settings"
    3. Here you can change the title and (if Imagecache is installed) the imagecache preset to use for the user picture. Don't change the "Caller" field unless you want to bypass APK's processing.
  5. You can also remove or add to any of the content here to fully customize your profiles.

Theming the profile page

APK does not enable any styles for the profile page by default. This is to prevent you from having to undo APK's styles before you can do your own styling. It does, however, provide style sheets that you can add to your theme to make it look a little nicer. If you would like to use a pre-made style, follow these steps:

  1. Navigate to the 'theme' directory inside of the 'advanced_profile' project directory.
  2. Choose one of the CSS files and copy that entire file to the root of your theme's directory.
  3. Open the THEMENAME.info file found in your theme's directory.
  4. Add stylesheets[all][] = FILENAME.css, where FILENAME is the actual file name of the CSS file you copied in #2.
  5. Clear the cache by going to ?q=admin/settings/performance and clicking the "clear cached data" button.

Page status

No known problems

Log in to edit this page

About this page

Drupal version
Drupal 6.x
Audience
Site administrators

Site Building Guide

Drupal’s online documentation is © 2000-2012 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution-ShareAlike 2.0. PHP code is distributed under the GNU General Public License.