Title: BuddyPress Instaban
Author: Bill Zimmerman
Published: <strong>June 20, 2013</strong>
Last modified: June 20, 2013

---

Search plugins

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://s.w.org/plugins/geopattern-icon/buddypress-instaban.svg)

# BuddyPress Instaban

 By [Bill Zimmerman](https://profiles.wordpress.org/billz/)

[Download](https://downloads.wordpress.org/plugin/buddypress-instaban.zip)

 * [Details](https://test.wordpress.org/plugins/buddypress-instaban/#description)
 * [Reviews](https://test.wordpress.org/plugins/buddypress-instaban/#reviews)
 *  [Installation](https://test.wordpress.org/plugins/buddypress-instaban/#installation)
 * [Development](https://test.wordpress.org/plugins/buddypress-instaban/#developers)

 [Support](https://wordpress.org/support/plugin/buddypress-instaban/)

## Description

The BuddyPress Instaban plugin allows site administrators to quickly remove problem
members with a single click from the front-end. A confirmation dialog prevents accidental
removals. If your site uses OneAll’s Social Login plugin to allow members to create
new accounts, Instaban will add their unique token to a list of ‘unsafe’ tokens.
Integration options with OneAll are included.

**Features:**

 * Eliminates additional steps of searching user accounts in the WordPress admin
   panel.
 * Integrates with member profiles on activation with predefined hooks.
 * Optionally bans members if they’ve created an account with OneAll social login.
 * Confirmation dialog with AJAX handler is fast, safe and efficient.
 * Ability to customize button placement in your theme with a template tag.
    For
   integration with OneAll Social Login, you may perform a check with the user_token
   returned from the API response, like so:
 * // from oa-social-login/includes/communication.php:
 * /**
    - Handle the callback
       */ function oa_social_login_callback () {
    - //User Data
       if (is_object ($social_data)) { $identity = $social_data->response-
      >result->data->user->identity; $user_token = $social_data->response->result-
      >data->user->user_token;
    -     ```
          // verify that user token isn't associated with an unsafe login
          if ( bp_instaban_is_user_token_unsafe( $user_token, 'oa_social_login_user_unsafe_tokens' ) ) {
              header($_SERVER['SERVER_PROTOCOL'] . ' 501 Not Implemented', true, 501); // throw a 501 error
              die();  
          }   
          ```
      
    - }
       }

In the above example, the server returns an HTTP 501 error. This effectively prevents
the user from creating an account again with the same social network provider.
 
You may choose to handle it differently. In the future, OneAll may provide a hook
to enable this integration without modifying the plugin directly.

## Screenshots

 * [[
 * Screenshot of a member profile with the Instaban button.

## Installation

 1. Download, install and activate the plugin.
 2. To remove (and optionally ban) a member, simply visit their profile and click the‘
    Remove and Ban User’ button.
 3. Confirm the action with the dialog.
 4. You’re done!

## FAQ

  Do I have to add template tags to my theme?

You should not have to change your theme template files. The Instaban plugin integrates
into your site by using predefined hooks.

  Does Instaban support custom embedding with a template tag?

Yes. You can add the Instaban button to your theme with the bp_instaban_add_kickban_button()
function. We recommend embedding the tag like so:

    ```
    <?php if ( function_exists( 'bp_instaban_add_kickban_button' ) ) : ?>
        <?php bp_instaban_add_kickban_button(); ?>
    <?php endif; ?>
    ```

  Is it possible to integrate Instaban with OneAll Social Login?

Yes. When removing and banning a member, Instaban adds the unique token returned
by the user’s social network to a list of ‘unsafe’ tokens.
 To prevent banned members
from repeatedly creating new accounts with Social Login, oa_social_login_callback()
must do a check with the function bp_instaban_is_user_token_unsafe().

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“BuddyPress Instaban” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ Bill Zimmerman ](https://profiles.wordpress.org/billz/)
 *   [ Nelson Kana ](https://profiles.wordpress.org/wpnelsonkana/)

[Translate “BuddyPress Instaban” into your language.](https://translate.wordpress.org/projects/wp-plugins/buddypress-instaban)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/buddypress-instaban/),
check out the [SVN repository](https://plugins.svn.wordpress.org/buddypress-instaban/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/buddypress-instaban/)
by [RSS](https://plugins.trac.wordpress.org/log/buddypress-instaban/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.0

 * Initial release.

## Meta

 *  Version **1.0**
 *  Last updated **13 years ago**
 *  Active installations **10+**
 *  Language
 * [English (US)](https://wordpress.org/plugins/buddypress-instaban/)
 * Tags
 * [buddypress](https://test.wordpress.org/plugins/tags/buddypress/)[community](https://test.wordpress.org/plugins/tags/community/)
   [social](https://test.wordpress.org/plugins/tags/social/)
 *  [Advanced View](https://test.wordpress.org/plugins/buddypress-instaban/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/buddypress-instaban/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/buddypress-instaban/reviews/)

## Contributors

 *   [ Bill Zimmerman ](https://profiles.wordpress.org/billz/)
 *   [ Nelson Kana ](https://profiles.wordpress.org/wpnelsonkana/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/buddypress-instaban/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=TJM2SLFYDT7F2&lc=GB&item_name=BuddyPress%20Instaban%20Donation)