Did you try widget logic? https://wordpress.org/extend/plugins/widget-logic/
Crafting the correct logic might be the tricky part but the plugin is fantastic for controlling when to display (or not display) any widget.
Hmmm – yes, this plugin sounds logic (and would be the forum-titel… . That is exactly the question, for I am not a php-guru. Can anyone point me in the right direction, who that would work with buddypress (example: how could I show a widget with that plugin just on a users profile…?)
bp_is_my_profile()
should work if you are only trying to show a widget on a user’s own profile.
One way is
if (bp_is_profile_component()) {
include ('profile.php');
}
where profile.php is widgetized and you can add the widget in your dashboard’s Appearance > Widget panel. Are you using 1.2 bp-default theme or bp-sn-parent theme?
https://codex.buddypress.org/developer-docs/conditional-template-tags/
Btw, if you use conditional statements for bp themes, do not add a standalone is_page() – need to add page ID/slug/name within () – otherwise it will override conditional statement for bp_is_profile_component() and other conditional statements for other BP-generated pages.