UPDATES EasyBlog 6.0.14 Released! Joomla 5.x and PHP 8.x compatible now!

Helpdesk

Your Time
Our Time
Response Time
24 — 48 hours
We strive to provide the fastest ever response possible. However, we are not super beings.

Allow at least 24 — 48 hours
  Support is offline
Our team is away during the weekend. Some answers may already be available on our documentation

Rest assured that we will get back to your posts as soon as the week starts!
  Support is offline

Linking to a Profile via PHP

Josh Lewis · ·
8:59 AM Wednesday, 19 August 2015
None
I'm trying to get the author of a article module to link to the respective profile. On my frontpage you can see that the author links do not link to a profile. The module currently supports CB, JomSocial, and Kunena but not CB. As I understand it, this is the code used to link to each profile type:

/* COMMUNITY BUILDER LINK */

$cblink = JRoute::_('index.php?option=com_comprofiler&task=userProfile&user=' . $row->created_by);

/* JOMSOCIAL LINK */

$jslink = JRoute::_('index.php?option=com_community&view=profile&userid=' . $row->created_by);

/* KUNENA LINK */

$kunlink = 'index.php?option=com_kunena&func=profile&userid=' . $row->created_by;


For the sake of making this as easy as possible, I'm wanting to swap out the CommunityBuilder link method to link to ES. I assume this is kinda close?

$cblink = JRoute::_('index.php?option=com_easysocial&task=profile&user=' . $row->created_by);


I know how to link to the currently logged in user but am not sure how to prefer to a user. I suppose it's even more work if I want to use the permalink for the link? If I remember right the module produces clean SEF url's (to the public) with the code mentioned above for the given profile systems. And yes I've looked through the ES dev docs.
The replies under this section are restricted to logged in users or users with an active subscription with us