$this->profileLink = CRoute::_('index.php?option=com_community');
include_once JPATH_ROOT.'/components/com_community/libraries/core.php';
// Get CUser object
$link = CRoute::_('index.php?option=com_community&view=profile&userid='.$userid);
echo '<a href="/.$link." mce_href="http://www.jomsocial.com/.$link.">View user profile</a>';
$this->profileLink = CRoute::_('index.php?option=com_community');
$user = JFactory::getUser();
$this->profileLink = CRoute::_('index.php?option=com_community&view=profile&userid='. $user->id);
Join our newsletter to get alerts for Joomla releases, tips and tricks and extension updates.