how to disable gravitar/aside column

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
Tue Apr 23, 2013 2:00 pm
Reply with quote
Report this post
When displaying joomla articles, the aside column has gravitar logo. I would like to disable the entire aside column and have the author show up in the article under the title. I would like the default joomla behavior there.

How do I go about doing that?
User avatar
Senior Boarder

GK User
Tue Apr 23, 2013 10:45 pm
Reply with quote
Report this post
Hi, this box have absolute position.

Code: Select all
.itemAsideInfo {
    position: absolute;
    top: 0;
}


To make it change you have to modify it, to "relative", delete "top:0;" ,
then make it a little bit wider, from default:
Code: Select all
article aside {  width: 90px;}

To:
Code: Select all
article aside {  width: 300px;}

and put date, category and hits inline by css or editing .php file (gk_simplicity\html\com_k2\templates\default\item.php)




and play some with margins and paddings, which should be easy.
User avatar
Platinum Boarder

GK User
Wed Apr 24, 2013 7:56 pm
Reply with quote
Report this post
Since I'm not using K2, I found the code that I need to modify in...

templates/gk_simplicity/html/com_content/article/default.php

...the gravitar interface is hardcoded, which is what I suspected. I'll modify the code around this issue by moving the author up under the title and removing the gravitar interface.

Thanks!
User avatar
Senior Boarder

GK User
Thu Apr 25, 2013 2:54 pm
Reply with quote
Report this post
Since I've been asked off line, I'll attach the mod that I made to address this. The file that I'm attaching is from v3.8 dated in the extension manager as 01-May-2013. The file that I've edited was:

gk_simplicity/html/com_content/article/default.php

At the end of the header I added code to display the author in a more tradition fashion:

Code: Select all

      </h1>
      <?php endif; ?>
      
      <?php //JNH - BEGIN - mod to display author after title. ?>
      <?php if ($params->get('show_author') && !empty($this->item->author)) : ?>
      <?php $author = $this->item->created_by_alias ? $this->item->created_by_alias : $this->item->author; ?>
      <?php echo '<p class="articleAuthor">'?>
      <?php echo JText::sprintf('COM_CONTENT_WRITTEN_BY', $author); ?>
      <?php echo '</p>'?>
      <?php endif; ?>
      <?php //JNH - END - mod to display author after title. ?>

   </header>


And then I removed the aside code completely:

Code: Select all
   

   <?php echo $this->item->event->afterDisplayContent; ?>
</div>
<?php //JNH the entirety of the if then around the aside bock removed from this part ?>
</article>



Please understand I'm a php rookie, so if you start asking coding question, I doubt I'll be able to provide any meningful input.
User avatar
Senior Boarder


cron