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.
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 |
//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!