StackIdeas
show category avatar latest blog module
By
danny ter Avest
on Monday, 21 January 2019
Posted in
General Issues
Replies
4
Likes
0
Views
519
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]
Mark
·
Monday, 21 January 2019 21:27
·
0 Likes
·
0 Votes
·
0 Comments
·
#446656
Hi, sorry, don';t see these lines
danny ter Avest
·
Monday, 21 January 2019 21:37
·
0 Likes
·
0 Votes
·
0 Comments
·
#446659
Oeps found it, but still not showing
danny ter Avest
·
Monday, 21 January 2019 21:39
·
0 Likes
·
0 Votes
·
0 Comments
·
#446664
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?
Abdul Warith Norudin
·
Tuesday, 22 January 2019 10:40
·
0 Likes
·
0 Votes
·
0 Comments
·
#446714
View Full Post