--- /home/julien/Desktop/pcp.module 2009-08-22 18:08:14.000000000 +0200 +++ /home/julien/Desktop/pcp_new.module 2009-08-22 18:02:54.000000000 +0200 @@ -47,7 +47,12 @@ function pcp_block($op = 'list', $delta $block = array(); switch ($delta) { case 0: - global $user; + // if visitor is seeing a profile other than his own and the URL is /user/(userID), load this uid profile + if ((arg(0) == 'user') && is_numeric(arg(1)) && (arg(2) == NULL)) { + $user = user_load(arg(1)); + } + // else, load the current logged in uid + else { + global $user; + } $complete_data = pcp_get_complete_percentage_data($user); $block = array( 'subject' => t('Profile Complete'),