Jump to:
| Project: | Invite |
| Version: | 6.x-2.0-alpha1 |
| Component: | User interface |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
This is a very good module but I think it should allow users the option of using their real names in the Make an Invitation page. When a user sends an invitation, the recipient may not recognize a person based on the username he uses with a website. If I send an invitation to a friend and the invitation says something like alpha123 has sent you an invitation to samplesite.com, my friend will not know who alpha123 is and take that invitation as spam and ignore it. However, if I’m given the option to type in my real name and my full name is on the invitation, my friend will take that invitation seriously and would be more compelled to accept my invitation. I hope to see this feature soon. Thank you very much.
Comments
#1
+1 Subscribing
#2
I confirmed Realname token is supported.
#3
I agree that the use of real names, first and last, is much more useful in production. In order to enable this feature, I had to edit invite.token.inc and add:
global $user;
profile_load_profile($user); // described elsewhere
// add the following values to invite_token_values()
$values['firstname'] = $user->profile_first_name; // or whatever you called these fields
$values['lastname'] = $user->profile_last_name; // or whatever you called these fields
// then add the following tokens to invite_token_list()
$tokens['invite']['firstname'] = t('The user\'s first name');
$tokens['invite']['lastname'] = t('The user\'s last name');
#4
Did you have to put this part anywhere specific to get it to work?
global $user;profile_load_profile($user); // described elsewhere
#5
Automatically closed -- issue fixed for 2 weeks with no activity.