MyBB Hacks

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 (I'm using "Template Conditionals" plugin.):

PHP Code:
<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 don't know what's the right syntax for 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, and because I want old users to fill the new required field I added.

Any Idea, please.

Thanks


Never mind, I found (here).

$mybb->user['fidX']

Thanks
Reference URL's