Skip to content

Only allow friends and site administrators to send private messages on your BuddyPress site.

Notifications You must be signed in to change notification settings

r-a-y/bp-pms-for-friends

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

=== BuddyPress Private Messages for Friends Only ===
Contributors: r-a-y
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=CT8KZGFEVA3R6
Tags: buddypress, message, private message, pm, spam
Requires at least: WP 2.9 & BuddyPress 1.2
Tested up to: WP 4.8 & BuddyPress 2.9
Stable tag: 1.1

Only allow friends and site administrators to send private messages on your BuddyPress site.

== Description ==

By default, any member on your BuddyPress site is allowed to send private messages to anyone in your userbase.

This plugin only allows friends and site administrators to send private messages.  Thus, acting as another deterrent from illegitimate users.


== Installation ==

1. Download, install and activate the plugin.
1. That's it! :)


== Frequently Asked Questions ==

#### What happens when I try to send someone a private message who isn't my friend? ####

You'll get a nice error message saying that your message wasn't sent because you are not the recipient's friend!
Site administrators can always send private messages.


#### Can I allow certain user IDs to be private messaged without being friends? ####

As of version 1.1, you can!  Simply add the following line to /wp-config.php or /wp-content/plugins/bp-custom.php:

`define( 'BP_PM_RECIPIENT_WHITELIST', '1,2' );`

In the example above, anyone can send a message to user ID 1 and 2 without needing to be their friend.


#### I noticed that the error message is in English! ####

Yes it is.  But fear not!  You can send me a translation file for inclusion in the next release of the plugin.


== Changelog ==

= 1.2 =
* Compatibility fixes for BuddyPress 2.7. Fixes issues with deprecated code.
* Minor performance improvements and general code clean up.

= 1.1 =
* Added support to whitelist recipient user IDs
* Make sure site admins can always view the "Send Private Message" button (thanks to intimez and brianglanz for reporting)
* Added check to see if friends component is enabled
* Restructured the plugin into a class

= 1.0 =
* First version!

About

Only allow friends and site administrators to send private messages on your BuddyPress site.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages