Just a suggestion
After you applied modifications into ./profile.php file, when you want to upload a picture and you have never picture uploaded before, you have a part of the 'modifyprofilepic' template who appears. This corresponding with this php code:
PHP Code:
$profilepic = $DB_site->query_first("
SELECT userid, dateline, comment, visible, disapproved, reason
FROM " . TABLE_PREFIX . "customprofilepic
WHERE userid = $bbuserinfo[userid]
");
$profilepic['comment'] = fetch_censored_text($profilepic['comment']);
$show['profilepic'] = iif($profilepic, true, false);
It is possible to hide this part of the template?