By Sunny on Thursday, 16 February 2017
Posted in Technical Issues
Replies 3
Likes 0
Views 416
Votes 0
Hi,

In earlier versions of easysocial i used to show avatar in a custom component, and on hover it used to show a popover with other details:


<?php $avtar = FD::user($value->user_id); ?>
<a href="/<?php echo $avtar->getPermalink(); ?>" data-popbox="module://easysocial/profile/popbox" data-popbox-position="bottom-left" data-user-id="<?php echo $avtar->id;?>">
<img alt="<?php echo $avtar->getName();?>" src="/<?php echo $avtar->getAvatar(SOCIAL_AVATAR_SMALL);?>" />
</a>


But now after upgrde to ES 2.1 the avatar img & user name is showing but popover is not showing at all.

Has anything changed? can you please help me with this

regards
Sunny
You can take a look at the example in /components/com_easysocial/themes/wireframe/helpers/avatar/user.php
·
Thursday, 16 February 2017 21:08
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mark Thanks for pointing out,

tried replicating from user.php, but no pop up yes, i thing the ES scripts are not getting added onto the page.

i tried adding on top
Foundry::page()->processScripts();

and even
require_once(JPATH_ADMINISTRATOR . '/components/com_easysocial/includes/foundry.php');
FD::document()->initScripts();
FD::document()->initStylesheets();

but none worked.

regards
·
Thursday, 16 February 2017 21:50
·
0 Likes
·
0 Votes
·
0 Comments
·
·
Friday, 17 February 2017 11:36
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post