(M)Social : where to change the date display in article?

Professional Joomla social template with metro design and JomSocial extension support.
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
Mon Apr 21, 2014 5:13 pm
Reply with quote
Report this post
Hi There !

In articles (core blog or easyblog), i will to display the date as "MAY 14" (meaning May 2014, days no displayed) in the litle bloc.
If i don't miss the parameter, which file could i hack and with which parameter ?

Many thanks by advance!
User avatar
Fresh Boarder

GK User
Mon Apr 21, 2014 7:20 pm
Reply with quote
Report this post
Hi,
I remember that avatar photo - it was Dr Frankenstein assistant from old comedy. :mrgreen:

You have to edit Blog view - check this file: templates/gk_msocial\html\com_content\category\blog_item.php
by default this part looks like this
Code: Select all
<time datetime="<?php echo JHtml::_('date', $this->item->publish_up, JText::_(DATE_W3C)); ?>"><?php echo JHtml::_('date', $this->item->publish_up, JText::_('j')); ?><span><?php echo JHtml::_('date', $this->item->publish_up, JText::_('M')); ?></span>  </time>


you have to change to this
Code: Select all
<time datetime="<?php echo JHtml::_('date', $this->item->publish_up, JText::_(DATE_W3C)); ?>"><?php echo JHtml::_('date', $this->item->publish_up, JText::_('j')); ?><span><?php echo JHtml::_('date', $this->item->publish_up, JText::_('M')); ?><br>
<?php echo JHtml::_('date', $this->item->publish_up, JText::_('Y')); ?></span>  </time>


and use this CSS code
Code: Select all
article header > time {   height: 64px; }

where - check my footer
User avatar
Platinum Boarder

GK User
Mon Apr 21, 2014 9:23 pm
Reply with quote
Report this post
Thank you very much for your quick and helpful reply.

I did the change in
templates/gk_msocial\html\com_content\category\blog_item.php

as you mention. It works fine when displaying articles from a category but not for a single article.

So i did the same hack for displaying single article in
templates/gk_msocial\html\com_content\article\default.php

It works as i whish :D

PS: great actor was Marty Feldman (RIP) - wikipedia
User avatar
Fresh Boarder


cron