Hello,

Yesterday I found this module and I think it is aswsome. Thank you!
I use Drupal 7 with Profile2 and Profile2 Pages. Can you provide an option to provide the percentage over fields from different pages or the combination of percentages of all my profile2 pages?

Thank you very much,
td

CommentFileSizeAuthor
#6 pcp-add_all_profile2_completeness-2040653-6.patch5.83 KBjim_keller
#5 pcp-all.png6.18 KBAnonymous (not verified)
#3 pcp-profile2-2040653-3.patch2.59 KBAnonymous (not verified)

Comments

BarisW’s picture

Thanks for the compliment. I won't be adding this myself, but feel free to submit a patch that does this and I'll be happy to review and commit it.

BarisW’s picture

Status: Active » Postponed (maintainer needs more info)
Anonymous’s picture

Status: Postponed (maintainer needs more info) » Needs review
StatusFileSize
new2.59 KB

Because of https://drupal.org/node/2015639 I programed this against 7.x-1.4.
Hopefully you're able to patch dev also.
This patch doesn't support block hiding and "nextfield" for the new block as I don't need it.
Block hiding would need a new option in the main menu of pcp and "nextfield" some more coding because links wouldn't be on the same page.

BarisW’s picture

Just wondering: would this fix this issue too?
#2005552: Combine blocks in one

Anonymous’s picture

StatusFileSize
new6.18 KB

not really, no.
I now use it like in the screenshot in a sidebar.

jim_keller’s picture

Issue summary: View changes
StatusFileSize
new5.83 KB

I needed this functionality, so I created a patch against 7.x-1.x dev that does support next field and block hiding.
I also refactored some of the code so that the module now respects permissions for profile2 entities (it does not count profile types that the active user doesn't have access to edit).

BarisW’s picture

Status: Needs review » Needs work

Hi Jim,

thanks for the patch. Functionality-wise it looks good, but I have two comments on it:

1) It doesn't validate against Drupal Coding standards. Think of indenting, comments, and bracket placements. Can you apply the coding standards?
2) You introduced new permissions ("edit own {$profile_type->type} profile") but they are not declared in a hook_permissions(). We need to implement that too, to make it work.

System Lord’s picture

jim_keller, did you update according to #7?

abramm’s picture

Status: Needs work » Closed (outdated)

D7 reached its EOL back in January 2025, and there is no active release for D7 for this module anymore.
Development or support is not planned for D7. All D7-related issues are marked as outdated in a bunch.

Everyone can apply the patch above (not tested by the maintainers, tested by the community) to their D7 projects.
If the issue remains relevant for D10+ versions, merge requests with proposed solutions for a new module version (D10+) are welcome in a new follow-up issue.

Thanks!

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.