Nova skin showing different sized images problem

Eddy
Eddy
@eddy
9 years ago
479 posts
In my Nova skin, it's showing different sized images for some artists, is there a way to make them all display using same size?



2.jpg
2.jpg  •  80KB


updated by @eddy: 01/30/16 06:01:59AM
douglas
@douglas
9 years ago
2,791 posts
What page is that on?

Thanks!


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
Eddy
Eddy
@eddy
9 years ago
479 posts
That is the front/index page @douglas.

Eddy
Eddy
Eddy
@eddy
9 years ago
479 posts
But it does show that users picture like that (portrait) in his profile too.

Eddy
douglas
@douglas
9 years ago
2,791 posts
That is due to the way the jrCore_module_function is setup in your skins/jrNova/index_artists_row.tpl. You can make the images a max-width and max-height by changing this:

{jrCore_module_function function="jrImage_display" module="jrProfile" type="profile_image" item_id=$row._profile_id size="medium" crop="auto" alt=$row.profile_name title=$row.profile_name class="iloutline img_shadow"}

to this:

{jrCore_module_function function="jrImage_display" module="jrProfile" type="profile_image" item_id=$row._profile_id size="medium" crop="auto" alt=$row.profile_name title=$row.profile_name class="iloutline img_shadow" style="max-width:196px;max-height:196px;"}



--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
Eddy
Eddy
@eddy
9 years ago
479 posts
Thank you @douglas, I did that and reset the caches, but it did not fix it.

Eddy
updated by @eddy: 10/28/15 10:33:30AM
Eddy
Eddy
@eddy
9 years ago
479 posts
All that code did @douglas, is it fixed the image size in the "Featured Artists" in the index page, but it still shows as a portrait everywhere else.
Eddy
Eddy
@eddy
9 years ago
479 posts
Is anyone able to help me with this?

Thank you

Eddy
michael
@michael
9 years ago
7,715 posts
Eddy:...but it still shows as a portrait everywhere else....
You'll need to fix it up in those other locations too.

There are a number of ways to fix it, either with the 'crop=square' feature of the image processor or using CSS to do it, but if you want it square in a location where it isn't forced to be that way, then you need to adjust the location to force it in that location.
brian
@brian
9 years ago
10,148 posts
There's something weird with images on the site - I'm suspecting that it may be due to your server running "Lightspeed" which is an Apache replacement - I've not seen this issue before, but your images are NOT displaying like they should, so something is different at the server level.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net

Tags