Thanks for the module.

On the bloggers home blog page the heading doesn't display the full name. It just says "'s blog"

Where the term is missing.

All that displays is:

's blog

Comments

Chajecki’s picture

That's very weird because it works for me both in D.5 and D.6.
Does anybody else face this problem too?
I have to think how one can trace the origin of the problem.
Do you have any custom path to the blog?
Do you use $drupal/blog/$username or something else?
It's possible than there is some problem with arguments that are passed to
the "block' function but I have to look in the code more careful to make sure whether it's the case.

Anyway, I will appreciate more feedback on this and I will inform you when I figure out what's the problem
in your case.

Cheers.

general need’s picture

Again, I appreciate your willingness to help, but i have switched themes to Garland. Formerly I was using the abac theme.

moriartymedia’s picture

I am having the same problem. I only see "'s blog".

ldway’s picture

I am also having this problem.

Any fix to this yet?

Thanks,

Dave

ldway’s picture

Title: Bloggers home page doesnt display bloggers name » FIX FOUND!

I should have titled this "PROBLEM IDENTIFIED" since we still need an actual FIX!...

in the blog_addons_menu() function find the following:

$items[] = array(
'path' => $path,
'title' => t($account->name . '\'s blog'),
'callback' => 'blog_addons_page',
'callback arguments' => array(arg(2),arg(3),arg(4),arg(1)),
'access' => user_access('access content'),
'type' => MENU_CALLBACK_ITEM,
'weight' => -1,
);
}

The line--> 'title' => t($account->name . '\'s blog'),

is causing the problem. The $account->name var is not being populated with anything. However, I am not sure how to actually fix this.

Anyone?

-- Dave

ldway’s picture

Here is the fix I came up with...

in the blog_addons_menu() function do the following:

DELETE -> $account = user_load(array('uid' => arg(1) ));

REPLACE WITH:

if (is_numeric(arg(1)))
$account = user_load(array('uid' => arg(1)));
else
$account = user_load(array('name' => arg(1)));

-- Dave

nevets’s picture

Title: FIX FOUND! » Bloggers home page doesnt display bloggers name

Please do not change the original title unless it better identifies the issue. Thanks

Chajecki’s picture

Assigned: Unassigned » Chajecki

#6 is a good fix and I will implement it in a new release. Thanks!

Mindy Block’s picture

Yes, #6 it is a good fix! Just noticed the problem the day after I installed it.

graham leach’s picture

Issue summary: View changes

This may be caused by having the user with ID Zero (0) with no name

I found that the reason why this error happened is because the user with uid of 0 did not have a name entered.

To fix that problem, I ran the following code on the MySql database directly (replace [name] with whatever value you desire):

update users set name="[name]" where uid="0";

This immediately solved my problem.