Forums / Cotonti / Support / User information

check

roby
#1 2012-06-18 10:44

Hello , how can i check if user after registration updated his personal info (location, bday, sex) and if these info is blank display notification (like below) on the top of site and link to profile and if these inputs are not blank, display nothing ?
 

    Update your account information      

Trustmaster
#2 2012-06-19 04:21

Use a conditional expression in header.tpl of your theme:

<!-- IF {PHP.usr.id} > 0 AND ( !{PHP.usr.profile.user_location} OR !{PHP.usr.profile.user_birthday} OR !{PHP.usr.profile.user_gender} ) -->
<div class="error">Update your account information</div>
<!-- ENDIF -->
May the Source be with you!