xoops forums

Forum Index


Board index » All Posts (sabahan)




sabahan

Quite a regular
Posted on: 2013/3/31 5:17
sabahan
sabahan (Show more)
Quite a regular
Posts: 317
Since: 2006/3/4 5
#21

Re: Publisher Random Item

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 ?


sabahan

Quite a regular
Posted on: 2013/3/31 4:57
sabahan
sabahan (Show more)
Quite a regular
Posts: 317
Since: 2006/3/4 5
#22

Re: Publisher Random Item

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


sabahan

Quite a regular
Posted on: 2013/3/31 2:44
sabahan
sabahan (Show more)
Quite a regular
Posts: 317
Since: 2006/3/4 5
#23

Re: Publisher Random Item

Hi ,

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


sabahan

Quite a regular
Posted on: 2013/3/24 11:09
sabahan
sabahan (Show more)
Quite a regular
Posts: 317
Since: 2006/3/4 5
#24

Re: SmartClone 1.10 Beta 1 ready for testing

Thanks..This is great

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

publisher is clonable as far as i know


sabahan

Quite a regular
Posted on: 2013/3/24 10:51
sabahan
sabahan (Show more)
Quite a regular
Posts: 317
Since: 2006/3/4 5
#25

Re: Publisher: Add Image for other articles listed under article ?

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


sabahan

Quite a regular
Posted on: 2013/3/23 13:47
sabahan
sabahan (Show more)
Quite a regular
Posts: 317
Since: 2006/3/4 5
#26

Publisher: Add Image for other articles listed under article ?

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



sabahan

Quite a regular
Posted on: 2013/2/8 10:06
sabahan
sabahan (Show more)
Quite a regular
Posts: 317
Since: 2006/3/4 5
#27

Re: eXtCal 2.37 RC5

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


sabahan

Quite a regular
Posted on: 2013/2/4 12:18
sabahan
sabahan (Show more)
Quite a regular
Posts: 317
Since: 2006/3/4 5
#28

Re: D-Transport 2.0.2.2 Beta

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

i propose this module to replace xoops.org module repository


sabahan

Quite a regular
Posted on: 2013/1/30 15:06
sabahan
sabahan (Show more)
Quite a regular
Posts: 317
Since: 2006/3/4 5
#29

Re: eXtCal 2.37 Beta 4, will this ever get out of beta?

in admin location section

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


empty column for phone


sabahan

Quite a regular
Posted on: 2013/1/30 10:06
sabahan
sabahan (Show more)
Quite a regular
Posts: 317
Since: 2006/3/4 5
#30

Re: eXtCal 2.37 Beta 4, will this ever get out of beta?

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