Link to Buddypress profile instead of Asgaros profile?
Quote from hcallens on November 7, 2018, 11:29 amI 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?
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?
Quote from Asgaros on November 8, 2018, 7:25 amHello @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/
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/
Quote from hcallens on November 8, 2018, 1:52 pmI 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?
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?
Quote from Asgaros on November 8, 2018, 2:12 pm@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.
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.
Quote from hcallens on November 8, 2018, 7:02 pmIndeed, my mistake; I put the code in the wrong theme. It works perfectly now, thanks a lot!
Indeed, my mistake; I put the code in the wrong theme. It works perfectly now, thanks a lot!