Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
User permalink
require_once(JPATH_ADMINISTRATOR . '/components/com_easysocial/includes/foundry.php');
// Assuming that you already have the user's id
$user = Foundry::user($id);
// Generate the permalink of a user
// If you want the & to be replaced to &amp;
$xhtml = true;
// If you are using this in an e-mail (it will compute the appropriate domain path)
$external = false;
<a href="<?php echo $user->getPermalink($xhtml, $external);?>"><?php echo $user->getName();?></a>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.