$result=db_query('SELECT name, title, type, visibility, weight FROM {profile_fields} WHERE visibility IN (%d, %d) ORDER BY weight',PROFILE_PUBLIC,PROFILE_PUBLIC_LISTINGS);
$result=db_query('SELECT name, title, type, visibility, weight FROM {profile_fields} WHERE visibility IN (%d, %d) ORDER BY weight',PROFILE_PUBLIC,PROFILE_PUBLIC_LISTINGS);
while($record=db_fetch_object($result)){
while($record=db_fetch_object($result)){
// Ensure that field is displayed only if it is among the defined block fields and, if it is private, the user has appropriate permissions.
// Ensure that field is displayed only if it is among the defined block fields and, if it is private, the user has appropriate permissions.
$result=db_query('SELECT name, title, type, visibility, weight FROM {profile_fields} WHERE visibility IN (%d, %d) ORDER BY weight',PROFILE_PUBLIC,PROFILE_PUBLIC_LISTINGS);
$result=db_query('SELECT name, title, type, visibility, weight FROM {profile_fields} WHERE visibility IN (%d, %d) ORDER BY weight',PROFILE_PUBLIC,PROFILE_PUBLIC_LISTINGS);
while($record=db_fetch_object($result)){
while($record=db_fetch_object($result)){
// Ensure that field is displayed only if it is among the defined block fields and, if it is private, the user has appropriate permissions.
// Ensure that field is displayed only if it is among the defined block fields and, if it is private, the user has appropriate permissions.