date format

Rate this topic: Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.
GK User
Sun Mar 16, 2014 2:58 pm
Reply with quote
Report this post
Hi,

where can I set the date format of the articles in the news2 template? My articles are all made with K2. In the template setting I don't find anything about the date. Now is Month day, year and I would like it as day moth year.
Thank you.
User avatar
Expert Boarder

GK User
Mon Mar 17, 2014 7:43 am
Reply with quote
Report this post
A lot of file editing to do, so in 2 parts:
Please edit those files:
/templates/gk_news2/html/com_content/archive/default_items.php
/templates/gk_news2/html/com_content/article/default.php
/templates/gk_news2/html/com_content/category/blog_item.php
/templates/gk_news2/html/com_content/featured/default_item.php
/templates/gk_news2/html/com_k2/templates/generic.php
/templates/gk_news2/html/com_k2/templates/default/category_item.php
/templates/gk_news2/html/com_k2/templates/default/item.php
/templates/gk_news2/html/com_k2/templates/default/latest_item.php
/templates/gk_news2/html/com_k2/templates/default/tag.php
/templates/gk_news2/html/com_k2/templates/default/user.php

and in each please find:
Code: Select all
'F j, Y'

and replace it with:
Code: Select all
'j F Y'


More on date formatting:
http://codex.wordpress.org/Formatting_Date_and_Time
(I know its WordPress article, but is describes the use of php date() which is exactly same on every system that uses it).
User avatar
Moderator

GK User
Mon Mar 17, 2014 8:13 am
Reply with quote
Report this post
And now - for the modules on homepage - you need to edit each of them, then go to "Article layout" tab, show "Information block" section and make the same change as described above in "Date format" field.
User avatar
Moderator

GK User
Wed Mar 19, 2014 3:50 pm
Reply with quote
Report this post
thank you very much Cyberek, now is ok, but in the HP, in the Highlight module in position banner-left it doesn't display "date" and "published by" anymore. Do you know why? I attach you the image with the settings so you can see that they are set as before.... the website is always www.lodicitta.it/gavick_news2
Thank you again.
User avatar
Expert Boarder

GK User
Wed Mar 19, 2014 3:54 pm
Reply with quote
Report this post
It happened after you have changed date format? Could you check if bringing it back to original shows this info correctly?
User avatar
Moderator

GK User
Wed Mar 19, 2014 4:42 pm
Reply with quote
Report this post
I have replaced all files with originals (infact the date within the article is mont, day year) but it doesn't display it in highlights module.... do you know why?
User avatar
Expert Boarder

GK User
Wed Mar 19, 2014 6:02 pm
Reply with quote
Report this post
Files should be intact - as they define how single blog posts and blog roll looks like.
Perhaps you have disabled showing this info in NSP module for homepage?
User avatar
Moderator

GK User
Thu Mar 20, 2014 10:10 am
Reply with quote
Report this post
sorry....I realized that I've hidden the information..... now is ok. I will go on with the changes about the date format within the articles and let you know.
User avatar
Expert Boarder

GK User
Fri Mar 21, 2014 4:15 pm
Reply with quote
Report this post
Great. Please let me know if I you will need my assistance.
User avatar
Moderator

GK User
Mon Mar 24, 2014 4:19 pm
Reply with quote
Report this post
hi cyberek. for this post I'm ok. Maybe you can help me with my others....
User avatar
Expert Boarder

GK User
Mon Mar 24, 2014 6:40 pm
Reply with quote
Report this post
Could you please link to other posts where you have a problem with a solution?
User avatar
Moderator

GK User
Mon Mar 24, 2014 7:06 pm
Reply with quote
Report this post
User avatar
Expert Boarder

GK User
Wed Mar 26, 2014 4:32 pm
Reply with quote
Report this post
Please wait for other moderators to reply to your threads.
Also - don't bump (dont replay) to your own threads - it moves your question to the bottom of moderator's queue.
User avatar
Moderator

GK User
Wed Mar 26, 2014 4:59 pm
Reply with quote
Report this post
thank you. I only bump when my thread won't be answered for days.... I will have more attention on it. thank you again.
User avatar
Expert Boarder

GK User
Wed Mar 26, 2014 8:32 pm
Reply with quote
Report this post
Specially if it is not answered for few days don't bump it. Instead write a PM to a moderator who is answering you.
User avatar
Moderator

GK User
Thu Mar 27, 2014 1:20 pm
Reply with quote
Report this post
i will do it if necessary. thank you again and sorry for my behaviour...
User avatar
Expert Boarder

GK User
Sat Mar 29, 2014 10:20 am
Reply with quote
Report this post
You don't need to sorry - I completely understand that after 2 or 3 days you would like to receive the answer ;). Now you know that bumping makes us answer even longer :).
User avatar
Moderator


cron