21
sabahan
Re: Publisher Random Item
  • 2013/3/31 5:17

  • sabahan

  • Quite a regular

  • Posts: 317

  • Since: 2006/3/4 5


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


now still finding how to show 4 random instead of 1

Quote:

The only thing I can think of is to copy the random article block code and use it to create 3 custom blocks as your random items

another better way ?



22
sabahan
Re: Publisher Random Item
  • 2013/3/31 4:57

  • sabahan

  • Quite a regular

  • Posts: 317

  • Since: 2006/3/4 5


not the image inside of the article but Article featured image that we can upload for every publisher article...


i did this before in my publisher clone module but for Other articles
https://xoops.org/modules/newbb/viewtopic.php?post_id=352477

will try if i can do this for random item



i want to show the 4 random article below article item of each item like blog style



23
sabahan
Re: Publisher Random Item
  • 2013/3/31 2:44

  • sabahan

  • Quite a regular

  • Posts: 317

  • Since: 2006/3/4 5


Hi ,

1. how do i publish the image of the random article
2. currently it display 1 random item how do i display 4



24
sabahan
Re: SmartClone 1.10 Beta 1 ready for testing
  • 2013/3/24 11:09

  • sabahan

  • Quite a regular

  • Posts: 317

  • Since: 2006/3/4 5


Thanks..This is great

is there any list currently clonable module beside wfdownloads and smartfaq ?

publisher is clonable as far as i know



25
sabahan
Re: Publisher: Add Image for other articles listed under article ?
  • 2013/3/24 10:51

  • sabahan

  • Quite a regular

  • Posts: 317

  • Since: 2006/3/4 5


i manage to find the solution

in item.php somewhere in line 118 add this

$mainImage $theitemObj->getMainImage();
            
// check to see if GD function exist
            
$theitem['item_image'] = $mainImage['image_path'];
            if (!empty(
$mainImage['image_path']) && function_exists('imagecreatetruecolor')) {
                
$theitem['item_image'] = ARTIKEL_URL '/thumb.php?src=' $mainImage['image_path'] . '&amp;w=100';
            }




in publisher_item.html

use this to call the image
<{if $item.item_image != ''}> <a href="<{$item.itemurl}>" title="<{$item.title}>">
           
                    <
img src="<{$item.item_image}>" alt="<{$item.title}>" align="left" width="100" /> 
</
a><{/if}>



26
sabahan
Publisher: Add Image for other articles listed under article ?
  • 2013/3/23 13:47

  • sabahan

  • Quite a regular

  • Posts: 317

  • Since: 2006/3/4 5


Hi

Need some help with the Publisher Module by Trabis

i have set the "Other articles display type: All articles" in preferences

how do I add the item image of all of the "other articles" listed

Now it is displaying Title, Hits, Date submission, i need to add image for the respective article

i know we have have to edit the file item.php somewhere line 118 and in the template publisher_item.html


but i have limited php knowledge..




27
sabahan
Re: eXtCal 2.37 RC5
  • 2013/2/8 10:06

  • sabahan

  • Quite a regular

  • Posts: 317

  • Since: 2006/3/4 5


anyone can confirm this..

the upcoming event block is not displaying in xoops 2.5.5..with no debug error


in 2.56 ..its working..

environment
PHP Version 5.3.1
mySQL Version 5.1.41



28
sabahan
Re: D-Transport 2.0.2.2 Beta
  • 2013/2/4 12:18

  • sabahan

  • Quite a regular

  • Posts: 317

  • Since: 2006/3/4 5


this is a really nice module...thank you very much bit

i propose this module to replace xoops.org module repository



29
sabahan
Re: eXtCal 2.37 Beta 4, will this ever get out of beta?
  • 2013/1/30 15:06

  • sabahan

  • Quite a regular

  • Posts: 317

  • Since: 2006/3/4 5


in admin location section

http://localhost/256/modules/extcal/admin/etablissement.php


empty column for phone



30
sabahan
Re: eXtCal 2.37 Beta 4, will this ever get out of beta?
  • 2013/1/30 10:06

  • sabahan

  • Quite a regular

  • Posts: 317

  • Since: 2006/3/4 5


- missing bg style when editing event in admin..just xoopsforms white background no debug error
- not a bug but when we attached two image only the first image is display in tooltip (suggest to turn off tooltip as default)




TopTop
« 1 2 (3) 4 5 6 ... 27 »



Login

Who's Online

289 user(s) are online (164 user(s) are browsing Support Forums)


Members: 0


Guests: 289


more...

Donat-O-Meter

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

Latest GitHub Commits