Download & Extend

activity.module changed name of logged user into text "You" and delete link from the name

Project:Activity
Version:5.x-3.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

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

#1

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

#2

Hi Michelle

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

Bye
Igorik
http://www.somvprahe.sk

#3

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

<?php
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?

#4

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

#5

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

Michelle

#6

Status:active» closed (fixed)

no longer applies

nobody click here