Opened 11 years ago
Closed 11 years ago
#5554 closed enhancement (wontfix)
Filter for spam error messages
Reported by: | tw2113 | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | Core | Keywords: | |
Cc: |
Description
I know there are at least 2 places where spam-marked users will see "<strong>ERROR</strong>: Your account has been marked as a spammer." messages. As a co-developer for a moderation plugin that intends to prevent BuddyPress and bbPress area access, it'd be nice to be able to filter this string without resorting to the gettext filter. That way developers can change the wording to something like "Your account has not been cleared for full access" or so.
I plan to utilize the new "mark as spam" functionality in BP2.0 where possible, but changing the verbiage when our plugin is active as well will allow to make the message less threatening and accusing.
Change History (4)
#2
@
11 years ago
I agree with r-a-y. Though, just a few notes:
- The BP functions where these strings live are very small. You could, in theory, unhook them and then rehook your own versions that contain a better string
- Be very careful if you plan to use BP's spam status for something other than actual spam. For example, if you spam a user on a multisite installation, it marks their primary blog as spam. If you need a different (gentler) kind of access block, you might consider building something from scratch :)
Since you're a plugin developer, you should be able to override the string using the 'gettext' filter.
That filter should be enough, but let us know if your use-case requires something a little bit more aggressive.