Hi

I enabled activity.module a few minutes ago, but after enabling, it changes my name (as login user) from link with name into string "You". It replaced my name by string "You" in private messages too.
I am missing the most the link into my account and now I have just string "You" . (And I would like to choose if I will se my name or just you)

thanks
Igorik
http://www.somvprahe.sk

Comments

michelle’s picture

Yeah, I noticed it changed that all over the place. Is it hitting theme_username or something? Haven't had a chance to dig into the code of the new version, yet.

Michelle

igorik’s picture

Hi Michelle

Yes, I am using theme('username',$account) and it is replaced by string "You".

Bye
Igorik
http://www.somvprahe.sk

sirkitree’s picture

yeah, there is a function in activity.module now that robert put in.

if (!function_exists('phptemplate_username')) {

  /**
   * Format a username.
   *
   * @param $object
   *   The user object to format, usually returned from user_load().
   * @return
   *   A string containing an HTML link to the user's page if the passed object
   *   suggests that this is a site user. Otherwise, only the username is returned.
   */
  function phptemplate_username($object) { ... }

Not sure his reasoning behind this... robert?

robertdouglass’s picture

Well, yeah. The reasoning was to make it be able to say "You..." :P I guess we have to find a more nuanced solution.

michelle’s picture

Actually, the "you" isn't bad, but it would be nice if it still linked to the user page.

Michelle

jaydub’s picture

Status: Active » Closed (fixed)

no longer applies