#4731 closed enhancement (fixed)
Include username in notification emails
Reported by: | sooskriszta | Owned by: | sooskriszta |
---|---|---|---|
Milestone: | 2.1 | Priority: | normal |
Severity: | normal | Version: | 1.0 |
Component: | Core | Keywords: | has-patch |
Cc: | vivek@…, tw2113@…, tanner@… |
Description
When a user registers as member, they are sent an account activation link in an email.
That email should also include the username.
In fact, all email notifications should include the username.
Attachments (4)
Change History (26)
#1
@
12 years ago
- Milestone changed from Awaiting Review to Future Release
- Type changed from defect (bug) to enhancement
- Version changed from 1.6 to 1.0
#3
@
11 years ago
It takes more than that, because we don't generate these emails in some cases - WP handles registration emails on Multisite. I'm not opposed to having this in 1.8, but someone will need to patch it, and I'm not sure I will have the time in the next 8 days.
#4
@
11 years ago
We don't have to worry about cases where WordPress handles the emails - WordPress typically does send out usernames in notification emails. The problem is only with the messages sent out by BuddyPress.
#5
@
11 years ago
Of all the tickets I have bumped today, this one is the most shameless, and for that I apologize. But really, really, really hope this simple to do but important to have bit is included in 1.9
#9
@
10 years ago
- Milestone changed from Future Release to 2.1
- Owner set to sooskriszta
- Status changed from new to accepted
Which files are responsible for generating the mail content? I'll try to cook up a patch. Will need a bit of handholding.
#10
@
10 years ago
Email notifications are generated in a variety of places throughout BuddyPress. The registration emails are built in these functions: https://buddypress.trac.wordpress.org/browser/tags/2.0/bp-core/bp-core-filters.php#L295
#13
follow-up:
↓ 16
@
10 years ago
- Keywords needs-patch added; has-patch needs-testing removed
Thanks for the patch, however the username will need to go inside the __()
call to ensure the entire string can be translated properly (look at %1$s
stuff we have in the string already; these are gettext placeholders).
#14
@
10 years ago
- Cc tanner@… added
I'd be happy to help out with the patch here. Is there a reason that updating the default message is a better solution than using a filter in this case?
#15
@
10 years ago
Because we can just change BuddyPress here, we don't need to filter to change our own code. :)
@
10 years ago
Updated the diff to include both MU and single site user registration. Also moved username within the translation function.
#16
in reply to:
↑ 13
@
10 years ago
Replying to DJPaul:
Thanks for the patch, however the username will need to go inside the
__()
call to ensure the entire string can be translated properly (look at%1$s
stuff we have in the string already; these are gettext placeholders).
Ok. I thought __()
stuff was just the stuff that needed translation and username doesn't. Anyway, attaching updating patch.
#17
@
10 years ago
- Status changed from accepted to assigned
Argh! Didn't include file patch in previous.
#18
@
10 years ago
Thanks, this looks better (2.patch). Just wanted to check that the email needed those line breaks right at the start (we don't have those currently)?
In 1.8 please? Shouldn't take more than 10 mts to edit code and upload patch (in my imagination) :-P