Discuss anything regarding coding in here (PHP, mySQL, HTML, CSS, etc)
User avatar
Posts: 4
Joined: 07 Jul 2019, 02:24


by PJackson 20 Jan 2022, 18:44

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.