Bloggers home page doesnt display bloggers name
general need - June 7, 2008 - 02:26
| Project: | Blog Add-ons |
| Version: | 5.x-1.0 |
| Component: | User interface |
| Category: | support request |
| Priority: | normal |
| Assigned: | Chajecki |
| Status: | active |
Jump to:
Description
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

#1
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.
#2
Again, I appreciate your willingness to help, but i have switched themes to Garland. Formerly I was using the abac theme.
#3
I am having the same problem. I only see "'s blog".
#4
I am also having this problem.
Any fix to this yet?
Thanks,
Dave
#5
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
#6
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
#7
Please do not change the original title unless it better identifies the issue. Thanks
#8
#6 is a good fix and I will implement it in a new release. Thanks!
#9
Yes, #6 it is a good fix! Just noticed the problem the day after I installed it.