/ Published in: PHP

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
// Include Jomsocial core $jspath = JPATH_ROOT.DS.'components'.DS.'com_community'; include_once($jspath.DS.'libraries'.DS.'core.php'); // Get CUser object $link = CRoute::_('index.php?option=com_community&view=profile&userid='.$userid); echo '<a href="/.$link.">User profile</a>';
Comments
