BuddyDev

BuddyPress User Badges

BuddyPress User Badges adds badge functionality to BuddyPress-based communities. This plugin allows you to create any number of custom badges and assign these badges to users. The badges can be assigned manually or automatically. These badges will show on the BuddyPress member list as well as the profile page.

Why badge:- Badges can be a great way to show appreciation to your users. It adds a sense of difference, a sense of belonging. You can give badges to make your users feel special. Having the badge functionality adds that x-factor to your community. Here are some examples use of badges:- You can create badges for a top performer, best cricketers, footballers, best student, teacher, and so on. Feel free to use your imagination.

The plugin features:-

  • Custom Badges:- Custom badges can be created and assign to users. For example, you can create a badge with the icon of bat and assign it to all baseball lovers.
  • Sortable Badges:- Custom badges can be sorted using drag and drop. You as a BuddyPress Site admin can control the order in which a badge is shown on a user's profile. The position will reflect on the front-end listing of badges.
  • Multiple Badges:- You can create and assign as many badges as you like.
  • Member Type Based Badges:- If you are using member types(you may want to explore the awesome Member Types Pro plugin), You can add badges for each member type. All users with the member type will get the badges applicable to their member type. Member type badges can be enabled/disabled per member type.
  • Role-Based Badges:- You can assign badges to WordPress roles. All users with the role will get the badge assigned to them. The role-based badge can be enabled/disabled for each role.
  • Activate/Deactivate Badge:- You can mark a badge as active or deactivate when you need.
  • Role/Member type Badge position:- Role and Member type badges position can be changed using settings. Site admin can select 'before' or 'after' custom badge options.
  • Screen to show Badges:- Badges can be shown to the selected screen by use of settings. Options are Members directory, Group members listing, or Single user profile.
  • Badge Position:- Badge position can be set using settings. Available options are Before and After name.
  • You can upload a png/jpg or SVG to use as the icon. By default, we use 32 px but you can control it via CSS.

ScreenShots:-

Admin settings screen:

Admin Badges Screen:

Add new Badge form:

Role Based Badges:

Member Type Based:

Members Listing page:

Single User:

 

 

For the demonstration purpose, we used icons from The Twemoji set.

Restrict Image dimension with CSS.

You can add custom CSS by visiting Dashboard->Appearance->Customize and clicking on the "Additional CSS". You can set any dimension as you please . In the below example, I am setting it to 32px;

.bp-user-badges-badge-list img {
    max-width: 32px;
    max-height: 32px;
}

Shortcode:-

You can use the short-code [bp-user-badges] to list all members with a specific badge.

The short-code provides following options:-

slug:- It is required. It is the slug of the badge. For Role/Member types based badge, It is the role name e.g "administrator" or the member type name.

Example:- List all members with badge slug "king"

[bp-user-badges slug='king']

context:- Optional. Only required when listing for role or member type based badges. Possible values are 'role' or 'member_type'

Example:- List  5 users who have badges for "Author" role(or who have author role).

[bp-user-badges slug='author' context='role' max=5]

Example:- List 5 users who have "student" member type badge.

[bp-user-badges slug="student" context="member_type" max=5]

You should not specify context for custom badges.

view:- Optional. Possible values are "list", "default". It decides how the list will be displayed as a block of avatar of a vertical list of users.

Example:-

[bp-user-badges slug="king" view="list"]

max:- Maximum number of users to list

Example:-

[bp-user-badges slug=«king» max=5]

 

 

Release History

  • Version: 1.2.9

    Monday, 26 August, 2024
    • Tested With: BuddyPress 14.0
    • Compatible With: BuddyPress 8.0+

    Bumping version to regenerate archive for WordPress 6.4.3 compatibility.

  • Version: 1.2.8

    Wednesday, 20 December, 2023
    • Tested With: BuddyPress 12.0
    • Compatible With: BuddyPress 8.0+

    Added compatibility with PHP 8.0
    Updated admin framework
    Fixed plugin language directory path

  • Version: 1.2.7

    Wednesday, 22 February, 2023
    • Tested With: BuddyPress 11.1.0
    • Compatible With: BuddyPress 8.0+

    Fix admin bug while editing user profile in admin

  • Version: 1.2.6

    Thursday, 02 February, 2023
    • Tested With: BuddyPress 11.0.0
    • Compatible With: BuddyPress 8.0+

    Fixed iteration warning where roles are empty for user

  • Version: 1.2.5

    Sunday, 15 January, 2023
    • Tested With: BuddyPress 11.0.0
    • Compatible With: BuddyPress 8.0+

    Added support for BuddyBoss theme 2.0+. Tested with BuddyBoss theme 2.2.3

  • Version: 1.2.4

    Sunday, 20 March, 2022
    • Tested With: BuddyPress 10.3.0
    • Compatible With: BuddyPress 6.0+

    Fixed the incompatibility and Bugs introduced by BuddyBoss platform 1.9+

  • Version: 1.2.3

    Monday, 07 March, 2022
    • Tested With: BuddyPress 10.1
    • Compatible With: BuddyPress 7.0+

    Hide inactive badges on the frontend

  • Version: 1.2.2

    Wednesday, 09 June, 2021
    • Tested With: BuddyPress 9.0.0
    • Compatible With: BuddyPress 7.0+

    Add css to make the profile badges list look better on mobile devices with BuddyBoss theme.

  • Version: 1.2.1

    Tuesday, 06 April, 2021
    • Tested With: BuddyPress 7.2.1
    • Compatible With: BuddyPress 6.0+

    Add support for BuddyBoss platform/theme specific tool tip for badge description.

  • Version: 1.2.0

    Monday, 15 March, 2021
    • Tested With: BuddyPress 7.2.0
    • Compatible With: BuddyPress 6.0+

    Fix double badges row on the Members directory when BP Nouveau template was being used.

  • Version: 1.1.11

    Wednesday, 10 March, 2021
    • Tested With: BuddyPress 7.2.0
    • Compatible With: BuddyPress 4.0+

    Added bbPress single topic screen as display context

  • Version: 1.1.10

    Tuesday, 19 January, 2021
    • Tested With: BuddyPress 7.1.0
    • Compatible With: BuddyPress 4.0+

    Added support for Youzer on Member's directory and Member's header

  • Version: 1.1.9

    Sunday, 13 September, 2020
    • Tested With: BuddyPress 7.0.0
    • Compatible With: BuddyPress 4.0+

    Updated admin interface.
    Fixed directory badge issue with BuddyPress Legacy template pack.

  • Version: 1.1.8

    Tuesday, 28 July, 2020
    • Tested With: BuddyPress 6.1
    • Compatible With: BuddyPress 4.0+

    Add badges shortcode compatibility with BuddyBoss theme.

  • Version: 1.1.7

    Wednesday, 08 July, 2020
    • Tested With: BuddyPress 6.1
    • Compatible With: BuddyPress 4.0+

    All custom badges bug fix in admin

  • Version: 1.1.7

    Wednesday, 08 July, 2020
    • Tested With: BuddyPress 6.1
    • Compatible With: BuddyPress 4.0+

    Fixed the listing of badges in dashboard(was limited to 10 custom badges earlier)

  • Version: 1.1.6

    Tuesday, 07 July, 2020
    • Tested With: BuddyPress 6.1
    • Compatible With: BuddyPress 4.0+

    Fix number of badges shown for the user.

  • Version: 1.1.5

    Saturday, 27 June, 2020
    • Tested With: BuddyPress 6.0
    • Compatible With: BuddyPress 4.0+

    Better compatibility with BuddyBoss theme.

  • Version: 1.1.4

    Sunday, 24 May, 2020
    • Tested With: BuddyPress 6.0
    • Compatible With: WordPress 4.0+

    Update shortcode to list users having a specific role/member type badge correctly.

  • Version: 1.1.3

    Friday, 22 May, 2020
    • Tested With: BuddyPress 6.0
    • Compatible With: BuddyPress 4.0+

    Add shortcode support with 2 views.