By LAC Webadmin on Friday, 10 March 2017
Posted in General Issues
Replies 16
Likes 0
Views 368
Votes 0
Hi!

Is there a way to change the default avatar image size? It is defaulted to 60 x 60 px, too small for my custom layout.

Thanks,

Jackson
Hi there,

May I know the exact page that you're referring the avatar at? so we can help you out
·
Friday, 10 March 2017 10:31
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Fadhi,

Any avatar, category, user, team blog, etc. But now I am working on Category List view and 60 x 60px avatar is just too small for my custom layout.

I'm creating two columns of categories:

https://screencast.com/t/1wAsdERX

or you can look at my test site.

Or better yet, is there another size of avatar like $category->getAvatar('medium') or something like that?

Thanks,

Jackson
·
Friday, 10 March 2017 12:02
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

You can do css template override on css below at this path .../templates/protostar/html/com_easyblog/styles/custom.css, Please give it a try and see how it goes

div#fd.eb .eb-category-thumb .eb-avatar img {
width: 100px !important;
height: 100px !important;
}


By the way, i have set it tho shown 100x100px, if you required more, change them accordingly. Please advice
·
Friday, 10 March 2017 17:25
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Abdul,

Yeah I already did an override, what I'm saying is the avatar image is 60x60px and resizing it via CSS makes it look stretched and low resolution. If I remember it right, before you guys decided to remove settings from the theme, there is a setting for that. Personally, I still think that's a wrong move... But it is what it is.

So, there's no way to get a different avatar image size aside from 60x60px?

Thanks,

Jackson
·
Saturday, 11 March 2017 00:56
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey there,

I am really sorry for the delay of this reply as it is a weekend for us here.

Yes, currently that was no way to set this from the code.
·
Saturday, 11 March 2017 10:59
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Arlex,

That is sad! this new consolidated settings has created undesirable limitation to the theme, I will have to rely on template override and you know how limiting is that.

Jackson
·
Saturday, 11 March 2017 15:12
·
0 Likes
·
0 Votes
·
0 Comments
·
Hm, I am actually a little lost here. Are you referring to the category avatar? They are by default resized to 160x160 so not really sure how do you mean it get's stretched when you are resizing it to 100x100 in css?
·
Saturday, 11 March 2017 16:24
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mark,

Yes the Category avatar is 160 x 160px and I'm trying to create a layout that is 16:9 so my layout is 320 x 180px. My point is having no user defined size for avatar is limiting. I know avatar standard is square but who sets the standard? Would be nice to have a setting for that.

Any ETA for EB v 5.1?

Thanks,

Jackson
·
Sunday, 12 March 2017 10:24
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Jackson,

Ah I see. The reason that we use square avatars is because all of our themes has a fixed layout for the avatar. Having the avatar use a different aspect ratio would also mean that the html has to adapt to it's size.

Apart from that, in my opinion, it's not going to look good on your blog too if some authors uses square pictures while some others on a different aspect ratio.

We do not have an ETA on it yet but it's looking really good so far. I am extremely happy with what I am seeing right now but there are a lot of code refactoring being done on EasyBlog to make it "Easy" again.

Most theme files in the front end will be retained, so you don't have to worry if you need to customize the existing theme files. However, if you have intentions to modify one of the following layouts, I suggest that you wait for 5.1 first

1. Composer layouts
2. Dashboard layouts
3. Admin layouts
4. Javascripts (We have removed foundry and jquery by default)
·
Sunday, 12 March 2017 15:44
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mark,

Thanks for the heads up on the dashboard layout override, I was about to start

The reason why I'm saying "removing the theme settings is a bad idea" is because it will stop theme/template developers (potential) to develop themes for your products. Why? They will find it limiting since they cannot create their own defined settings since everything is in main Settings which they cannot touch. Unless, you guys create a mechanism that would render that theme settings in the main Settings, then everything is cool.

With that road map, only StackIdeas can develop themes for your products. So, it means I'm stacked to your design and to what you think looks good. Don't get me wrong, your design looks great but everybody has their own taste.

I hope you will reconsider on your theme roadmap, I am so familiar with it since I followed how your guys code it. In fact, I am developing a component based on your theme framework. It really is a good design, it gives designer more flexibility rather than using default Joomla layout framework.

Thanks,

Jackson
·
Monday, 13 March 2017 07:02
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for the input on this Jackson, something which we will definitely consider but let's get 5.1 out first and see if there are more people requesting for such a functionality
·
Monday, 13 March 2017 12:03
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post