Giter Club home page Giter Club logo

bp-block-users's Introduction

BP Block Users

Contributors: thebrandonallen
Donate link: https://brandonallen.me/donate/
Tags: buddypress, bp, block, users, block users
Requires at least: 4.7
Tested up to: 4.9.8
Requires PHP: 5.3
Stable tag: 1.0.2
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html

Allows BuddyPress administrators to block users indefinitely, or for a specified period of time.

Description

This plugin requires BuddyPress 2.5.0+.

Sometimes a user in your community needs a some time to cool off. In BuddyPress, spamming or deleting the user is a destructive action, leaving little to no trace that the user existed. BP Block Users allows a capable user (administrators only by default) to block a user from logging into the site. Users can be blocked for a specified period of time, or indefinitely, if administrators need more time to determine the best course of action.

A message will be shown on the login screen when a blocked user attempts, but ultimately fails, to login, informing them that their account has been blocked. During the block period, email notifications are suspended.

For bug reports or to submit patches or translation files, visit https://github.com/thebrandonallen/bp-block-users/issues.

Installation

From your WordPress dashboard

  1. Visit 'Plugins > Add New'
  2. Search for 'BP Block Users'
  3. Activate BP Block Users from your Plugins page.

From WordPress.org

  1. Download BP Block Users.
  2. Upload the 'bp-block-users' directory to your '/wp-content/plugins/' directory, using your favorite method (ftp, sftp, scp, etc...)
  3. Activate BP Block Users from your Plugins page.

Frequently Asked Questions

What happened to versions 0.2.0, 0.3.0, 0.4.0, 0.5.0, 0.6.0, 0.7.0, 0.8.0, and 0.9.0?

You blinked, and you missed them.

In reality, the changes made in version 1.0.0 were drastic enough, that the version change needed to help convey the message. While BP Block Users won't be following semver just yet, the 1.0.0 release needed to be treated as such.

Changelog

1.0.2

  • Release date: 2018-01-15
  • Update compatability to WordPress 4.9.1
  • Fix incorrect Block User link in WP admin bar.
  • Add PHP 7.2 compatability by removing create_function usage.

1.0.1

  • Release date: 2017-06-14
  • Update compatibility to WordPress 4.8

1.0.0

  • Release date: 2017-04-12

  • TLDR

    • The plugin has been completely rewritten.
  • The Fuller House

    This plugin was written as a quick solution to an immediate need. It was then released on the off-chance others might find it useful. Turns out, it had staying power. At the time of this release, there are about 195 more people using it than I expected.

    That brings us to version 1.0.0. All functions from version 0.1.0 have been deprecated. The deprecated functions will still perform as they did in 0.1.0, but they will throw a deprecation warning when using WP_DEBUG.

    If you were using the plugin as-is, with no custom functionality built on top, then you don't need to do anything further. If you were using any of the functions/filters/hooks from version 0.1.0 for custom functionality, please see the Upgrading to 1.0.0 wiki page.

    Despite these major changes, the plugin should work the same or better than before!

  • Minimum Requirements

    • Bumped minimum required WordPress version to 4.3.0.
    • Bumped minimum required BuddyPress version to 2.4.0.
  • Enhancements

    • BP Block Users is now loaded as a BuddyPress component.
    • The Block User terminology has been changed to Block Member on the front-end to be more consistent with BuddyPress terminology. Props joost-abrahams [GH#4].
    • Added a blocked users list table to Users > All Users admin screen.
    • Added WP-CLI commands. Enter wp bp-block-users --help in your terminal for usage details.
  • Future Updates

    • The next major version will require PHP 5.3+.
    • Deprecated functions, filters, and actions will be removed in a future release. The target right now is version 1.3.0. Upgrade any code you've written against version 0.1.0.

0.1.0

  • Release date: 2015-09-22
  • Initial release.

bp-block-users's People

Contributors

cameronjonesweb avatar thebrandonallen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

bp-block-users's Issues

Translation does not work to all fields and false linking

Hi,
I translated the pot file into German but unfortunately 90% shows still the English version. Second found out that the link to menu 'Block user' is linked to the own profile and not to the profile I'm watching. See the attached screenshots.

Would be great to check the connections of your great plugin. Use v1.0.1.

Kindest regartds,
Thorsten
01-09-_2017_21-49-58

01-09-_2017_21-58-13

Drop support for BP 2.4

At the time of this issue, BP 2.5 usage is at 6.5%. Stats for 2.4 usage aren't explicitly stated. With BP 2.9 imminent, and 6.5% being reasonably close to 5%, I think it's safe to bump the minimum BP version to 2.5.

Plugin not working

Hi, Brandon
Thanks for your plugin. The ideas of your bp-block-users for specific time period are exactly what I want.
But, when I tried your plugin in my site, I found that it cannot block specific user role in specific time period. I'm using the latest WordPress 4.4.1 and BuddyPress 2.4.3.
Could you check that for me? Thanks a million.

Remove version `0.1.0` deprecated code

Since the rewrite happened while the plugin was still young and not heavily used, I'd rather give users a period to transition, and then remove the version 0.1.0 code altogether. The includes all deprecated functions, filters, and actions. The 1.3.0 milestone is a soft target depending on the time it takes to get to 1.3.0, but I'd like to make it happen.

Drop support for WP 4.3

At the time of this issue, WP 4.3 usage is at 3.6%, which is below our 5% threshold. We should be the minimum WP version to 4.4.

Drop support for PHP 5.2

At the time of this issue, the WP usage stats for PHP 5.2 are at 4.8%. On top of this, BP dropped support for PHP 5.2 with the release of BP 2.8. In the near future, we should drop support for PHP 5.2 as well.

Notify User via Email when Blocked/Unblocked

I love that you’re preventing Buddypress from sending email notifications to blocked users, but I might suggest creating two new Buddypress “scenarios” so admins can use Buddypress’ native email functionality to notify the user that they’ve been blocked and, perhaps, for how long. Another would be for when a user is subsequently unblocked (manually or automatically).

Obviously, these two email scenarios would need to be allowed even while a user is blocked.

Buddypress already allows themes and plugins to add email scenarios (documentation link coming soon) which means all we would have to do is hook into that and provide a callback (i.e. “on block, User Blocked scenario fires” and vice versa).

Might fork your project and give it a go myself. No promises. Submitting this issue purely to document and as a (gentle) suggestion for enhancement.

Add block reasoning functionality

It would be nice for site with multiple admins to be able to add a note about the reason a user was blocked. I see this including the date the user was blocked, along with the admin that added the block.

Don't Work on wordpress 5.2.2

I've installed the plugin on wordpress 5.2.2 with latest buddypress plugin if i try to block an user i get this error :

Warning: call_user_func_array() expects parameter 1 to be a valid callback, class 'WP_Hook' does not have a method 'get_template_part' in /home/chatitaly/public_html/wp-includes/class-wp-hook.php on line 286

0.2 Ready for use?

I am just wondering about using this plugin, it looks like you're saying 0.1.0 shouldn't be used, and I should be using 0.2.0. Any idea when 0.2.0 will be pushed to wordpress.org? Is it ready for testing now? Can I just grab a zip of the repo here and go?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.