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 online
Our support specialists is available now. We will attend to you as soon as we can.
  Support is online
None
I'm trying to get user avatar, user link & the popover.
For achieveing this i scouted the forum and have succesfully got the avatar & the profile link

for testing purposes my hardcoded user ID code is as follows:

<table width="100%">
<?php
defined( '_JEXEC' ) or die( 'Unauthorized Access' );
// Include main engine
$file = JPATH_ROOT . '/administrator/components/com_easysocial/includes/foundry.php';
jimport( 'joomla.filesystem.file' );
if( !JFile::exists( $file ) )
{
return;
}

// Include the engine file.
require_once( $file );

// Check if Foundry exists
if( !FD::exists() )
{
FD::language()->loadSite();
echo JText::_( 'COM_EASYSOCIAL_FOUNDRY_DEPENDENCY_MISSING' );
return;
}
?>
<tbody>
<tr>
<td width="45" height="40">
<?php
$user = FD::user('1039'); //load the user
$profilelink = FRoute:: profile(array('id' => '1039'));
?>
<img src="/<?php echo $user->getAvatar(SOCIAL_AVATAR_SMALL);?>" />
</td>
<td height="40"><a href="/<?php echo $profilelink; ?> "><?php echo Foundry::user('1039')->getName(); ?></a></td>
<td height="40"> </td>
<td align="center" height="40">1</td>
<td align="center" height="40"> </td>
</tr>
</tbody>
</table>


Now i've two issues remaining to be resolved:

1) Currently the profile link is http://www.site.com/index.php/community/profile/1039, this opens the profile page allright, but the actual profile page link is : http://www.site.com/index.php/community/profile/vshaikh (vshaikh being the permalink)

If i use
$profileLink = $user->getPermalink());
the output page becomes blank, so i used:
$profilelink = FRoute:: profile(array('id' => '1039'));

Can you please guide me on what is the correct procedure for achieving correct profile links (Some people might not have created permalinks and ther profile pages would be profileID-username)

2) I want to have a popover effect on the avatar as in all easysocial which shows the cover, albums, points, add as friend. (Atatching the image), can you also please guide me on this part.

regards
The replies under this section are restricted to logged in users or users with an active subscription with us