Changeset 1401579
- Timestamp:
- 04/21/2016 08:30:32 PM (10 years ago)
- Location:
- buddypress-messages-spam-blocker/trunk
- Files:
-
- 2 edited
-
buddypress-messages-spamblocker.php (modified) (2 diffs)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
buddypress-messages-spam-blocker/trunk/buddypress-messages-spamblocker.php
r1229318 r1401579 5 5 * Plugin URI: http://ifs-net.de 6 6 * Description: Fight mass mailings and spam inside buddypress messages 7 * Version: 2. 17 * Version: 2.2 8 8 * Author: Florian Schiessl 9 9 * Author URI: http://ifs-net.de … … 38 38 $registeredTimestamp = strtotime($current_user->user_registered); 39 39 $timeDiff = time() - $registeredTimestamp; 40 $hours = 24; 40 $hours = apply_filters('buddypress_messages_spamblocker_newMembersWaitingPeriod', 24); 41 41 42 if ($timeDiff < (60 * 60 * $hours)) { 42 43 bp_core_add_message(sprintf(__('We want to protect other users from spam. New members are only allowed to send messages to other users when their registration is not older than %d hours. Please wait until this time is over and then feel free to write messages to other members!', 'buddypress-messages-spamblocker'), $hours), 'error'); -
buddypress-messages-spam-blocker/trunk/readme.txt
r1373596 r1401579 4 4 Tags: buddypress, spam, messages 5 5 Requires at least: 3.0 6 Tested up to: 4. 4.26 Tested up to: 4.5 7 7 Stable Tag: trunk 8 8 License: GPLv2 … … 18 18 Buddypress Messages Spam Blocker introduces some restrictions to your users: 19 19 20 * New users can send messages only 24h after their registration, so you'll have time if bot registrations have to be removed manually 20 * New users can send messages only 24h after their registration, so you'll have time if bot registrations have to be removed manually (modify this value using filter 'buddypress_messages_spamblocker_newMembersWaitingPeriod') 21 21 22 22 Their are also some more restrictions for mass mailings (mails that are sent to "friends" of the contact list are not included in this calculation): … … 52 52 At the moment they are hardcoded, you can easily chance them inside the code as you need them. 53 53 54 = New members 55 54 56 == Changelog == 57 58 = 2.2 = 59 * New filter for changing waiting period for new buddypress members (buddypress_messages_spamblocker_newMembersWaitingPeriod) 55 60 56 61 = 2.1 =
Note: See TracChangeset
for help on using the changeset viewer.