adding author and avatar to problog list

Permalink Browser Info Environment
Hi. I need to modify the ProBlog list block to include the author and avatar. I found this post on the subject, but the thread is old and the code provided doesn't seem to work on up to date versions of concrete5:
http://www.concrete5.org/marketplace/addons/problog/questions-and-d...

Any guidance on how to do this would be greatly appreciated.

Type: Discussion
Status: New
brownwingstudio
View Replies:
ckwill90 replied on at Permalink Reply
ckwill90
I did this for our posts (http://www.wellscolibrary.org). The change is made in the view.php file in problog\blocks\content\templates\blog_post. (I did this awhile ago so bare with me.) Looks like I added the following:

//if show author is set in settings,
//grab each info object
//the nab the avatar
$uPage = $ui->getUserUserPage();

Line 122 should be
<div id="bio">
<h2><?php echo $aboutTitle ; ?></h2>
<div id="bioInfo" class="fl">

<h5><?php echo $uLocation ; ?></h5>
<div id="avatar" class="fl">
<?php echo $uAvatar; ?>
</div>
<h4><?php echo ('Written by ') ?><?php echo $firstName.' '.$lastName; ?></h4>
<?php
if(isset($aboutBio)){
echo $aboutBio ;
}else{
echo t('<i> Please add your bio info through your member profile page, or through your dashboard.</i>');
}
?><br /><br />
<!-- <?php echo $uPage; ?> -->
<!-- <?php echo t('Read all posts written by '); ?><a href=<?php echo $firstName.' '.$lastName; ?> -->
<?php echo t('Read all posts written by '); ?><?php echo "<a href='$uPage'> $firstName $lastName</a>"; ?>
</div>

Hope this helps!

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.