By default users can send an unlimited number of private messages and replies in BuddyPress. This feature allows you to charge users for sending new messages and / or replies. You can select to show a warning message when users compose new messages but can not afford to send it or redirect them to a dedicated page when they try and access the compose screen.

Installation

To enable this feature, you must visit your wp-admin area and under the myCRED menu, visit the “BuddyPress Charges” page. Note that if you have multiple point type’s setup, this page will only be accessible from your main points type (first in the menu) only.

Clicking on “Sending Private Messages” will scroll down and reveal your settings. Besides the very first option of “Charge for this”, you have a few options to consider when using this feature. These options can be grouped into two sections:

BuddyPress Options

First we need to decide if we want users to be able to access the compose screen in their profile when they have run out of points. You can select to let them access the compose screen, compose a message but when they try and send the message, they get an error message, alternatively, redirect them to a specific page. This could for example be a page where they can buy more points.

Prices

Next we need to select how much a new message and replies cost and the templates to use for payment logs and for the warning the user sees when they can not afford new messages / replies.

Once you have setup your prices and templates, just scroll down, save, and you are ready to go.

When it comes to sending new messages, the cost of the message is based on the number of recipients in the message. So if you for example set a cost of 10 points, and compose a message with 4 recipients, the cost will be 10 x 4 = 40 points.

You can only charge for messages or replies using one particular point type. You can not combine multiple types.

myCRED Donations

Donate via PayPal

Donate Bitcoin

3LVrDPjgTkPfqGARXwAZW9cJBQEYo4FHsB

Suggest Codex Example

You can submit suggestions for codex examples that you have available as a public gist. If you are a member on the mycred.me website, you can earn Tokens for each submission. To claim these Tokens, make sure you provide your mycred.me username.

Gist URL

mycred.me Username

Please make sure the example you submit is relevant and if you include documentation, it's provided in English.