Way too English centric. Many languages have no matching features. Personally I see no need to have pages personalized with my name but I do need to know if I am logged in or not. Just the presence of a logon box is sufficient for that. I really object to the hack that changes the word Navigation to my logon name that is part of core behavior. -----Original Message----- From: development-bounces@drupal.org [mailto:development-bounces@drupal.org] On Behalf Of Moshe Weitzman Sent: Monday, August 20, 2007 10:28 AM To: development@drupal.org Subject: [development] Improving theme('username') with inspiration fromFacebook We have a handy function, theme('username') which accepts a uid and name and returns a profile link. But perhaps that function should be a bit more expressive. See below for the parameters to the equivalent Facebook function (from http://wiki.developers.facebook.com/index.php/Fb:name): * Required - int uid - The id of the user whose name to show. * Optional - bool firstnameonly - Show only the user's first name. (default value is false) - bool linked - Link to the user's profile. (default value is true) - bool lastnameonly - Show only the user's last name. (default value is false) - bool possessive - Make the user's name possessive (e.g. Joe's instead of Joe). (default value is false) - bool reflexive - Use "yourself" if useyou is true. (default value is false) - bool useyou - Use "you" if uid matches the logged in user. Setting to false doesn't work if you use the "loggedinuser" substitution for uid, since users can get freaked out by that. (default value is true) - string ifcantsee - Alternate text to display if the logged in user cannot access the user specified. (default value is [empty string]) - bool capitalize - Capitalize the text if useyou==true and loggedinuser==uid. (default value is false) Do folks think this is a good idea for Drupal core? If not, why? Could we deal with 'possesive' and 'reflexive' flags in a way that respects all languages? I know that this function can be enhanced in Contrib, but my desire is to improve the core. -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.484 / Virus Database: 269.12.0/961 - Release Date: 8/19/2007 7:27 AM