Submitted by Erin Rasmussen on
unset ($output);
//
// Enter bloggers below. They must be comma-delimited
$bloggers = "1, 3, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26";
$blogger_array = array(1, 3, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26);
// once we've displayed this many users, we stop
// processing the rest of our database results.
$num_users = 20;
// Display an accessible list of contributors
foreach ($blogger_array as $blogger) {
$user = user_load(array('uid' => $blogger));
if ($first) { echo "
"; }
echo "uid\">$user->profile_name $user->profile_group
";
// print the organization, city, state, country
echo " $user->profile_city, $user->profile_state, $user->profile_country
";
//print list of stories
$listlength=10;
$output = node_title_list(db_query_range(db_rewrite_sql("SELECT n.nid, n.title, n.created FROM {node} n WHERE n.type = 'story' AND n.uid = $blogger AND n.status = 1 ORDER BY n.created DESC"), 0, $listlength));
echo $output;
unset ($output);
$first = 1;
}