2013/7/16 19:13
FreddyH
Just popping in
Posts: 18
Since: 2013/7/1 1
2013/7/16 19:18
Mamba
Moderator
Posts: 11409
Since: 2004/4/23
2013/7/16 19:21
2013/7/16 19:22
2013/7/16 19:23
2013/7/25 13:10
2013/7/26 14:39
2017/3/21 2:02
liomj
Posts: 94
Since: 2012/4/10
sabahan wrote:ok i think got it..add featured image for random articlein items_random_item.php $mainImage = $itemsObj->getMainImage(); // check to see if GD function exist if (!function_exists('imagecreatetruecolor')) { $block['item_image'] = $mainImage['image_path']; } else { $block['item_image'] = PUBLISHER_URL . '/thumb.php?src=' . $mainImage['image_path'] . '&w=' . $imgwidth; // No $imgheight for autoheight option } template publisher_items_random_item.html <img src="<{$block.item_image}>" alt="" width="100" height="100" align="left" style="padding:5px;"/> at first i got blank page because of this warning//CAREFUL!! with many items this will exhaust memory remove $block['lang_fullitem'] = _MB_PUBLISHER_FULLITEM; notw its ok
$mainImage = $itemsObj->getMainImage(); // check to see if GD function exist if (!function_exists('imagecreatetruecolor')) { $block['item_image'] = $mainImage['image_path']; } else { $block['item_image'] = PUBLISHER_URL . '/thumb.php?src=' . $mainImage['image_path'] . '&w=' . $imgwidth; // No $imgheight for autoheight option }
<img src="<{$block.item_image}>" alt="" width="100" height="100" align="left" style="padding:5px;"/>
2017/5/6 8:34
Zap_English
Quite a regular
Posts: 399
Since: 2016/5/24
2017/5/6 9:50
Advanced Search
235 user(s) are online (191 user(s) are browsing Support Forums)
Members: 0
Guests: 235