I'm no developer at all, but i'm learning :-) Test this piece of code, it gives you profile ID en profile Link. I added this in a delimeter using a component that allows you to implement pieces of php directly within your codemirror (and thus the delimeter)
<?php
require_once(JPATH_SITE.'/components/com_jsn/helpers/helper.php');
$id = JFactory::getApplication()->input->getInt('id', 0);
echo $id;
$user=new JsnUser($id);
echo $user->getLink();
?>