Hi guys

i want to add welcome before the logged in users name that is now displayed in navigation menus heading with items my account and log out...please tell me where shall i add that welcome ( which file name ).

( username )
My account
log out

now i want to change like this

welcome ( username )
my account
logout

Comments

apsivam’s picture

To do what you have asked, you have to hack (edit) Drupal's core file which is NOT advised anyway.
If you still insist doing this open modules/user/user.module file and go to line number 557 and change it to

$block['subject'] = $user->uid ? check_plain('Welcome '.$user->name) : t('Welcome Guest');

Others,
is there anyother way to do this without editing core file?

--
Cheers,
Sivanandhan, P. (a.k.a. apsivam)

calmher’s picture

If you want a welcome user, you might want to create a custom block instead like this:

http://drupal.org/node/395578

Just take out the unnecessary parts (like the points if you don't need them).

I know it's been almost 3 years but I've been looking for a workaround too, and this is the best thing that I found.

Hope that helps!