Hi
after switching to SEF user profiles changes to
my.site/userid-username
or
my.site/component/comprofiler/userprofile/userid-username
we don't want users know each other usernames
we generate this urls with this php function:
Code:
public function getLink()
{
$app = JFactory::getApplication();
$menu = $app->getMenu();
// check the CB is it got created user profile menu item
$menuItem = $menu->getItems('link', 'index.php?option=com_comprofiler&view=userprofile', true);
$link = JRoute::_('index.php?option=com_comprofiler&view=userprofile&user=' . $this->profile->id, false);
if (!empty($menuItem->id)) {
$link = JRoute::_('index.php?option=com_comprofiler&view=userprofile&user=' . $this->profile->id . '&Itemid=' . $menuItem->id, false);
}
return $link;
}
how can we remove username from user profile links?
thanks