Please or Register to create posts and topics.

Link to Ultimate Member Profiles

Add the following code to your themes functions.php file to link to the Ultimate Member profiles:

function my_link($link, $user) {
  return 'http://mysite.com/user/'.$user->user_login;
}
add_filter('asgarosforum_filter_profile_link', 'my_link', 10, 2);

 

mrsaini and FatalFrame have reacted to this post.
mrsainiFatalFrame

Hmm...can't get it to work...

I do need to have the profiles active in the settings, correct?

Hello jimiwikman,

there were some little errors in the example code above. I modified it. Can you try it again?

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

Hello Asgaros,

I tried to paste the code above into functions.php. But unfortunately this does not work. Do i have to change the url in the code to my own ultimate member account page? When i do that nothing works.

Great plugin btw!

Hello gertjan88,

you can try the following code with activate profile-functionality. Please adjust the link to your site before.

function my_link($link, $user) {
  return 'http://mysite.com/user/'.$user->user_login;
}
add_filter('asgarosforum_filter_profile_link', 'my_link', 10, 2);

 

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

Unfortunately, this is not the solution yet. The "my profile" button now changes to the user's username but when I click on it, but he can't find the page.

I have changed the url to the right address. When I click on it he goes to: /test-forum/<a%20href=

I hope you have a solution.

Uploaded files:
  • Screenshot_1.png

Hello again,

yes there was something wrong with my code before. I just changed it a little bit. Can you try it again?

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

That was the trick! Thank you very much. Keep up the good work!

I also use this code but then I had the problem that when I clicked on the "Members"-Site on another user it always showed me my own Ultimate Member Profile-Page and not the one of the member I clicked on. I replaced the "ID"in the code above to "user_login" and now it works.

Hi. I have one question.

In settings i can on\off sign in, exit and registration button. But i want to have registration link to another page - sitename.com/register. How can i do it? Now i have registration link to /wp-login.php?action=register.

It's will be great, if you will make opportunity to customize this links ^)