Hello,

Is it possible to hide the block automatically once someone completes their profile?

The module is a kind of an incentive for people to complete their profiles, but once they did it, the 100%-filled-out piece of information is not very useful, so I'd like to hide it.

Thanks,
Andrey.

Comments

browlands’s picture

Category: support » feature

Agree, seems pointless telling the user their profile's 100% complete. Nice mod' though. Subscribing.

Bidimus’s picture

I worked around this issue by adding the following code to the blocks page specific visibility settings.

<?php
global $user;
$complete_data = pcp_get_complete_percentage_data($user);
if ($complete_data['percent'] < 100) return true;
else return false;
 ?>
therealwebguy’s picture

Assigned: Unassigned » therealwebguy
Status: Active » Closed (fixed)

This feature is soon to come. There is talk of migrating the pcp module into an API for user with Content Complete module sense the move towards CCK has become so large.

Thanks