sabahan wrote:
ok i think got it..add featured image for random article
in 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
Eliminate the blocking JavaScript and CSS rendering from the part of the page that appears on the screen
The page contains blocking scripts (10) and blocking CSS resources (3). This causes delays in rendering the page.
A portion of the page on the screen could not render without having to wait for these resources. Try delaying loading of locking resources, loading them asynchronously, or embedding the most important elements of these assets directly into HTML.
Remove JavaScript rendering blocking code:
Http://www.kulturystyka.org.pl/include/xoops.js
Http://www.kulturystyka.org.pl/class/textsanitizer/image/image.js
Http://www.kulturystyka.org.pl/...search/js/scriptaculous/lib/prototype.js
Http://www.kulturystyka.org.pl/...ch/js/scriptaculous/src/scriptaculous.js
Http://www.kulturystyka.org.pl/...mysearch/js/scriptaculous/src/builder.js
Http://www.kulturystyka.org.pl/..mysearch/js/scriptaculous/src/effects.js
Http://www.kulturystyka.org.pl/...ysearch/js/scriptaculous/src/dragdrop.js
Http://www.kulturystyka.org.pl/...ysearch/js/scriptaculous/src/controls.js
Http://www.kulturystyka.org.pl/.../mysearch/js/scriptaculous/src/slider.js
Optimize the following URL's CSS display:
Http://www.kulturystyka.org.pl/themes/kimokea/style.css
Http://www.kulturystyka.org.pl/language/polish/style.css
Http://www.kulturystyka.org.pl/modules/mysearch/css/style.css