By Cherrr on
How to remove User name from Navigation menu?
I tried to find $user->uid string in menu.module and menu.inc, but it doesn't help
How to remove User name from Navigation menu?
I tried to find $user->uid string in menu.module and menu.inc, but it doesn't help
Comments
user.module
What you are requesting is to rename the navigation block so that it doesn't display the user's name?
Look for this line of code in the user.module file in the user_block function:
and change it to:
----
http://eUploads.com
thanks its works.
$block['subject'] = t('Welcome '.$user->name);
i want add " Welcome Username " so this is also useful for Websites.....
Mayur Pimple
9270367824
mayurpimple12@gmail.com
Block setting
The user name above the navigation menu block? Enter
<none>for the block title on the block setting page.I didn't know that...
You learn something new everyday :)
I'd do it this way..
----
http://eUploads.com
Edit user.module
The other option is to edit the user.module - after using this http://drupal.org/node/64248
Since the block module asks user.module to write the username in the left-hand menu... you need to change from line 574 if you want BOTH the Navigation menu AND a full name to be shown:
Don't hack in core!
Although this solution may work, it is not recommended to do. You should never do any changes in the core drupal files. When you update your drupal version, you'll lose all changes you've made.
If any changes should be done, it should be in a module or the theme layer (template files).