Skip to:

Opened 10 years ago

Closed 10 years ago

#5554 closed enhancement (wontfix)

Filter for spam error messages

Reported by: tw2113's profile tw2113 Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Core Keywords:


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)

#1 @r-a-y
10 years ago

  • Keywords reporter-feedback added

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.

#2 @boonebgorges
10 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 :)

#3 @tw2113
10 years ago

Feel free to mark "wontfix" if you want. I don't have a good enough argument for dedicated filter at this point.

#4 @boonebgorges
10 years ago

  • Keywords reporter-feedback removed
  • Milestone Awaiting Review deleted
  • Resolution set to wontfix
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.