Right, well I want to edit my drupal blog name instead of "Username's Blog" I want it to be something else. How can I modify it?

Comments

ananto’s picture

Use the Locale module from drupal core.
Add new languange of your own, and go to the manage strings to search for "blog" and find term "@username's blog".
Edit this term to whatever you want. The term "@username's" will shown the user's name.

robominister’s picture

Okay, I read the response here, and the thought of importing a new language just to modify the title of a blog- well, uh, alarmed me..
My first concern is that I have already installed my Drupal 6.2 and have just got it working properly. I only speak one language, so I am afraid if I import another, the whole site will click over into the new language that I don't speak!

Still, I activated the Locale module, the default language English was already installed.

The page read:

Locale -> Translate Interface ->
Language: English Built in interface: n/a

in it's menu:
Translate interface:
I selected 'Search'

and with the defaults I did a search on the word blog'.
it returned:
'No strings found for your search.'

I specified
search option

Language: English (provided by Drupal)
it returned:
'No strings found for your search.'

I assume this is because I did not load a language and am trying to search on the default?
Fine, next I just tried to "Add new language of your own"

I tried to continue, but the following link did not inspire me with confidence.
http://drupal.org/node/222061

I am now officially stuck.

I also found this:
http://www.thesitewizard.com/blogging/remove-username-from-drupal-blog.s...

But anytime the installation is updated, the modifications are lost and I'd have to go back in to configure this.
Is there some compromise between these methods?

Please, is there a reasonable way to just change the name of an existing users Drupal blog?

Thanks.

monstordh’s picture

Is there a way to change the Blog name without having to use the Locale module? It puts too much drain on my php memory and crashes Drupal (i have 20mb allotted at present). I'm running 6.3. Any help would be greatly appreciated.

dave reid’s picture

Another recommendation for String Overrides. Excellent module.

starmonkey’s picture

@name's blog -> "Some Blog Title Here"

What I do want is to change the blog title on a per-user basis, eg

John's Blog -> "John's Blog of Power"
Sue's Blog -> "Sue's Demure Blog Of Bloggery"

Can you do this with string overrides?

ripcloud’s picture

To change a blog name in 6.9x -
edit this file under your modules directory:
blog.pages.inc

change this line:
drupal_set_title($title = t("@name's blog", array('@name' => $account->name)));

to either another system variable or hardcode it (i did this for my site as it needs only one blog):
drupal_set_title($title = t("Ripcloud Automation Blog"));

Also: you may want to change the rss feed channel name as well in the same file.

---------------------
automate your websites, blogs, and CMS with free incoming custom content syndicatiom from ripcloud.com

Jeff Burnz’s picture

You're telling users that its preferable to hack core files rather than use a very light weight module? You're breaking rule #1 with Drupal - Don't hack core files.

Edit, sorry, made a typo.

ripcloud’s picture

jmburnz:

i do not quite understand this in the help file for string override:
"To find the strings you can actually change, open up a module and look for t() function calls. Places where %, @, or ! are used means that the translation contains dynamic information (such as the node type or title in the above examples), these are not translated while the text around them are."

does this mean that you need to enter a new string override setting for each user blog because the drupal code generates the blog name with an @ replacement - or can you use string override like replace "@user's blog" with "@user_id homepage" or something like this?

Also does string override propogate out to url alias mod?

i could not figure out how to wildcard the string replacement so i hacked it. maybe if you post the string replacement you used it would help as the docs for string replacement are confusing to me as to how to do this w/o hacking core mods. thx

---------------------
automate your websites, blogs, and CMS with free custom content from ripcloud.com

Jeff Burnz’s picture

To find the strings you can actually change, open up a module and look for t() function calls. Places where %, @, or ! are used means that the translation contains dynamic information (such as the node type or title in the above examples), these are not translated while the text around them are.

Seems fairly self explanatory - use the whole string, the dynamic information will be added as per normal.

Therefore "@name's blog" is the whole string, so you should be able to do something like "@name's kick ass blog", one assumes, try it, been ages since I used this module, I vaguely recall doing something similar.

drupalben’s picture

Hi,

I want to be able to do the same thing, I tried the string override module and I can change @name's blog to @name's amazing blog etc. (although that unfortunately doesn't work for the teaser link to their blog - any ideas on that?), however I want to be able to change a specific user's blog to something different, e.g.

John's blog should become 'Life in the fast lane'
Jane's blog should become 'A tale of a lonely person'

etc., which string overrides doesn't seem to be able to do.

Any other suggestions?

Cheers,

Ben

rusdvl’s picture

I am also looking for a way to do the same thing... so if there are sevral blogs, I want to have the option to rename every blog to what ever i want. Anyone know how to do so?

MountainX’s picture

http://drupal.org/node/231227

There is a 6.x version of authorship module. It works perfect and it DOES work for the teaser link to their blog. :)

mhals’s picture

I installed authorship and changed 'submitted by' name, but i don't seem to be able to change the blog name. is this possible with authorship module?

thanks,
m

Road Runner’s picture

Check out Advanced Blog - I believe that might do the job. I can't recall exactly since I test so many things.

wheelercreek’s picture

You can also throw a little code into your theme's page.tpl.php file. Drop this in before the title is output.

This would change the title on the main blog page (where it lists blog entries for all authors):

  //customize the title for main blog page
  if (arg(0) == 'blog')
  {
	$title = 'Some new blog name'; 
  }

To handle a specific blog page, use the below and change the "1" to whatever your blog id is:

  if (arg(0) == 'blog' && arg(1) == 1))
  {
	$title = 'Some new blog name'; 
  }

The arg() function is just looking at the URL parameters.

cleanthes’s picture

Worked perfectly and very simply.

funcrunch’s picture

Copying and editing page.tpl.php from my Zen subtheme did the trick. Thanks very much for the helpful tip!

jebernier’s picture

Not sure where to put in the page.tpl.php file

What would the code to print title output look like?

Is this it:

if ($title):

print $title;

endif;

Sorry, programming N00b here

AlexanderPop’s picture

http://drupal.org/project/blogtitle - didn't work for me
http://drupal.org/project/advanced_blog - did
"Allows users to give their blog a title and description"

elmnt’s picture

Seriously? A core file hard-code, or a PLUG-IN to change the name of a blog? I'm a regular Wordpress user, new to Drupal. This is pretty pathetic.

magiainformatica’s picture

I tried suggestions but the text in link retain user ......

I solved with a patch to \modules\blog\blog.module.
in function
/**
* Implementation of hook_link().
*/
function blog_link($type, $node = NULL, $teaser = FALSE)

old

      /* comment out 
      $links['blog_usernames_blog'] = array(
        'title' => t("!username's blog", array('!username' => $node->name)),
        'href' => "blog/$node->uid",
        'attributes' => array('title' => t("Read !username's latest blog entries.", array('!username' => $node->name)))
      );
      */

now

       $links['blog_usernames_blog'] = array(
        'title' => "EdillevanteCcel blog",
        'href' => "blog/$node->uid",
        'attributes' => array('title' => t("Read !username's latest blog entries.", array('!username' => $node->name)))
      ); 
wheelercreek’s picture

Another way to tackle this is to just bypass the blog teaser pages entirely (including the main blog page), and create your own customized blog home page with the Views module. That way you can bring in the blog teasers, format the page title, use custom formatting for the dates and decide what action links you want, etc..

aaronpinero’s picture

Unfortunately, a number of the suggestions here don't work for the complete problem. At least not in D7.

- String substitution for the blog name (Locale or settings.php): this will solve the problem of the blog name in the breadcrumb but not in the title and not in the links printed at the end of the blog post.

- Title modification: Works for a single blog, but if you have a lot of blogs, this could quickly become unwieldy. Also doesn't fix the breadcrumb or the links at the end of the post.

- Using views to customize the Blog page. Yes, you can do this, but once you are in a blog post, you still have all of the problems you started with. The links at the end of the post don't link back to the nice custom view, they link back to Drupal's default blog post list.

If the blog module provided some means for naming an individual's blog which would override the names in the breadcrumb, the title, and the links in one shot, that would be the best solution. This seems more elegant and efficient than whatever host of customizations and contrib modules that are currently required to solve what is simply just a naming problem. I've been looking at this issue for a couple of days (all I really want is to change "blog" to "Blog", for crying out loud) and the best way currently seems to be modifying the core module. I know it's not considered Drupal kosher, but there aren't any reasonable options at this point. I know if this were Wordpress, I could just write my own version of blog_view and blog_page_view in my functions file. Can I not do something similar in template.php?

wheelercreek’s picture

Recently had to do this again.. seems to happen to me all the time. Here's my latest solution for D7:

Add the following preprocess code to your theme's template.php file (these functions may already be there, in that case just add the lines within the functions):

function yourThemeName_preprocess_html(&$vars) {
	$d = drupal_get_destination(); 
	if ($d['destination'] == 'blog') {
		$vars['head_title'] = 'My Custom Blog Title'; 
	}
}

function yourThemeName_preprocess_page(&$vars) {	
	$d = drupal_get_destination(); 
	if ($d['destination'] == 'blog') {
		drupal_set_title('My Custom Blog Title');
	}
}

Can't find any way to modify the title of the RSS feed however, without modifying core code. The function that needs to be changed is blog_feed_last() in modules/blog/blog.pages.inc. Doesn't seem to be any way to overwrite that one.

And to those complaining that "this is so easy in Wordpress" - well, in all fairness, Wordpress is a blogging system isn't it? That said, yes - I agree this should be easier.