minifrontpage

is there a possibility to ad a default thumb to minifp in case there is an article without picture?
Now its generating an error if i place an article without picture.
9 years 4 months ago #1 by Thei

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

  • Posted by TemplatePlazza (5310) Offline
Hi, Can you tell me what is the error message? Anyway, try to go to your administrator page then open System -> Global Configuration -> Server and set the Error Reporting to None
9 years 4 months ago #2 by TemplatePlazza

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

Hi,
Error message is:
Notice: Undefined property: stdClass::$thumb in /public/sites/scopias.mediacradle.nl/modules/mod_minifrontpage/themes/tabbed-slide-left-right/tmpl/bottom.php on line 48

It diassapears when i set error reporting to none or sipmle.

But it would be really great if i could insert a default image.

Thanks for your help.
9 years 4 months ago #3 by Thei

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

  • Posted by TemplatePlazza (5310) Offline

But it would be really great if i could insert a default image.

Hi you can do that by editing the file root/modules/mod_minifrontpage/mod_minifrontpage.php:
at line 105 you will see this code :
foreach($list as $index => $item)
{
	if ($thumb_embed)
change that to
foreach($list as $index => $item)
{$item->thumb = "<img src='path/to/your/default/image' />";
	if ($thumb_embed)
9 years 4 months ago #4 by TemplatePlazza

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

Thank for this very fast answer.

Insertion of the above code is working.
But now the allignement of the text is below the article and not on the side.

You can check it on my testsite scopias.mediacradle.nl
The articles with the scopias logo.
9 years 4 months ago #5 by Thei

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

  • Posted by TemplatePlazza (5310) Offline
Hi, try to change the code I suggested before to this one :
foreach($list as $index => $item)
{$item->thumb = "<img src='path/to/your/default/image' class='mfp-img-left'/>";
    if ($thumb_embed)
9 years 4 months ago #6 by TemplatePlazza

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

Powered by Kunena Forum