Subject:*
<
Name/Email:*
<
Message Icon:*
<
Select*
<
Message:*
<



Click the Preview to see the content in action.
Options:*
<
Confirmation Code*
<
9 - 5 = ?  
Input the result from the expression
Maximum attempts you can try: 10
*
<
     

Re: Publisher Random Item
by Zap_English on 2017/5/6 9:50:44

ok, now it's working but it's not showing my default image
Re: Publisher Random Item
by Zap_English on 2017/5/6 8:34:58

I'm not getting an image, just a blank image placeholder

the only change I made to the code was PUBLISHER_URL to RECIPES_URL and BEVERAGES_URL because I'm using clones of publisher

Is there something else that needs to be defined? image_path maybe?

Help!
Re: Publisher Random Item
by liomj on 2017/3/21 2:02:41

Quote:

sabahan wrote:
ok i think got it..add featured image for random article

in items_random_item.php

le="color: #000000"><?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'] . '&amp;w=' . $imgwidth; // No $imgheight for autoheight option }


template publisher_items_random_item.html



le="color: #000000"><?php <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




How do i show more than 1 random item other than cloning this block ?
Re: Publisher Random Item
by FreddyH on 2013/7/26 14:39:53

Found it... If you want a larger pic you have to change line 531/532 in thumb.php
Re: Publisher Random Item
by FreddyH on 2013/7/25 13:10:21

I almost got it to work... I made a new/extra block, but the image will not output 100% quality... I changed to 100% in thumb.php but that didn't do much... Atm it looks like it's set to 50% quality... help! i'm stuck...

Who's Online

213 user(s) are online (157 user(s) are browsing Support Forums)


Members: 0


Guests: 213


more...

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!

Latest GitHub Commits