Add User blog URL to Profile
I am using Views in D6 to create a page that lists the blogs (not blog entries; separate blogs) of all the users on my site.
The list includes the name assigned by the user to his/her blog. (I have added a field to Profile and made a simple hack to blog-page-user.tpl.php to insert that name.)
I want users to be able to click a link that will take them to the front page of each member's blog.
Again, I can add a field to Profile, but this time the value of that field needs to be populated programatically.
I think it should be very simple. When the user registers, a blog_url field is automatically created in Profile that reads (I think) $base_path + "/blog/" + $uid.
I'm not a programmer, but I hacked that value into function profile_form_profile of profile.module under case: blog_url. It's all just my best very unprofessional guess, but the relevant hack was
case 'internalurl':
$bp = $base_path; //declare a transient variable to hold the text;
$s = "blog/";
$longstring = $bp + $s + $uid;//define the value of the variable as ($base_path) + t("/") + $uid).
//Then do the rest as in all the rest of the things as in the rest of these cases
//Make sure #default-value is the result of the new variable
$fields[$category][$field->name] = array('#type' => 'textfield',
'#title' => check_plain($field->title),
'#default_value' => $longstring,
'#default_value' => isset($edit[$field->name]) ? $edit[$field->name] : '',
'#maxlength' => 255,
'#description' => _profile_form_explanation($field),
'#required' => $field->required,
);
break;
Unfortunately, I can't tell whether the resultant value is correct because the new Profile item doesn't appear in the list of available Profile items in Views.
I think that must mean that this new Profile item (blog_url) is not being recognized by other modules.
Can anyone give me some advice? I'm just an old classicist trying to develop a site for my students, and I'm out of my depths.
Many thanks.

A passable work-around
In case anyone else ever comes across this problem, I've made a functional work-around by attaching the link to the blogger's picture. So, anywhere in the site clicking on a user's name takes you to her user page. Clicking on her picture takes you to her blog page.
Simple substitution of "blog" for "user" in the l () of modules>users>user.module (template_preprocess_user_picture) about line 820.
An option on the profiles page for a user to set his own blog name and a line to produce an automatic link might be a useful and relatively easy feature to incorporate into some new Drupal version.