Closed (fixed)
Project:
Profile Complete Percent
Version:
6.x-1.2
Component:
Miscellaneous
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
26 Oct 2008 at 14:57 UTC
Updated:
23 Apr 2010 at 14:20 UTC
Jump to comment: Most recent file
Comments
Comment #1
therealwebguy commentedThank you for the request deverman. I would like to hear more specific solutions for this feature request. Currently, you have access to override the theme function
theme_pcp_profile_percent_complete($complete_data). Inside of the parameter$complete_dataI have available the$complete_data['percent']which contains the current percent value that has been complete. I would suggest overriding this theme function in your template.php file and doing what you would like do if that value is 100. Here is an example template.php function:If you are thinking of something more specific, please specify in more detail or provide a code sample of what it is you are thinking about to help me conclude if its something that we will integrate into the v3.x release of PCP.
Thanks again!
Comment #2
therealwebguy commentedChanging status to active (needs more info)
Comment #3
deverman commentedThis information helps a lot but I think it would be great if when the profile reaches 100% an action is triggered so that we can have something happen without programming it. I would like to send an email with a link to a coupon or something to give people a reward for filling out their profile. I don't want to have to program it and I want the system to only send it once. Hope it can be added later.
Comment #4
pvhee commentedA good approach for this would be to use rules integration. Check #365255: add new user role when profile is completed to xx % for a related post but for Content Complete (completion on content types instead of core user profiles). What should be done is to port the patch submitted in #365255: add new user role when profile is completed to xx % to Profile Complete Percentage.
Comment #5
ademarco commentedHere is a patch for integration with rules, similar to #365255: add new user role when profile is completed to xx %.
This is how it works:
The patch exposes one condition "Check profile fields completeness" and one action "Redirect the user to his own profile edit page" to the rules module. You can configure the condition selecting which profile fields you want the user to fill in. If not all the profile fields are filled in, the action will then redirect the user to the profile edit page.
A possible usage is to remind the user that he still has to fill in some profile fields each time he logs in. Since it uses the rules module, you can hook up whatever event on the profile complete action, like sending an email when the user fills in all the fields etc...
Comment #6
CarbonPig commentedsubscribe - Using Rules, one could assign userpoints? - Great work, looking forward to a solution.
Comment #7
pvhee commentedIndeed, using rules you can assign userpoints. You can use the condition of this module to check for completeness, and the action of assigning user points from the user points module.
One issue however is that you should assign user points only once, so you would need to create some kind of truth value that sets to true once the condition is reached (eg the user has completed his profile, so = 100). If not, the user will get points every time your rule is triggered. Then, you would have an extra condition that checks if the truth value has been set previously to true.
I did a quick test with rules and it seems the creation of a truth value is supported. However you cannot recall the value in a condition at this moment. I would have to research a bit better what is supported until now with rules.
Comment #8
therealwebguy commentedEveryone, thank you so much for the posts. PCP went on hold there for a little while do to some personal issues. I'm back at it!
I think this is great approach integrating the rules into pcp. antoniodemarco, thank you for taking the time to submit a patch. It is currently under review.
Stay posted guys, I'll get all of these new feature implemented as fast as I can! Keep Rockin!
Comment #9
mairav commentedSuscribe.
I hope you can add the support with rules soon, I need this feature in a site i'm developing!
Thanks!
Comment #10
therealwebguy commentedResolved
Comment #11
truyenle commentedHi,
I don't know whether this is the right place to post this since I couldn't find any other suitable place.
Is there a way to configure so that PCP block will also have a link/button or something called "don't show this to me anymore", so that if users click on this the block will be disappear although hasn't reach 100% yet.
I think we should force users in this case but give them a choice.
Thanks
Truyen