This is a great module. The only improvement I can suggest at this point is to add a way to make the !name token take the value of something other than the username, since usernames are not always "fully qualified", i.e., my name on a site might be markj but my real name is Mark Jordan. Including an admin setting to define which field in the profile module is the one to use, for example, might be a way around this. I haven't looked at the code yet but if it looks fairly straightforward I might be able to provide a patch to do this, if you're interested.

CommentFileSizeAuthor
#2 name_source.patch3.2 KBmarkj

Comments

ki’s picture

Assigned: Unassigned » ki

You are more than welcome to contribute!
Thanks.

markj’s picture

StatusFileSize
new3.2 KB

I've created a patch against the -dev version that adds this functionality. The patch also fixes a typo (Bibiographic to Bibliographic).

I have only tested this with profile fields that are of type 'single-line textfield' but if you want me to continue, I will test with other types and update the patch. Also, there is no logic to test to see if a given user has a value in the selected profile field; I'll add that as well, so that if there is no value, the raw username is displayed.

ki’s picture

That's great. I'll try to incorporate it when I get off work.

I am also considering using tokens.

markj’s picture

Anything I can do to help out with this?

ki’s picture

Status: Active » Fixed

I have applied your patch to the HEAD.

Thanks.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.