Skip to content

The Member Activity Summary widget shows a compact statistics card for a single member: their avatar, name, how long they’ve been a member, their activities, comments, friends, and groups, an optional activity chart, and a link to their profile.

It can be used two ways:

  1. As a sidebar widget listed under Appearance > Widgets as BP Stats - Member Activity Summary.
  2. As the [bp_stats_modern_widget] shortcode anywhere on the site.

Modern Member Widget

[bp_stats_modern_widget]
Attribute Default What it does
user_id="auto" auto Shows the profile owner on member profile pages, the author on author archive pages, and the logged-in member everywhere else.
user_id="current" - Always shows the currently logged-in member, whichever page they’re on.
user_id="123" - Shows the member with user ID 123.
user_id="username" - Shows the member with that username.
title="" - Optional title shown above the card.
[bp_stats_modern_widget]
[bp_stats_modern_widget user_id="current"]
[bp_stats_modern_widget user_id="42"]
[bp_stats_modern_widget user_id="alice"]
[bp_stats_modern_widget title="Your activity"]

A member always sees their own card. Another member’s card (for example user_id="42") is only shown to people allowed to see that member’s statistics: a site administrator, or anyone allowed by the bp_stats_can_view_user_stats filter. Everyone else sees nothing at that spot, so the shortcode is safe to leave on public pages.

If no member can be found (for example, a logged-out visitor on a page that isn’t a profile), visitors see nothing. Editors and administrators see a short notice instead, so they can tell the shortcode is there.

To use it:

  1. Go to Appearance > Widgets.
  2. Find BP Stats - Member Activity Summary.
  3. Add it to any widget area.
  4. Set the options below.
  5. Save.
Setting Default What it does
Title Activity Summary (when left empty) Widget heading.
Show statistics for Auto-detect (context-aware) Which member the widget shows. See the options below.
Show activity chart On Shows or hides the activity chart.

Show statistics for options:

  • Auto-detect (context-aware) - the profile owner on member profiles, the author on author pages, the current member elsewhere.
  • Always current logged-in user - always the member viewing the page.
  • Displayed user on profiles, current elsewhere - the profile owner on profiles, the current member everywhere else.

Logged-out visitors on pages without a member to show see nothing: the widget hides itself.

Section Content
Header Avatar, display name, and how long they’ve been a member (days, months, or years).
Filter A 7 days / 30 days / 3 months period menu.
Stats Activities, Comments, Friends, and Groups for the selected period, one per row.
Chart A small chart of the member’s recent activity (when enabled).
Footer A View profile link to the member’s profile.

The numbers load right after the page appears, so a brief placeholder is normal.

The widget follows your theme’s colors and spacing, including dark mode on BuddyX and Reign.

  • In a sidebar the widget sits inside your theme’s widget box like the theme’s own widgets: no inner card, plain rows, a 50px rounded avatar, a full-width period menu and theme colours in light and dark mode.
  • The shortcode’s title attribute now shows above the card.
  • Widget styling follows BuddyX 5.1 and Reign color settings, including dark mode.
  • New icons throughout the card.
  • The period menu has a proper label for screen reader users, and screen readers announce the new numbers when the period changes.
  • The card design matches the rest of the plugin.
  • Widget data is cached, so a widget on many pages doesn’t slow your site down.