Active
Project:
Blog Add-ons
Version:
5.x-1.0
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
7 Jun 2008 at 02:26 UTC
Updated:
28 Jul 2014 at 16:28 UTC
Jump to comment: Most recent
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
Comment #1
Chajecki commentedThat'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.
Comment #2
general need commentedAgain, I appreciate your willingness to help, but i have switched themes to Garland. Formerly I was using the abac theme.
Comment #3
moriartymedia commentedI am having the same problem. I only see "'s blog".
Comment #4
ldway commentedI am also having this problem.
Any fix to this yet?
Thanks,
Dave
Comment #5
ldway commentedI 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
Comment #6
ldway commentedHere 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
Comment #7
nevets commentedPlease do not change the original title unless it better identifies the issue. Thanks
Comment #8
Chajecki commented#6 is a good fix and I will implement it in a new release. Thanks!
Comment #9
Mindy Block commentedYes, #6 it is a good fix! Just noticed the problem the day after I installed it.
Comment #10
graham leach commentedThis 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.