Drupalers,

Is there anything configurable for the built-in blog module that comes with Drupal 4.6?

Nothing appears in the settings menu.

I want to change the the title from "my blog" to "$nickname.'s blog".

Any suggestions?

Shai

Comments

sillygwailo’s picture

It only shows up to users who are logged in, so even if you could change the title wouldn't be visible to others.

But as a workaround, here's some code you could put as a PHP block:

global $user;
if (user_access('edit own blog')) {
  $items[] = l($user->name . "'s blog", "blog/" . $user->uid);
  return theme_item_list($items);
}

It should only show to logged in users who have the permission to edit a blog, and that link would only show to the specific users whose name appears in the link.

(Username formerly my full name, Richard Eriksson.)

Shai’s picture

Richard,

Thank you.

Haven't tried it yet, but what you describe is exactly what I want. The web site is called, "Shai's blog" and when users see "My Blog" they aren't getting that it refers to a blog they can create, they think it refers to Shai's blog.

I'll report back when I have it working.

Shai

Shai’s picture

How do I get rid of "my blog" from the navigation block. At administer/menus the "blog" item shows as locked.

So in sum, Richard's code worked fine as its own block, but the "my blog" is still showing up in the navigation block.

Thanks,

Shai

lukanova’s picture

hi!

i have similar problem. i want to remove the My Blog link from the menu and i don't know where or rather how, because it's locked. is there a way to unlock it and remove it from the navigation block?

any hints would be appreciated....

sjfarrar’s picture

The only way I know of removing it is to disable the 'blog' module altogether.

I'm in the same boat.. I'm setting up a community site and want to have a single site wide blog, to use as the sort of website news, and have this as the front page, but 1) I don't want it called 'my blog' rather 'news' and 2) because it would be the default home page, I probably don't want it in the menu at all, because clicking the main home link would do the job just fine. I'm not sure how to get around this.

Shai’s picture

Why not just use "story" for your content type -- I think all the blog module does that is special is do stuff that you don't want. You can use taxonomy to separate out your "news" content.

I think...

Shai

sjfarrar’s picture

I found that using just the story content type for news items, but making it the only content type that can be 'promoted to front page' does what I want.

So now, when I want to post news, I just add new 'story' content, and this automatically appears on the front page as site news, all other content types show up only in their normal sections (ie forums).

Hopefully that helps someone with thier first drupal setup :)

Stephen

filiptc’s picture

There is one easy and painless way of removing it:

Simply open your blog.module with a text editor and search and remove the following:

    $items[] = array('path' => 'blog/'. $user->uid, 'title' => t('my blog'),
      'access' => user_access('edit own blog'),
      'type' => MENU_DYNAMIC_ITEM);

I have not thoroughly tested this for any possible problems it may cause, so if you do find any please notify.
Hope this helps.

Phil

Caleb G2’s picture

than remove, but yeah it works. :-)

Ranajee’s picture

I am working on "Blog" for my current site trainings.brightspyre.com. I have built up calendar archive for it and monthly archive too. But I need one more favour when clicking on Calendar Archive or Monthly Archive, it show up only the blog content and not their posts. I need to show thier post too. For example Clicking on "August (2)" ... show the blog contents and need to view thier "POSTS".I have Searched out on specific topic but could'nt get it. So Anybody please help me to solve it. Thanks

Regards Ranajee.