Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By Big Dog on
This is a custom block I wrote. How can I make it then when you click on the persons name you are taken to their blog?
$TmpUser = "";
$result = db_query("SELECT name FROM {users} ORDER BY name");
for ($i = 0, $max = db_num_rows($result); $i < $max; $i++) {
$UserName = db_result($result, $i) . '<br>';
$TmpUser = $TmpUser . $UserName;
}
return $TmpUser;