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

igorik - January 28, 2008 - 18:16
Project:Activity
Version:5.x-3.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

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

#1

Michelle - January 28, 2008 - 19:34

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

igorik - January 28, 2008 - 19:42

Hi Michelle

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

Bye
Igorik
http://www.somvprahe.sk

#3

sirkitree - February 10, 2008 - 07:06

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

robertDouglass - February 10, 2008 - 16:46

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

Michelle - February 10, 2008 - 17:28

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

Michelle

#6

jaydub - December 14, 2008 - 09:45
Status:active» closed

no longer applies

 
 

Drupal is a registered trademark of Dries Buytaert.