Avatar NSP Issues

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Mon May 05, 2014 10:03 pm
Reply with quote
Report this post
I had an issue with Avatars showing up in the NSP module via Easyblog. I contacted StackIdeas for the fix and wanted to share in case anyone else has the same issue or when Gavick fixes it. Here is what they said:

As for the NSP module, the module developer (Gavick) has somehow wrongly send the parameter for EasyBlogAvatarHelper::getAvatarUrl(). I've fixed it for you by adding this code:

Code: Select all
require_once (JPATH_SITE.DS.'components'.DS.'com_easyblog'.DS.'helpers'.DS.'helper.php');
 
$blogger   = EasyBlogHelper::getTable( 'Profile' , 'Table' );
$blogger->load( $item['author_id'] );
 
 
$info_author = ($config['user_avatar'] == 1) ? '<span><img src="'.EasyBlogAvatarHelper::getAvatarUrl($blogger).'" alt="'.$author.' - avatar" class="nspAvatar" width="'.$config['avatar_size'].'" height="'.$config['avatar_size'].'" /> '.$author_html.'</span>' : $author_html;


in this file /modules/mod_news_pro_gk5/tmpl/com_easyblog/view.php.
User avatar
Junior Boarder

GK User
Tue May 06, 2014 6:15 am
Reply with quote
Report this post
Thanks for sharing - I'll forward it to our devteam.
User avatar
Moderator

GK User
Tue May 06, 2014 12:01 pm
Reply with quote
Report this post
Added to the module: https://github.com/GavickPro/News-Show- ... 05bf597054

It will be included in the next update - thank you for your feedback.
User avatar
Administrator


cron