Forum Discussion
xorrkaz
14 years agoGenius
Not sure where you'd want to apply this, but this Freemarker code should give you what you want:
<#assign bio = restadmin("/users/id/${user.id?c}/settings/name/profile.bio").value!"" />
<#assign avatar = restadmin("/users/id/${user.id?c}/profiles/avatar/url").value!"" />
<#if bio == "" || avatar == "" || avatar?matches(".*serverpage/avatar-name/.*")>
<div class="custom-profile-status"><font color="#FF0000">Your profile is 75% complete.</font></div>
</#if>
Sign in to react to this post
djksar
14 years agoMaven
thanks! Does this take into account the default avatar that everyone gets when they create an account or only those that upload their own.
Sign in to react to this post
- xorrkaz14 years agoGenius
Yep. This code makes sure the user has uploaded an avatar and they are not using a system provided one.
Sign in to react to this post