If your site uses the admin_menu & menu_breadcrumb modules, you might have noticed something wrong with your page titles on the /user page, similar to this:
# / # <img src="/sites/all/modules/admin_menu/images/icon_users.png" width="16" height="15" alt="Current anonymous / authenticated users" title="Current anonymous / authenticated users" />The incorrect HTML is being output from the admin_menu in admin_menu.module on line 286, but it's caused from the menu_breadcrumb module.
As a quick solution, I added some code to my theme template.php file in a preprocess_page function to replace the titles.
<?php
function MYTHEME_preprocess_page(&$variables) {
if (stripos($variables['head_title'],'icon_users.png')) {
$variables['head_title'] = 'User account | ' . variable_get('site_name', '');
}
if (stripos($variables['title'],'icon_users.png')) {
$variables['title'] = 'User account';
}
}
?>










Didn't work
Thanks for posting this, I was turning grayer by the day due to this issue. Trouble is, the solution didn't work, I'm still getting the icon_users.png Title on my login page (/user). I'm using the Acquia Marina theme if that matters. Any further ideas?
In the issue queue
There is an issue for this bug. The problem is, if the current path is in multiple menus, Menu Breadcrumb doesn't know which menu to use (the admin_menu or whatever other menu contains that menu item). You can track the issue's progress here:
http://drupal.org/node/303247
Patch available on drupal.org
http://drupal.org/node/417052
This patch did the trick
I firstly used the function override here, but then ran this patch, and the problem is comprehensively fixed. Before it only fixed the page-title, not the breadcrumb. So thanks for the page, and thanks for posting this URL to the patch!
Thanks so much!
This problem had been nagging at me, and I finally found your post. Thanks so much, it did the trick and now I don't have to worry about my users wondering why there's a bunch of "code" on the page.
Hi, this is a handy piece of
Hi, this is a handy piece of code and it fixed some of the issues for me on this page - in this situation.
I still get this for the breadcrumb though:
Home / 1 / 0 <img src="/MYSITE/sites/all/modules/admin_menu/images/icon_users.png" width="16" height="15" alt="Current anonymous / authenticated users" title="Current anonymous / authenticated users" /> / 1 / 0
...
Thoughts?
this might help
I think I've worked on this issue before. Try adding something like this to you theme's preprocess_page function in your template.php file:
<?php
// if icon_users.png shows up in breadcrumb, remove
if (stripos($variables['breadcrumb'],'icon_users.png'))
{
// get the breadcrumbs
$bc = drupal_get_breadcrumb();
// loop through them and check for the image
foreach ($bc as $k => $v)
{
if (stripos($v,'icon_users.png')) unset($bc[$k]);
}
// recreate the breadcrumbs
$variables['breadcrumb'] = theme('breadcrumb', $bc);
}
?>
Hope this helps. -Eric