After installing the RealName module, I still get the username showing up in the emails sent by the OG notifications messaging template for group membership requests and new group content notifications. How do I get real-name for the current user and the node author for the OG messaging templates?
I use the following templates:
Membership request for '@group' from '@username'
To approve or deny this request, visit !approve_url.
You may approve or deny all requests and manage all members at !group_url.
Personal message from @username:
------------------
@request
and for new content:
Greetings, [user],
[type-name] '[title]' by [author-name]
[node-teaser]
Read more: [node-url]
Post reply: [site-url]/comment/reply/[nid]#comment-form
Comment | File | Size | Author |
---|---|---|---|
#9 | realname_token_system_mail_notifications.patch | 2.43 KB | manuel.adan |
Comments
Comment #1
tborrome CreditAttribution: tborrome commentedits not just OG notifcations. I do not see any real-name for other types of email notification such as the emails sent by the Signup and RSVP modules as well as Send Email action ... even the core's new user registration email sent does not show real-name. It works accross the site, but just not in email notifications. Any ideas how to get Real-Name to work for email notifications?
Comment #2
mstefanko CreditAttribution: mstefanko commentedsubscribing
Comment #3
bryancasler CreditAttribution: bryancasler commentedNot sure if this is related, but it's possible.
Comment #4
roball CreditAttribution: roball commentedWould also love to see a !realname token for the "User e-mail settings" at "admin/user/settings".
Comment #5
bryancasler CreditAttribution: bryancasler commentedSince this is getting no activity I am looking here as a possible work around http://drupal.org/node/792244#comment-2957484
Comment #6
bryancasler CreditAttribution: bryancasler commentedAlso looking at this patch http://drupal.org/node/333545#comment-1119994
Comment #7
YK85 CreditAttribution: YK85 commentedPlease help test and get committed #792244: Add !username_themed; replace Subscriptions' *_realname? It will definitely be a workaround until development is done here.
Thanks!
Comment #8
liquidcms CreditAttribution: liquidcms commentedthis works for me... a bit of a cludge as you would need to actually look up settings for realname to determine what fields are actually used to create the realname.
this is also based on logintobbogan being there for the std user register email (i.e. need a different case for if that module is disabled.
Comment #9
manuel.adanHi,
The attached patch for version 1.4 tries to solve it, adding a new !realname token. I only use content_profile, so it has not been tested for core profile module. It is also aware of logintoboggan module if present. However, in new user account creation, realname_make_name function returns an arbitrary string (as cited in #3), so this patch does not work correctly in such cases.
Comment #11
kevinquillen CreditAttribution: kevinquillen commentedNone of the patches are working for me. How can I change the welcome email when a user registers? The site I am working on abstracts usernames completely, so I would like to see RealName replace username everywhere. I can't seem to change the outgoing mails.
Comment #12
kevinquillen CreditAttribution: kevinquillen commentedIn #9, it makes reference to message['body'][0] whereas #8 uses only $message['body']. After commenting out the str_replace on the body in #9, the solution in #8 works for me.
I can't seem to get #9 to work for me at least in the case of the Welcome message.
Comment #13
StevenJay CreditAttribution: StevenJay commentedThis modification works for me. I have added all the op codes so it should replace the token !realname in the subject and body of all the user emails with the realname. Change HOOK to your module name.
Comment #14
roball CreditAttribution: roball commentedWould you like to provide this as a patch for the RealName module?
Comment #15
azin CreditAttribution: azin commented#9: realname_token_system_mail_notifications.patch queued for re-testing.
Comment #16
gillisig CreditAttribution: gillisig commented#9 is not working for me and not #13 either.. #13 just replaces !realname with the normal username.
Comment #17
tobiberlinDid anyone get this to work? I still can not get the realname into the users confirmation email after registration
Comment #18
tobiberlinAdding:
for me it works when I use Mail Editor module - and core profile module fields for defining the first and last name. When realnames are calculated out of fields from profile core module I get the wished result - if I use CCK fields from a content profile node which is filled in during registration the username for logging in is used in the confirmation mail.
Best,
Tobias
Comment #19
zany CreditAttribution: zany commentedSee the token_registration_mails module for genuine Token support.
Comment #20
hass CreditAttribution: hass commented