K2 mini portfolio images not showing
- Posted by crnamrlja (2) Offline
For reason unknown, Mini K2 in portfolio layout does not show images of most items. However, if you open an item, the image is there.
When I inspect image links, the ones that appear have:
src="/images/minik2/95a055ab9c360c0c5f017822b916c6ac.jpg"
And those items that don`t have images have the following:
src="//media/k2/items/cache/471bd07fdaa7b040f7ab8b2a13f8f35b_S.jpg
Mind you, images are present in the folder "/media/k2/items/cache/" but the syntax prevents them from showing, to be more precise the one "/" too many
Any ideas why this is happening? Shouldn`t all of them link to the same folder??
The page is here:
zdravamaca.rs/index.php/za-macke
(Note: Naong template was bought legally and it included K2 mini)
Thank you for your time!
10 years 8 months ago #1
by crnamrlja
When I inspect image links, the ones that appear have:
src="/images/minik2/95a055ab9c360c0c5f017822b916c6ac.jpg"
And those items that don`t have images have the following:
src="//media/k2/items/cache/471bd07fdaa7b040f7ab8b2a13f8f35b_S.jpg
Mind you, images are present in the folder "/media/k2/items/cache/" but the syntax prevents them from showing, to be more precise the one "/" too many
Any ideas why this is happening? Shouldn`t all of them link to the same folder??
The page is here:
zdravamaca.rs/index.php/za-macke
(Note: Naong template was bought legally and it included K2 mini)
Thank you for your time!
Please Log in or Create an account to join the conversation.
- Posted by TemplatePlazza (5318) Offline
Hi, sorry for delay in responding.
Can you try to open this file with your php editor :
[root]/modules/mod_minik2/tmpl/portfolio/default.php
arround line 28 you'll see this code
try to change it to
let me know the result
10 years 7 months ago #2
by TemplatePlazza
Can you try to open this file with your php editor :
[root]/modules/mod_minik2/tmpl/portfolio/default.php
arround line 28 you'll see this code
<img src="<?php echo resizeImageHelper::getResizedImage('/'.$item->image, $tmbWidth, $tmbHeight, $option); ?>" alt="<?php echo $item->title; ?>" style="height:<?php echo $tmbHeight; ?>px; width:<?php echo $tmbWidth; ?>px" />
try to change it to
<img src="<?php echo resizeImageHelper::getResizedImage(''.$item->image, $tmbWidth, $tmbHeight, $option); ?>" alt="<?php echo $item->title; ?>" style="height:<?php echo $tmbHeight; ?>px; width:<?php echo $tmbWidth; ?>px" />
let me know the result
Please Log in or Create an account to join the conversation.
- Posted by crnamrlja (2) Offline
- Posted by Dotty (3) Offline
I just want to thank you admin for posting this minor but very helpful fix!
Many thanks
10 years 2 months ago #4
by Dotty
Many thanks
Please Log in or Create an account to join the conversation.
- Posted by peter (1) Offline
i have the same probleem, changing default.php dosnt solved it !!!!!!!
10 years 1 month ago #5
by peter
Please Log in or Create an account to join the conversation.
- Posted by sheryl (1) Offline
Hello admin,
I just got the same problem. I also made the changes to modules/mod_minik2/tmpl/portfolio/default.php as posted above but still not working. Any idea about this? This is the URL:
calamay.com/index.php/order-calamay
Many thanks
10 years 3 weeks ago #6
by sheryl
I just got the same problem. I also made the changes to modules/mod_minik2/tmpl/portfolio/default.php as posted above but still not working. Any idea about this? This is the URL:
calamay.com/index.php/order-calamay
Many thanks
Please Log in or Create an account to join the conversation.