k2 user infos not shown

Support desk for Multipurpose Quark Theme
GK User
Tue Jan 31, 2017 2:57 pm
Hi there,

I tried everything I can think of:

[list=]category settings[/list]
[list=]item settings[/list]
[list=]and the overall k2 settings[/list]

I even had a look at the menu settings

but can't figure out how to display the author infos (like image and description) in an article.

Please have a look at http://maximize-your-business.de/myb-blog

Any idea?
User avatar
Gold Boarder

teitbite
Sun Feb 05, 2017 10:12 am
Hi

I'm afraid it was removed in this template. Please add it to /html/com_k2/templates/default/item.php

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
Mon Feb 06, 2017 12:52 pm
Hi there, this doesn't cause any change.

Any other idea?
User avatar
Gold Boarder

teitbite
Thu Feb 09, 2017 4:42 pm
Hi

That's the missing part of the code responsible for showing author details. Please send me an access to FTP so I'll check if it's added correctly.
User avatar
Moderator

GK User
Tue Feb 14, 2017 11:14 am
Hi there, sent you a private message with ftp access but can't find it neither in my sent message folder nor in any other folder. Did you get it?
User avatar
Gold Boarder

teitbite
Sat Feb 18, 2017 6:09 pm
Hi

No, the only message from You from last couple of days is the not working access to site where You asked about paralax positioning, which I see is working ok already.

Try send me an access to my private mail [email protected]
User avatar
Moderator


cron