Mini Frontpage: no image found in case the first image is in the fulltext rather then in the introtext

Hello,

In an article I have the first image in the fulltext. Than the deualt image is displayed, because the image in the full text is not found.

In have corrected this in Default.php.
Line 57:

Replace:
$item->introtext --> $item->introtext.$item->fulltext

$thumb_img = MinifrontpageHelper::getThumbnail($item->id, $item->images,$thumb_folder,$show_default_thumb,$custom_default_thumb,$thumb_width,$thumb_height,$item->title,$item->introtext.$item->fulltex,$module->id);


Regards,

Peter
4 years 3 weeks ago #1 by Peter

Please Log in or Create an account to join the conversation.

  • Posted by TemplatePlazza (5261) Offline
Hi Peter, Ah, I see I missed that condition. It probably would increase the server load abit when adding fulltext to scan, but I think it's ok, because the module will scan it once only. Thanks!
4 years 3 weeks ago #2 by TemplatePlazza

Please Log in or Create an account to join the conversation.

You're welcome!
Is this modification included in a future update?

Remark: then also then also Carousel.php and Masonry.php has to be modified
I hope so.

Regards,
Peter
4 years 3 weeks ago #3 by Peter

Please Log in or Create an account to join the conversation.

I saw that this modification is not in version 3.1.1.
So I have to edit 3 files by hand (everytime).

Are you going to add it to the module?

Beste regards,
Peter
3 years 9 months ago #4 by Peter

Please Log in or Create an account to join the conversation.

Would be great! Thanks! Peter
3 years 9 months ago #5 by Peter

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum