Please or Register to create posts and topics.

Link to Buddypress profile instead of Asgaros profile?

I use Asgaros in a Buddypress context.

When the profile setting is activated and you click a user’s name you get an Asgaros profile page.

Is it possible to go to the Buddypress profile instead? If so, how could I achieveĀ  this?

Hello @hcallens

I am currently working on BuddyPress-integration but it still might take a while until it becomes available.

In the meantime you can try to change the link to user-profiles manually via one of the available filters. Please check out the following topic for more details:

https://asgaros.com/support/topic/change-urls-login-register-profile-etc/

If you want to support the development of Asgaros Forum, you can leave a good review or donate. Thank you very much!

I added

add_filter('asgarosforum_filter_profile_link', 'my_profile_url', 10, 2);
function my_profile_url($profile_url, $user_object) {
    return home_url('/members/'.$user_object->user_nicename);
}

to my functions.php since /members/ is the Buddypress page that holds the list of members.

However when I click a user’s name in a forum it still points to the asgaros profile.
Am I still missing something?

@hcallens

The code works fine. Are you sure that you have added it to the correct active theme?

Please also ensure that possible installed caching-plugins do not have an old state in its cache which is delivered to you.

If you want to support the development of Asgaros Forum, you can leave a good review or donate. Thank you very much!

Indeed, my mistake; I put the code in the wrong theme. It works perfectly now, thanks a lot!