It would only affect your new file if you don't modify the code in user.php. I assume you removed this code?:
Code:
$profilefields = $db->query_read("
SELECT *
FROM " . TABLE_PREFIX . "profilefield AS profilefield
LEFT JOIN " . TABLE_PREFIX . "profilefieldcategory AS profilefieldcategory ON
(profilefield.profilefieldcategoryid = profilefieldcategory.profilefieldcategoryid)
ORDER BY profilefield.form, profilefieldcategory.displayorder, profilefield.displayorder
");
while ($profilefield = $db->fetch_array($profilefields))
{
if ($profilefield['form'] != $currentform)
{
print_description_row(construct_phrase($vbphrase['fields_from_form_x'], $forms["$profilefield[form]"]), false, 2, 'optiontitle');
$currentform = $profilefield['form'];
}
print_profilefield_row('userfield', $profilefield, $userfield, false);
construct_hidden_code('userfield[field' . $profilefield['profilefieldid'] . '_set]', 1);
}
so if you have a list of profilefieldids you want to display in your modified file, you could probably change the query part to be something like (line in red added):
Code:
$profilefields = $db->query_read("
SELECT *
FROM " . TABLE_PREFIX . "profilefield AS profilefield
LEFT JOIN " . TABLE_PREFIX . "profilefieldcategory AS profilefieldcategory ON
(profilefield.profilefieldcategoryid = profilefieldcategory.profilefieldcategoryid)
WHERE profilefieldid IN(1, 2, 3, 4)
ORDER BY profilefield.form, profilefieldcategory.displayorder, profilefield.displayorder
");