version 2.2 has a filter buddypress_messages_spamblocker_newMembersWaitingPeriod that can be used to set the number of hours (default 24) to 0 for example
2.2 was released just now.
Thanks for the update. I appreciate your help.
I realized that members who had already joined before the plugin was installed are no longer able to send messages. I thought setting the initial waiting period to “0” would solve this problem, but it did not. When the “Send Message” button is clicked, they are sent to a “404 Not Found” error page.
How can I prevent them from getting this error?
I would only like to limit the amount of messages that can be sent in a specific time range for both new and pre-existing members.
What is the url except your domain the users use to send Messages and what URL is called when the 404 error appears?
shoudl be fixed with 2.3
There was a bug that caused this error for buddypress installations that use another slug for messages-site then “messages”
I tried 2.3, but the 404 error is still coming up when the Message button is clicked.
The url that users use to send messages is: /members/josh/messages/compose/?r=tammy&_wpnonce=560351d47d
& the url called when the 404 error appears is the exact same: /members/josh/messages/compose/?r=tammy&_wpnonce=560351d47d
When I deactivate the plugin, the url is still the same if the message button is clicked, but the 404 page does not appear. When I activate the plugin, it starts to appear again.
I changed the redirection method wirh 2.4
I also added a filter (see releasenotes) you can use to specify a custom url as redirection target.
if the problem still appears: please post your apache / webserver error log here.
Thank you for the update. The problem is still appearing with 2.4.
I have posted the error log below:
[26-Apr-2016 05:37:32 UTC] PHP Fatal error: Call to undefined function friends_get_friend_user_ids() in /wp-content/plugins/buddypress-messages-spam-blocker/buddypress-messages-spamblocker.php on line 42
strange. seems as if a buddypress function is missing in your installation.
Do you have the friends component enabled?
OK, 2.5 should fix this finally π
No, I don’t have the friends component enabled.
Thank you so much!
It’s working now π