By Luc Le Lievre on Sunday, 21 September 2014
Posted in Technical Issues
Replies 5
Likes 0
Views 0.9K
Votes 0
When I edit via the admin panel a blog entry, afterwards the avatar shown on the entry does not match in site the label anymore. Originally it was all fine but once I edit via fron or back panel the entry the avatar looks about a 1/4 of the image it should be.
Even when I attach/update the avatar all over again in the ES or EB profile it still stays the same.
See the differences in the attached screen shots.

Any suggestions on why this would be would be appreciated.

Cheers!
Luc
Hello Luc,

When the blog post is posted as a team blog contribution, we actually display 2 avatars on the blog post so that it is easily distinguish-able that the blog post was for a specific team on the site

Currently there is no way to disable this on the blog post itself but you can modify the file /components/com_easyblog/themes/elegantblue/blog.avatar.php and locate the codes below,


<?php
if( isset( $row->team_id ) )
{
$teamBlog = EasyBlogHelper::getTable( 'TeamBlog', 'Table');
$teamBlog->load( $row->team_id );
?>
<a href="<?php echo EasyBlogRouter::_('index.php?option=com_easyblog&view=teamblog&layout=listings&id=' . $teamBlog->id ); ?>" class="avatar isTeamBlog float-l prel">
<img src="<?php echo $teamBlog->getAvatar(); ?>" alt="<?php echo $teamBlog->title; ?>" class="avatar" width="60" height="60" />
</a>
<a href="<?php echo $row->blogger->getProfileLink(); ?>" class="avatar isBlogger float-l pabs">
<img src="<?php echo $row->blogger->getAvatar(); ?>" alt="<?php echo $this->escape( $row->blogger->getName() ); ?>" class="avatar" style="width:30px !important; height:30px !important;" width="30" height="30" />
</a>
<?php
} else {
?>
<a href="<?php echo $row->blogger->getProfileLink(); ?>" class="avatar float-l">
<img src="<?php echo $row->blogger->getAvatar(); ?>" alt="<?php echo $this->escape( $row->blogger->getName() ); ?>" class="avatar isBlogger" style="width:60px !important; height:60px !important;" width="60" height="60" />
</a>
<?php } ?>


Replace the codes above with,


<a href="<?php echo $row->blogger->getProfileLink(); ?>" class="avatar float-l">
<img src="<?php echo $row->blogger->getAvatar(); ?>" alt="<?php echo $this->escape( $row->blogger->getName() ); ?>" class="avatar isBlogger" style="width:60px !important; height:60px !important;" width="60" height="60" />
</a>
·
Sunday, 21 September 2014 14:04
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Luc Le Lievre,

I am really sorry for the delay of this reply as it is a weekend for us here.
If I'm not wrong, is it that blog post is under teamblog currently? If not, is it possible provide us with your Joomla backend and FTP access so we can verify with this? Please advise.
·
Sunday, 21 September 2014 12:01
·
0 Likes
·
0 Votes
·
0 Comments
·
Arlex,
Yes, all posts are tem blog posts as it is an easy way to split who can read which posts.
So is it because it's a team blog post the avatar is resized incorrectly?
Is this somewhere a setting for tea Blogs?

Regards,
Luc
·
Sunday, 21 September 2014 13:48
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mark,
Thanks for the info. I wasn't aware it was done like that, no issue I'll use it then like that and adjust the team blog image.
I though it might have been a bug but apparently not
I'll not change the code to keep it as is for future compatibility.
Thanks for you patience with a newbie
·
Sunday, 21 September 2014 14:25
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Luc Le Lievre ,

You're welcome, keep us update if you need further assistance.
·
Monday, 22 September 2014 02:10
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post