I want to add a link to user's Easy Social profile so that when it is clicked it opens their profile page. I am using OS Property and I basically want to add a link to the Agents form so visitors can open up their profile page. I also want to do the same to open up the messaging in Easysocial (unsure if the latter is possible?). I was looking at the developer documentation and think this is what I need to add somewhere:
require_once(JPATH_ADMINISTRATOR . '/components/com_easysocial/includes/easysocial.php');
$my = ES::user();
// Retrieve the user's profile object
$profile = $my->getProfile();
public function getProfile()
DO I just paste thiws code inside the relevant file in the position where I want it to appear? Or is it more complex than that?
Is there any step by step guide you know of that would help me work out how to do it? Or is there an easier way to add these 2 links?