Skip to content

Profile Forums Tab

The addon adds a Forums tab to every PeepSo user profile (profile page segment slug forums). It surfaces the member’s bbPress forum history inside PeepSo instead of on the separate bbPress user page.

The Forums tab renders a bbPress “single user” area styled for PeepSo. Within it, the member’s:

  • Profile summary - topics started count and replies created count.
  • Topics Started - topics the member has created.
  • Replies Created - replies the member has posted.
  • Favorites - topics the member marked as favorite.
  • Subscriptions - subscribed forums and subscribed topics.

Each sub-view is rendered through one of the addon’s shortcodes and supports an AJAX Load More control.

  • The tab is added through the peepso_navigation_profile filter and its segment is registered with peepso_rewrite_profile_pages.
  • Content is rendered by the forums/forums.php template through PeepSoTemplate.
  • bbPress user-context filters (bbp_get_user_id, bbp_get_displayed_user_id, bbp_get_current_user_id, bbp_is_single_user_profile, bbp_is_user_home, bbp_is_favorites, bbp_is_subscriptions, bbp_is_single_user_topics, bbp_is_single_user_replies) are re-pointed at the PeepSo displayed user so bbPress renders the correct member.
  • Show or hide the tab with the Forums Tab switch.
  • Rename the tab with the Forums Tab Label field (defaults to “Forums”).
  • Change URL rewrites bbPress profile URLs to the PeepSo profile URL so links stay inside PeepSo. See Avatars and profile URLs.

The tab is hidden for members whose bbPress role is bbp_blocked.

See Configuration for the settings, and Shortcodes for the underlying markup.