Problem with date and comments counter

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
Fri Jan 09, 2015 3:47 pm
Reply with quote
Report this post
Hello.
When I look at the k2 item on homepage in NSP GK 5 module date is as I set.
But when I click on item view, date is different.
I use jcomments and fb comments. I translate and change everything, but I cant find where is the date in this format. I dont know. I wanna change.
Also, I cant find where is 0 Comments strings (because I was translate everything).
Could you help me?

EDIT: Sorry, I forgot to send you picture.
User avatar
Senior Boarder

GK User
Sat Jan 10, 2015 9:42 am
Reply with quote
Report this post
Could you please post an url to your site where this issue can be seen?
User avatar
Moderator

GK User
Sat Jan 10, 2015 10:04 am
Reply with quote
Report this post
I just send you details. I fix the Comments counter translation. Only date is a problem. Please, check. :)

It must be in format d. m. y. (with spaces and dots).
Thank you.
User avatar
Senior Boarder

GK User
Tue Jan 13, 2015 5:50 pm
Reply with quote
Report this post
You need to edit this files:
templates/gk_news2/html/com_k2/templates/generic.php
templates/gk_news2/html/com_k2/templates/default/user.php
templates/gk_news2/html/com_k2/templates/default/tag.php
templates/gk_news2/html/com_k2/templates/default/latest_item2.php
templates/gk_news2/html/com_k2/templates/default/latest_item.php
templates/gk_news2/html/com_k2/templates/default/category_item.php
templates/gk_news2/html/com_k2/templates/default/item.php
and in each of those files you need to find line that looks this way:
Code: Select all
<li><time datetime="<?php echo JHtml::_('date', $this->item->created, JText::_(DATE_W3C)); ?>"><?php echo JHTML::_('date', $this->item->created, 'F j, Y'); ?></time></li>

and replace it with:
Code: Select all
<li><time datetime="<?php echo JHtml::_('date', $this->item->created, JText::_(DATE_W3C)); ?>"><?php echo JHTML::_('date', $this->item->created, 'd.m.Y'); ?></time></li>

the important part is replacing 'F j, Y' with 'd.m.Y'
User avatar
Moderator

GK User
Tue Jan 13, 2015 11:03 pm
Reply with quote
Report this post
It works perfect! Thank you! :roll:
User avatar
Senior Boarder

GK User
Wed Jan 14, 2015 5:45 pm
Reply with quote
Report this post
No problem :)
Please let me know if you would have any additional questions regarding this topic.
User avatar
Moderator


cron