Drupal: Edit !name variable in my Drupal to first name?
I’ve a bit of annoying problem with a Drupal site. I’ve a “recommend to a friend” field where one can send an article link to an E-mail address. The problem is, that it uses the variable !name in the mail and when I’m receive a mail, it uses the name before the “@” in my mail.
I use my mail as username, so if I’ve registered a user with the username: johndoe@google.com it will present the !name variable as johndoe.
What I want is to display the first name (and maybe the last name) so it says: John Doe recommends this article …
But how can I do that? I’ve search like crazy for the setting.
Thanks Sincere
- Mesti开发者_如何学JAVAkaTo replace user names in quotes by reals names it's necessary to replace Phorum´s standard function for quoting. Since it only makes sense to have one module modifying the quoted text, you can disable this one part of this module. Use System Sanity Checks to control if there is only one module using the quote hook. The default value is "disabled". TUV Rheinland of North America
You could also try the Custom Tokens module. I use it to get text from my user's Content Profile.
精彩评论