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



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

Re: Publisher: Add Image for other articles listed under article ?
by Cesagonchu on 2013/3/24 13:31:46

Thank you sabahan, maybe we'll add it to publisher module
Re: Publisher: Add Image for other articles listed under article ?
by sabahan on 2013/3/24 10:51:56

i manage to find the solution

in item.php somewhere in line 118 add this

le="color: #000000"><?php $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
le="color: #000000"><?php <{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}>
Publisher: Add Image for other articles listed under article ?
by sabahan on 2013/3/23 13:47:53

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

Who's Online

172 user(s) are online (133 user(s) are browsing Support Forums)


Members: 0


Guests: 172


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