By Ben on Tuesday, 18 February 2014
Posted in General Issues
Replies 3
Likes 0
Views 877
Votes 0
Is there any way to remove the blog posts from displaying on the author pages? Ideally, we only want the author page to have the author's bio, no additional information.

This creates duplicate content and duplicate pages.
Hello Ben,

Sorry for the late reply.
Please go to Joomla\components\com_easyblog\themes\default\blog.blogger.php
and remove the code below.

<div id="ezblog-posts" class="forBlogger">
<?php if(isset($statType)) : ?>
<div>
<h2><?php echo ($statType == 'tag') ? JText::sprintf( 'COM_EASYBLOG_BLOGGER_STAT_TAG' , $statObject->title) : JText::sprintf('COM_EASYBLOG_BLOGGER_STAT_CATEGORY', $statObject->title); ?></h2>
</div>
<?php endif ?>
<?php
if(!empty($blogs))
{
foreach ($blogs as $row)
{
?>
<?php if( $system->config->get( 'main_password_protect' ) && !empty( $row->blogpassword ) ){ ?>
<!-- Password protected theme files -->
<?php echo $this->fetch( 'blog.item.protected.php' , array( 'row' => $row ) ); ?>
<?php } else { ?>
<!-- Normal post theme files -->
<?php echo $this->fetch( 'blog.item'. EasyBlogHelper::getHelper( 'Sources' )->getTemplateFile( $row->source ) . '.php' , array( 'row' => $row ) ); ?>
<?php } ?>
<?php
}
}
else
{
?>
<div class="eblog-message info"><?php echo JText::sprintf('COM_EASYBLOG_BLOGGERS_NO_POST_YET' , $blogger->getName() ); ?></div>
<?php
}
?>

<?php if ( $pagination ) : ?>
<div class="eblog-pagination clearfix">
<?php echo $pagination; ?>
</div>
<?php endif; ?>
</div>


If you need further assistance please provide us with joomla backend and FTP access so we could do it for you.

Thanks:)
·
Tuesday, 18 February 2014 01:32
·
0 Likes
·
0 Votes
·
0 Comments
·
This worked. Thank you!

When updating EasyBlog, will it re-insert this code into the PHP file that I have edited? Your staff has been helping with quite a few edits, but I think they will all be wiped if I update to the latest version. Is this correct?
Ben
·
Tuesday, 18 February 2014 03:50
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Ben,

Yes, it is correct. All your modification will be wiped. You need to backup those file before updating and re-apply it back.
·
Tuesday, 18 February 2014 10:28
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post