buff logo

Profiles by latest updated

Back to Index

fid, PROFILE_PUBLIC_LISTINGS); while ($record = db_fetch_object($result)) { $fields[] = $record; } $arguments = array($field->fid); switch ($field->type) { case 'checkbox': $query = 'v.value = 1'; break; case 'selection': $query = "v.value = '%s'"; $arguments[] = $value; break; case 'list': $query = "v.value LIKE '%%%s%%'"; $arguments[] = $value; break; default: drupal_not_found(); return; } $result = pager_query("SELECT u.uid, u.changed, GREATEST(u.changed, u.created) as lastchange FROM {users} u INNER JOIN {profile_values} v ON u.uid = v.uid WHERE v.fid = %d ORDER BY GREATEST(u.changed, u.created) DESC", 20, 0, NULL, $arguments); $output = '

'; while ($account = db_fetch_object($result)) { $output .= theme('profile_profile', user_load(array('uid' => $account->uid)), $fields); } $output .= theme('pager', NULL, 20); if ($field->type == 'selection' || $field->type == 'list') { $title = strtr($field->page, array('%value' => theme('placeholder', $value))); } else { $title = $field->page; } $output .= '
'; print $output; ?>
Click here to read more - if you want to be a part of ITB, sign up it is free to sign up and chat on line