Please or Register to create posts and topics.

Forum username redirect to Ultimate Member profile

Hello,

I have already tried the code found various places on google posted by Yworld, but I can’t figure out how to edit that function to make it work for Ultimate Member. (Coding clearly isn’t my thing..)

function my_filtered_post_username($username, $userID) {
  return '<a href="https://www.slothcraft.com/user/.$username.">'.$username.'</a>';
}
add_filter('asgarosforum_filter_post_username', 'my_filtered_post_username', 10, 2);

 

I am using Wordpress with Ultimate Member and Asgaros forums. www[dot]slothcraft[dot]com

I was also wondering if there was a similar function to make the forum username clickable through out the forums, such as the online users list on the front page of the forums, as well as the last post by: on the forums main page and with-in boards.

Thanks!

Hi eric,

Check 🙂

function my_filtered_post_username1($ultimatemember, $user_id) {

   return '<a href="http://test.yworld.ru/user/'.$ultimatemember.'">'.um_get_display_name($user_id).'</a>';
}
add_filter('asgarosforum_filter_post_username', 'my_filtered_post_username1', 10, 2);

Disable AsgarosForun profile in settings

When enabled, apply

  • The asgarosforum_filter_profile_link filter allows you to overwrite the profile-links so they lead to other pages you might want to use instead

Hi Yworld, I’ve tried to use the code above, however I’m not sure where it’d go within the plugin. Could you please help me out? My guess is in the file called “forum-profile.php“, I’m just not sure where.

Thanks, Braulio

Hi braulio, To do this you just have to add this code to your themes functions.php file

Hi Yworld, nice snippet thanks

Can you please provide the same for userpro profiles ?

Other thing please Yworld :

I want to add the “forum profile” to the “user pro profile” ‘s page

How can I do that ?

Thanks a lot !

Hello samsam,

please take a look at the following topic:

https://asgaros.com/support/?view=thread&id=322

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

Hi thanks, it’s for ultimate member, not for user pro, could you bring a help here to make that code working for userpro please ?

 

Thanks a lot

 

Kind regards

Hello samsam,

I dont know the user pro extension and its code/API. So it would be the best if you could ask the developer for the code to generate the profile URL for the user so I can implement it in the before shown example.

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