Link to Ultimate Member Profiles
Quote from Yworld on September 27, 2017, 10:29 amAdd 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);
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);
Quote from jimiwikman on November 2, 2017, 11:40 pmHmm…can’t get it to work…
I do need to have the profiles active in the settings, correct?
Hmm…can’t get it to work…
I do need to have the profiles active in the settings, correct?
Quote from Asgaros on November 3, 2017, 4:57 pmHello jimiwikman,
there were some little errors in the example code above. I modified it. Can you try it again?
Hello jimiwikman,
there were some little errors in the example code above. I modified it. Can you try it again?
Quote from gertjan88 on November 26, 2017, 5:11 pmHello 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 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!
Quote from Asgaros on November 28, 2017, 8:02 pmHello 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);
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);
Quote from gertjan88 on December 3, 2017, 5:03 pmUnfortunately, 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.
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:Quote from Asgaros on December 3, 2017, 6:48 pmHello again,
yes there was something wrong with my code before. I just changed it a little bit. Can you try it again?
Hello again,
yes there was something wrong with my code before. I just changed it a little bit. Can you try it again?
Quote from gertjan88 on December 3, 2017, 8:15 pmThat was the trick! Thank you very much. Keep up the good work!
That was the trick! Thank you very much. Keep up the good work!
Quote from plos on December 25, 2017, 8:28 amI 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.
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.
Quote from MrVector on January 27, 2018, 12:39 pmHi. 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 ^)
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 ^)