Quote

We're also available for Custom Joomla Development

Hire us now

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.
Resolved
The discussion has been resolved.
       
  • Replied by admin on Saturday, December 12 2015, 02:42 AM · Hide· #1
    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
    Please post rating at the Joomla! Extensions Directory - http://extensions.joomla.org/profile/profile/details/264
  •  
  • Replied by thei on Monday, December 14 2015, 08:45 AM · Hide· #2
    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.
  •  
  • Replied by admin on Monday, December 14 2015, 02:42 PM · Hide· #3
    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)
    Please post rating at the Joomla! Extensions Directory - http://extensions.joomla.org/profile/profile/details/264
  •  
  • Replied by thei on Monday, December 14 2015, 04:21 PM · Hide· #4
    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 http://scopias.mediacradle.nl
    The articles with the scopias logo.
  •  
  • Replied by admin on Tuesday, December 15 2015, 01:52 AM · Hide· #5
    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)
    Please post rating at the Joomla! Extensions Directory - http://extensions.joomla.org/profile/profile/details/264
  •  
  • Replied by thei on Thursday, December 17 2015, 08:24 AM · Hide· #6
    It works great now!

    Thanks for your help.
  •  
  •  
    Replied by admin on Thursday, December 17 2015, 08:33 AM · Hide· #7
    Nice! Glad to hear that. If you have a time, please leave us a rate at JED http://extensions.joomla.org/extensions/extension/news-display/articles-display/mini-frontpage
    It will help us much. Thanks ;)
    Please post rating at the Joomla! Extensions Directory - http://extensions.joomla.org/profile/profile/details/264
Your Response
Please login first in order for you to submit comments