Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Check if required profile field are filled
charafweb Offline
Junior Member
**
Posts: 12
Joined: Jan 2013
Post: #1
Check if required profile field are filled
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
(This post was last modified: 02-22-2013 01:34 AM by charafweb.)
02-22-2013 01:10 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
Check if required profile field are filled - charafweb - 02-22-2013 01:10 AM

 Standard Tools
Forum Jump: