Come together with the global Drupal community in Rotterdam, 28 Sept – 1 Oct 2026. Sessions, contribution, connection, and Early Bird savings until 8 June.
well,..since i'm not a programmer :) i imagine that one can add certain rules after profiles are completed by user, ex send email to user, or give points to them. And when their profile isn't complete we can blocked pr give them restricted role to them.
the Content Complete module has it's Rules integration,...and i think it's just when User profile is completed. sory,..here's their documentation regarding Rules configuration CC Documentations
Committed the condition to DEV. The trigger is harder to implement, because therefor the logics of the module needs to be changed a bit. Let me know if you really need that now.
@BarisW: Reading back I guess you paused the development on the Rules Trigger. How much work is their to do? I need users to complete their profile before they can go any further on the website. So I need a trigger that reads the percentage. Something like this:
//example script
if ($percentage < 100%) {
drupal_goto('page to explain that they need to complete profile');
}
I could make my own module for it, but if you are just about their, I like to try/test your solution.
Rules integration would make this module much more functional. Views integration would definately rock as well. It only works as a display function right now.
Would I think what would improve the module as well is not to check for mandatory fields but have this a seperate setting. I can imagine that mandatory fields are an absolute minimum but maybe onely make up 50% of a 'complete' profile. With current options of PCP this isn't possible.
From what I'm reading, this issue really is still an issue, correct? What is the update on Rules integration? I can't seem to find the conditions in Rules created by this module.
That's just it. I am. 7.x-1.3+9-dev is the version and I see the pcp.rules.inc file. I'm not using the core profile. I'm using the profile2 fields and I've set a few fields to PCP required.
Comments
Comment #1
BarisW commentedNo, not yet. How do you see it working? Can you explain a use-case where it makes sense?
Comment #2
hendroutomo commentedwell,..since i'm not a programmer :) i imagine that one can add certain rules after profiles are completed by user, ex send email to user, or give points to them. And when their profile isn't complete we can blocked pr give them restricted role to them.
Comment #3
BarisW commentedOk, that makes sense. Can you provide me with a list of Conditions/Triggers you'd like to see?
Some I can think of:
Conditions:
- User profile is completed (true/false)
Triggers:
- User improved profile data (submits one or more fields)?
Any more you'd like to have?
Comment #4
hendroutomo commentedConditions:
- User profile is completed (true/false)
Triggers:
- User improved profile data (submits one or more fields)
right now this is what i looking for :) maybe other drupalers have some other thing?
Comment #5
hendroutomo commentedthe Content Complete module has it's Rules integration,...and i think it's just when User profile is completed. sory,..here's their documentation regarding Rules configuration CC Documentations
Comment #6
hendroutomo commentedhow is this issue going?
Comment #7
BarisW commentedCommitted the condition to DEV. The trigger is harder to implement, because therefor the logics of the module needs to be changed a bit. Let me know if you really need that now.
Comment #8
BarisW commentedNo response in a month, so marking this fixed.
Comment #10
brayo4 commentedHello, has the rules integration been activated?? block still shows even after profile = 100%. thank you for your work.
Comment #11
BarisW commentedHey. Your issue has nothing to do with Rules.
Please open a new issue instead of re-opening non-related ones.
What you describe is a configuration in the PCP settings (hide block when completed). Did you check your settings?
Comment #12
hanskuiters commented@BarisW: Reading back I guess you paused the development on the Rules Trigger. How much work is their to do? I need users to complete their profile before they can go any further on the website. So I need a trigger that reads the percentage. Something like this:
I could make my own module for it, but if you are just about their, I like to try/test your solution.
Comment #13
bartezz commentedRules integration would make this module much more functional. Views integration would definately rock as well. It only works as a display function right now.
Would I think what would improve the module as well is not to check for mandatory fields but have this a seperate setting. I can imagine that mandatory fields are an absolute minimum but maybe onely make up 50% of a 'complete' profile. With current options of PCP this isn't possible.
Cheers
Comment #14
lonehorseend commentedFrom what I'm reading, this issue really is still an issue, correct? What is the update on Rules integration? I can't seem to find the conditions in Rules created by this module.
Comment #15
BarisW commented@capano: you can do that with the Condition (if profile is not completed, goto.. )
Bartezz: Rules integration is already in code. New improvements are welcome, but in a new issue and not in existing issues.
@lonehorseend: Conditions should work (try the 7.x-1.x-dev)
Comment #16
lonehorseend commentedThat's just it. I am. 7.x-1.3+9-dev is the version and I see the pcp.rules.inc file. I'm not using the core profile. I'm using the profile2 fields and I've set a few fields to PCP required.
Comment #17
BarisW commentedWe might need to double-check if this is working.
The integration has changed in issue #1705434: include files are always included and we have two more issues dealing with this: #1855124: pcp.rules.inc is added twice and caused WSOD and #1900240: Fatal error: Cannot redeclare pcp_rules_condition_info().
Time, if I only had more time ;)
Comment #18
lonehorseend commentedTime . . . What's that? A four letter word that often escapes it's meanining and is either too short or too long . . . :) I understand completely.
Anyway, quick question, do I have to load the user in rules to get access to this, perhaps?
Comment #19
BarisW commentedTry clearing caches.
After I cleared my caches, the Rule appeared. See screenshot.
Comment #20
Anonymous (not verified) commentedRules integration seems to be missing from latest devx. It seems that the pcp.rules.inc is not loaded?
Comment #21
Anonymous (not verified) commentedNever mind, is due to profile2
Comment #22
scottsawyer@morningtime
How was this due to profile2? How did you fix / change it?
@BarisW
I am not seeing the Condition "User Profile Complete". I am on 7.x-1.4 and cleared caches.
Is this only supposed to work on the Dev branch?
What other information can I give you?
** Edit **
I installed 7.x-1.x-dev and it appears in the conditions. Thank you!