Index: blog.module =================================================================== RCS file: /cvs/drupal/drupal/modules/blog.module,v retrieving revision 1.208 diff -u -r1.208 blog.module --- blog.module 15 Dec 2004 21:19:41 -0000 1.208 +++ blog.module 3 Jan 2005 22:19:10 -0000 @@ -12,6 +12,7 @@ function blog_settings() { $output = form_textarea(t('Explanation or submission guidelines'), 'blog_help', variable_get('blog_help', ''), 70, 5, t('This text will be displayed at the top of the blog submission form. It is useful for helping or instructing your users.')); $output .= form_select(t('Minimum number of words in a blog entry'), 'minimum_blog_size', variable_get('minimum_blog_size', 0), drupal_map_assoc(array(0, 10, 25, 50, 75, 100, 125, 150, 175, 200)), t("The minimum number of words a personal blog entry should contain. This is useful to rule out submissions that do not meet the site's standards, such as short test posts.")); + $output .= form_checkbox(t('Display blog author link'), 'show_blog_author_link', 1, variable_get('show_blog_author_link', 1)==1 ? TRUE : FALSE, t("If this option is enabled, a link to the author's blog will be displayed on each blog item.")); return $output; } @@ -256,7 +257,7 @@ function blog_link($type, $node = 0, $main) { $links = array(); - if ($type == 'node' && $node->type == 'blog') { + if (variable_get('show_blog_author_link', 1) == 1 && $type == 'node' && $node->type == 'blog') { if (arg(0) != 'blog' && arg(1) != $node->uid) { $links[] = l(t("%username's blog", array('%username' => $node->name)), "blog/$node->uid", array('title' => t("Read %username's latest blog entries.", array('%username' => $node->name)))); }