That code you posted shows an error if the user hasn't filled out the required profile fields, if it's not the login or profile page. It looks like $vbulletin->session->vars['profileupdate'] is the flag that says whether profile fields need to be filled in. It looks like that flag is set to 1 in include/functions.php in exec_shut_down().
But I'm not sure I understand your problem - is it showing the error even though your fields shouldn't be required, or do you you want a mod that shows the message even though your field is not on the "Edit Your Profile" page?
|