11
FreddyH
Re: Publisher Random Item
  • 2013/7/16 19:13

  • FreddyH

  • Just popping in

  • Posts: 18

  • Since: 2013/7/1 1


I guess maybe I have an outdated version... Is this the latest? and how can I dl it? http://xuups.googlecode.com/svn/trunk/modules/publisher/

12
Mamba
Re: Publisher Random Item
  • 2013/7/16 19:18

  • Mamba

  • Moderator

  • Posts: 11251

  • Since: 2004/4/23


in the /publisher folder

The latest version is here

Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

13
FreddyH
Re: Publisher Random Item
  • 2013/7/16 19:21

  • FreddyH

  • Just popping in

  • Posts: 18

  • Since: 2013/7/1 1


Oh, thanks.. :)

14
Mamba
Re: Publisher Random Item
  • 2013/7/16 19:22

  • Mamba

  • Moderator

  • Posts: 11251

  • Since: 2004/4/23


I am not sure, I understand you. The link that I gave you was to a Zip file.
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

15
FreddyH
Re: Publisher Random Item
  • 2013/7/16 19:23

  • FreddyH

  • Just popping in

  • Posts: 18

  • Since: 2013/7/1 1


Yeah, sorry... :)

16
FreddyH
Re: Publisher Random Item
  • 2013/7/25 13:10

  • FreddyH

  • Just popping in

  • Posts: 18

  • Since: 2013/7/1 1


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...

17
FreddyH
Re: Publisher Random Item
  • 2013/7/26 14:39

  • FreddyH

  • Just popping in

  • Posts: 18

  • Since: 2013/7/1 1


Found it... If you want a larger pic you have to change line 531/532 in thumb.php

18
liomj
Re: Publisher Random Item
  • 2017/3/21 2:02

  • liomj

  • Just popping in

  • Posts: 67

  • Since: 2012/4/10


Quote:

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




How do i show more than 1 random item other than cloning this block ?

19
Zap_English
Re: Publisher Random Item

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!

20
Zap_English
Re: Publisher Random Item

ok, now it's working but it's not showing my default image

Login

Username:
Password:

Lost Password? Register now!

Who's Online

66 user(s) are online (32 user(s) are browsing Support Forums)


Members: 0


Guests: 66


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Jun 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits