Plugin Directory

Changeset 1401579


Ignore:
Timestamp:
04/21/2016 08:30:32 PM (10 years ago)
Author:
quan_flo
Message:

new filter buddypress_messages_spamblocker_newMembersWaitingPeriod see https://wordpress.org/support/topic/24-hour-wait-requirement

Location:
buddypress-messages-spam-blocker/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • buddypress-messages-spam-blocker/trunk/buddypress-messages-spamblocker.php

    r1229318 r1401579  
    55 * Plugin URI: http://ifs-net.de
    66 * Description: Fight mass mailings and spam inside buddypress messages
    7  * Version: 2.1
     7 * Version: 2.2
    88 * Author: Florian Schiessl
    99 * Author URI: http://ifs-net.de
     
    3838        $registeredTimestamp = strtotime($current_user->user_registered);
    3939        $timeDiff = time() - $registeredTimestamp;
    40         $hours = 24;
     40        $hours = apply_filters('buddypress_messages_spamblocker_newMembersWaitingPeriod', 24);
     41               
    4142        if ($timeDiff < (60 * 60 * $hours)) {
    4243            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  
    44Tags: buddypress, spam, messages
    55Requires at least: 3.0
    6 Tested up to: 4.4.2
     6Tested up to: 4.5
    77Stable Tag: trunk
    88License: GPLv2
     
    1818Buddypress Messages Spam Blocker introduces some restrictions to your users:
    1919
    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')
    2121
    2222Their are also some more restrictions for mass mailings (mails that are sent to "friends" of the contact list are not included in this calculation):
     
    5252At the moment they are hardcoded, you can easily chance them inside the code as you need them.
    5353
     54= New members
     55
    5456== Changelog ==
     57
     58= 2.2 =
     59* New filter for changing waiting period for new buddypress members (buddypress_messages_spamblocker_newMembersWaitingPeriod)
    5560
    5661= 2.1 =
Note: See TracChangeset for help on using the changeset viewer.