After i have made modifications into ./profile.php, i have like i have posted in attachment (profilepic.jpg).
And i have this code for the editprofilepic do into the profile.php file:
PHP Code:
if ($_REQUEST['do'] == 'editprofilepic')
{
if ($vboptions['profilepicenabled'] AND ($permissions['genericpermissions'] & CANPROFILEPIC))
{
$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);
$permissions['profilepicmaxsize'] = vb_number_format($permissions['profilepicmaxsize'], 1, true);
// draw cp nav bar
construct_usercp_nav('profilepic');
$navbits[''] = $vbphrase['edit_profile_picture'];
$templatename = 'modifyprofilepic';
}
else
{
print_no_permission();
}
}
And I have no entries in the table customprofilepic.