Modern Member Widget

Get Started

Modern Member Widget

BuddyPress Stats Modern Member Widget

The Modern Member Widget displays a compact activity summary for individual members.

Overview

This widget shows:

  • Member avatar and name
  • Activity summary (posts, comments)
  • Optional sparkline chart
  • Link to full profile statistics

Adding the Widget

Via Widgets Screen

  1. Go to Appearance > Widgets
  2. Find “BP Stats Modern Member Widget”
  3. Drag to your desired widget area
  4. Configure settings
  5. Save

Via Customizer

  1. Go to Appearance > Customize > Widgets
  2. Select widget area
  3. Click “Add a Widget”
  4. Select “BP Stats Modern Member Widget”
  5. Configure and publish

Widget Settings

Setting Description Default
Title Widget title displayed “Member Stats”
Show Avatar Display user avatar Yes
Show Chart Display sparkline chart Yes
Chart Days Days shown in chart 30
User Source Which user to display Current user

User Source Options

Current User: Shows logged-in user’s stats

Displayed User: Shows viewed profile’s stats (profile pages)

Specific User: Shows a specific user by ID

Shortcode Usage

Display the widget anywhere with shortcode:

[bp_stats_modern_widget]

Shortcode Parameters

Parameter Description Default
user_id Specific user ID Current user
show_avatar Display avatar (1/0) 1
show_chart Display chart (1/0) 1
chart_days Days in chart 30
title Widget title None

Examples

[bp_stats_modern_widget user_id="5" show_chart="1"]

[bp_stats_modern_widget show_avatar="0" chart_days="7"]

[bp_stats_modern_widget title="Your Activity"]

Widget Display

Statistics Shown

Stat Description
Posts Activity updates count
Comments Comments count
Groups Group memberships
Friends Friend count

Sparkline Chart

The mini chart shows daily activity: Bars represent each day, Height = activity count, Hover for exact numbers.

Theming

CSS classes for styling:

  • .bp-stats-modern-widget – Widget container
  • .bp-stats-widget-avatar – Avatar wrapper
  • .bp-stats-widget-name – User display name
  • .bp-stats-widget-stats – Statistics grid
  • .bp-stats-widget-stat – Individual stat
  • .bp-stats-widget-chart – Sparkline container

Placement Suggestions

Sidebar: Profile page sidebars, Blog sidebars, BuddyPress sidebars

BuddyPress Templates: Member header area, Activity sidebar, Group sidebars

Dashboard: WordPress dashboard, BuddyBoss dashboard widgets, Custom member areas

Performance

Statistics loaded via AJAX reducing initial page load time. Widget data is cached with 1-hour cache duration that clears on user activity.

Troubleshooting

Widget shows no data – Verify user has activity, Check AJAX is working, Clear widget cache.

Avatar not showing – Check “Show Avatar” is enabled, Verify BuddyPress avatars work, Check avatar URL is accessible.

Chart not rendering – Check JavaScript console for errors, Verify Chart.js is loaded, Check for conflicting scripts.

Wrong user showing – Check “User Source” setting, Verify page context, Check for caching issues.

Last updated: January 28, 2026