4
Try this in author_items.php:
le="color: #000000"><?php //mb start $mainImage = $item->getMainImage(); $imageThumb = $mainImage['image_thumb']; //mb end $categories[$catId]['count_items']++; $categories[$catId]['count_hits'] += $item->counter(); $categories[$catId]['items'][] = [ 'title' => $item->getTitle(), 'hits' => $item->counter(), 'link' => $item->getItemLink(), 'published' => $item->getDatesub(_SHORTDATESTRING), //'rating' => $xoopsLocal->number_format((float)$item->rating()) 'rating' => $item->rating(), 'image' => $imageThumb,//mb ];
Then in the publisher_author_items.tpl you can add this:
le="color: #000000"><?php <{foreach item=item from=$category.items}> <tr> <td> <{if $item.image}> <img src="<{$item.image}>" alt="<{$item.image_name}>"> <{/if}> </td> <td><{$item.published}></td> <td> <{$item.link}></td> <td align='right'><{$item.hits}> </td> <{if $permRating}> <td align='right'> <{$item.rating}></td> <{/if}> </tr> <{/foreach}>
Of course, you would have to set the template the way you want it to look - the code above was just for testing to see if it works.