MyBB Community Forums

Full Version: Check if required profile field are filled
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,
I want to add something like this to the header template (using "Template Conditionals" plugin by ZiNgA BuRgA.):

<if $required_profile_field['fidX'] == "" then> /*where X is the Custom Profile Field ID.*/
<script>
alert('Hello {$username}, Please check your user profile, there are some required field that have to be filled. Thanks' );
</script>
</if>


But I can't figure how to to this: $required_profile_field['fidX'] == ""

I want to do this because I have installed "Facebook Connect" plugin, and when a new member registered using this plugin he/she did not fill those field.

Any help, please.

Thanks

I found it: $mybb->user['fidX']