By Fidel Carrera on Thursday, 12 January 2017
Posted in Technical Issues
Likes 0
Views 602
Votes 0
Hello,

A while ago you were able to help me fix the timestamps in my easydiscuss posts but it no longer works since the latest update as the formats have changed.

I need to be able to see the format('d F Y h:i:s A') for all my easy discuss created posts and replies. Can you help point me in the right direction?

Also, is it possible to do this for ES content as well?


Thanks.
Hi Fidel,

For timestamps of post you can setting it at backend by:
1. Click Settings>Layout>General>Localization>Date Format

and for replies timestamps the file to edit is still the same:
JoomlaFolder/components/com_easydiscuss/themes/wireframe/post/default.reply.item.php
change the code:

<?php echo $post->getDuration(); ?>

to:

<?php echo ED::date($post->created)->format('d F Y h:i:s A'); ?>

*You can do template override for this file, so as you update EasyDiscuss it will not get overrided
·
Thursday, 12 January 2017 12:51
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

Thank you for the update. What I am looking for with regard to posts is to be able to show the full date and time format in the provided screenshot.

Thanks.
·
Thursday, 12 January 2017 18:21
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Fidel,

Perhaps can you try download the attached file and replace it in the file:
JoomlaFolder/components/com_easydiscuss/themes/wireframe/forums/item.php
and see how it goes?

You're suggested to backup the file that you want to replace beforehand for precaution
*This also can be done by doing template override
·
Thursday, 12 January 2017 18:49
·
0 Likes
·
0 Votes
·
0 Comments
·
Brilliant, thanks a million!

Is this the proper structure for the overrides in my template?
·
Friday, 13 January 2017 16:23
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Fidel,

There is some mistake there
for item.php use this directory:
/home/admin/vghl.myvirtualgaming.com/templates/rt_corvus/html/com_easydiscuss/forums/item.php

for default.reply.item.php
/home/admin/vghl.myvirtualgaming.com/templates/rt_corvus/html/com_easydiscuss/post/default.reply.item.php
please give it a try.

Any template overrides should be using the folder after the theme's name (wireframes)
·
Friday, 13 January 2017 16:31
·
0 Likes
·
0 Votes
·
0 Comments
·
Sweet, thanks!
·
Friday, 13 January 2017 17:26
·
0 Likes
·
0 Votes
·
0 Comments
·
You are most welcome Fidel

As a gentle reminder, kindly start a new thread if you have any other issue in the future so it will be easier for us to manage your inquiry. I will lock and mark this thread as resolved.

Have a nice day ahead
·
Friday, 13 January 2017 17:46
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post