UPDATES EasyBlog 6.0.14 Released! Joomla 5.x and PHP 8.x compatible now!

Helpdesk

Your Time
Our Time
Response Time
24 — 48 hours
We strive to provide the fastest ever response possible. However, we are not super beings.

Allow at least 24 — 48 hours
  Support is online
Our support specialists is available now. We will attend to you as soon as we can.
  Support is online

Blog display blogger and teamblog avatar

Benoit Gonneville Damme · ·
9:25 AM Tuesday, 15 April 2014
None
Hey there guys,

Weird stuff, since a while now, on blog page that are "teamblog" articles, the teamblog avatar AND the blogger avatar appear either one over each other or one under each other...

Like you can see in the screenshot, I've modify a bit the blog post image to have a sweet overlay displaying the title and avatar. I'd like to code something where :

- If it's a blog post by a blogger, the blogger avatar and name are displayed.
- if it's a blog post by a teamblog, the teamblog avatar and name are displayed.

			<div class="blog-horizonline">
<div class="blog-horizonline-inner">
<!-- @template: Avatar -->
<?php if( $system->config->get( 'layout_avatar' ) && $system->config->get( 'layout_avatar_in_read_blog' ) && $this->getParam( 'show_avatar_entry' ) ){ ?>
<!-- @template: Avatar -->
<?php echo $this->fetch( 'blog.avatar.php' , array( 'row' => $blog , 'customClass' => 'blog-read-avatar' ) ); ?>
<?php } ?>

<?php if( $this->getParam( 'show_author') ){ ?>
<span class="blog-author">Crafted with love
<?php echo JText::_( 'COM_EASYBLOG_BY' );?> <a href="/<?php echo $blog->blogger->getProfileLink(); ?>" itemprop="author"><?php echo $blog->blogger->getName(); ?></a>
</span>
<?php } ?>
</div>
</div>


Anyway you could help me with that ?

Much appreciated !

B.
The replies under this section are restricted to logged in users or users with an active subscription with us