By danny ter Avest on Monday, 21 January 2019
Posted in General Issues
Replies 4
Likes 0
Views 453
Votes 0
Hi, on this website I'm using the latestblog module.
Is it possible to show the category avatar instead of the author avatar?
Hey Danny,

You may edit the module's theme file /modules/mod_easybloglatestblogs/tmpl/default_item_heading.php and replace the codes below,

[gist]
<div class="mod-cell cell-tight">
<a href="<?php echo $post->getAuthor()->getProfileLink(); ?>" class="mod-avatar-sm mr-10">
<img src="<?php echo $post->getAuthor()->getAvatar(); ?>" width="50" height="50" alt="<?php echo $post->getAuthor()->getName();?>" />
</a>
</div>
[/gist]

With,

[gist]
<div class="mod-cell cell-tight">
<a href="<?php echo $post->getPrimaryCategory()->getPermalink(); ?>" class="mod-avatar-sm mr-10">
<img src="<?php echo $post->getPrimaryCategory()->getAvatar(); ?>" width="50" height="50" />
</a>
</div>
[/gist]
·
Monday, 21 January 2019 21:27
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi, sorry, don';t see these lines
·
Monday, 21 January 2019 21:37
·
0 Likes
·
0 Votes
·
0 Comments
·
Oeps found it, but still not showing
·
Monday, 21 January 2019 21:39
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

Have you enabled this setting http://take.ms/UDHHF? Or maybe you can remove codes below on paths mentioned above.

[gist type="php"]
<?php if ($params->get('showavatar', false) && $filterType != 'author') { ?>

<?php } ?>
[/gist]

if still persisted, can you provide us with your backend and FTP access for further check on this issues?
·
Tuesday, 22 January 2019 10:40
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post