Extended Author Bio Not Showing (K2)

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Sat Dec 21, 2013 3:59 am
Reply with quote
Report this post
Hi there all!

We are trying to get the Extended Author Bio to show up at the bottom of our blog posts in K2. Unfortunately we have not been able to get it to show.

We searched the forums and came across this thread: http://www.gavick.com/forums/league-new ... 17507.html

We followed the instructions and renamed the folder
templates/gk_simplicity/html/com_k2
to
templates/gk_league_news/html/com_k2_test

and the Extended author bio then showed up like it is supposed to. This has confirmed that the problem is with the Simplicity template itself.

Can you please advise on how to fix this issue.
User avatar
Senior Boarder

teitbite
Sat Dec 21, 2013 8:06 pm
Reply with quote
Report this post
Hi

It was designed like that, but if You want to show it than just copy the code responsible for it from K2 template for /default/item.php to /html/default/item.php

The code You need to add looks like this:

Code: Select all
  <?php if($this->item->params->get('itemAuthorBlock') && empty($this->item->created_by_alias)): ?>
  <!-- Author Block -->
  <div class="itemAuthorBlock">

     <?php if($this->item->params->get('itemAuthorImage') && !empty($this->item->author->avatar)): ?>
     <img class="itemAuthorAvatar" src="<?php echo $this->item->author->avatar; ?>" alt="<?php echo K2HelperUtilities::cleanHtml($this->item->author->name); ?>" />
     <?php endif; ?>

    <div class="itemAuthorDetails">
      <h3 class="itemAuthorName">
         <a rel="author" href="<?php echo $this->item->author->link; ?>"><?php echo $this->item->author->name; ?></a>
      </h3>

      <?php if($this->item->params->get('itemAuthorDescription') && !empty($this->item->author->profile->description)): ?>
      <p><?php echo $this->item->author->profile->description; ?></p>
      <?php endif; ?>

      <?php if($this->item->params->get('itemAuthorURL') && !empty($this->item->author->profile->url)): ?>
      <span class="itemAuthorUrl"><?php echo JText::_('K2_WEBSITE'); ?> <a rel="me" href="<?php echo $this->item->author->profile->url; ?>" target="_blank"><?php echo str_replace('http://','',$this->item->author->profile->url); ?></a></span>
      <?php endif; ?>

      <?php if($this->item->params->get('itemAuthorEmail')): ?>
      <span class="itemAuthorEmail"><?php echo JText::_('K2_EMAIL'); ?> <?php echo JHTML::_('Email.cloak', $this->item->author->email); ?></span>
      <?php endif; ?>

         <div class="clr"></div>

         <!-- K2 Plugins: K2UserDisplay -->
         <?php echo $this->item->event->K2UserDisplay; ?>

    </div>
    <div class="clr"></div>
  </div>
  <?php endif; ?>
User avatar
Moderator

GK User
Sat Dec 21, 2013 9:10 pm
Reply with quote
Report this post
This is now resolved. Thank you
User avatar
Senior Boarder

teitbite
Tue Dec 24, 2013 12:07 pm
Reply with quote
Report this post
Hi

No problem. Glad I couls help :)
User avatar
Moderator


cron