I know that Drupal has a built in block which shows the last updated blogs. But is there anyway to create a seperate block to show a list of blog authors?

Comments

hruodland’s picture

Thought I'd add in another question: one feature I miss from Movabletype is the ability to have a frontpage list of the latest comment. How would one do a block that does that?

UPDATE: There's one here.

moshe weitzman’s picture

here is some untested code

$numitems  = 15;
$sql = 'SELECT DISTINCT(n.uid), u.name FROM node n JOIN user u ON n.uid = u.uid WHERE n.type = 'blog' AND n.status = 1 ORDER BY n.nid DESC';
$result = db_query_range($sql, 0, $numitems);
while ($account = db_fetch_object($result)) {
  $items[] = format_name($account);
}
$output = theme('item_list', $items);