A quick fix thanks to MattyJ is...
In showprofile.php find this:
$html = new html;
if ($User == 1) {
$html -> not_right($ubbt_lang['NO_LONGER'],$Cat);
}
And add this AFTER $html = new html;
if (empty($thisuser['U_Number'])) {
$html -> not_right("You must be logged in to view this data",$Cat);
}
So it now looks like this...
$html = new html;
if (empty($thisuser['U_Number'])) {
$html -> not_right("You must be logged in to view this data",$Cat);
}
if ($User == 1) {
$html -> not_right($ubbt_lang['NO_LONGER'],$Cat);
}
Save and upload. Make backups first.