Closed (fixed)
Project:
Profile Complete Percent
Version:
6.x-1.0
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
31 Oct 2008 at 03:26 UTC
Updated:
17 Nov 2008 at 17:09 UTC
AFAIK the PCP module currently displays the % for the currently logged in user. I want to use it on the profile page, showing the % of the user being viewed. How do I do that? Thanks.
Comments
Comment #1
therealwebguy commentedThe best approach to this right off the bat is use custom PHP code in your block configuration settings for the PCP modules. I'm assuming that you are using Drupal's default user/uid for the profile page. If that is the case, you could place something like this in your block display settings box under PHP input mode:
Also, you are most likely going to want and override theme_pcp_profile_percent_complete() so that a "hint" link is not provided. This link will generate an access denied error sense the viewer clicking the link is not authenticated with the correct User ID for the generated Link.
Hope that this helps. Sorry for the long response.