Page 1 of 1

Getting User ID Link not working

PostPosted: 20 Jan 2022, 18:44
by PJackson
I have been using this code to try and get a link to my user profile from the Users Chat Dialogue Box. This function will only show my own page (My Profile- Not the person's profile you are clicking on). I am using WP and also using User Registration (a very basic plugin).
function get_link($link, $user_id)
{
global $base_url;

return $base_url . "../profile/" . $link;
}
Have any of you clever, cool people got any ideas of why this is happening? This may have nothing to do with the code. as far as I can see. If I RMC on the URL it shows the persons profile link. However, it opens up my own personal profile. Frustrating now.