By Christian Hostettler on Wednesday, 15 May 2019
Posted in Technical Issues
Likes 0
Views 599
Votes 0
Hello StackIdeas
the ED Recent Discussions module has no option to display the date of the last replica. How can we modify the following snippent so that the module displays the time of the last replica or the time since the last replica?
Thank you
Christian

<!-- Last Replier & Replie Date -->
<?php if ($post->getLastReplier()) { ?>
<?php echo JText::_('COM_EASYDISCUSS_FORUMS_LAST_REPLY'); ?>:
<?php echo $post->getLastReplier()->getName($post->poster_name);?> ((Date last Replie like "between 5 Minutes"))
<?php } else { ?>
<?php echo JText::_('COM_EASYDISCUSS_FORUMS_NO_REPLIES'); ?>
<?php } ?>
Hey there,

You can add the following PHP code into it:

ED::date()->toLapsed($post->created)
·
Wednesday, 15 May 2019 16:10
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Irwin
We try this, but it not works:
On the page https://dev05.schwe278.myhostpoint.ch/de/forum after "###" on row 105, the date was not displayed.
/templates/yootheme/html/mod_easydiscuss_recentdiscussions/default.php
Best regards
Christian
·
Wednesday, 15 May 2019 16:23
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey there,

Make sure that you had echo it.


<?php echo ED::date()->toLapsed($post->created); ?>


On the page https://dev05.schwe278.myhostpoint.ch/de/forum after "###" on row 105, the date was not displayed.


Not sure what do you mean here. Maybe you can share which page has this module as I don't see any module in this page.
·
Wednesday, 15 May 2019 16:34
·
0 Likes
·
0 Votes
·
0 Comments
·
Oh, pardon, too many night shifts or too little coffee, or both;) Thank you for your indulgence.
Best regards
Christian
·
Thursday, 16 May 2019 15:31
·
0 Likes
·
0 Votes
·
0 Comments
·
Oh, pardon, too many night shifts or too few coffee, or both;) Thank you for your indulgence.
Best regards
Christian
·
Thursday, 16 May 2019 15:32
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

You are most welcome.

Just for your information, I have locked and marked this thread as resolved to avoid confusions in the future. Please start a new thread if you have any other issue in the future so it will be easier for us to manage your inquiries.

Thanks for understanding.
·
Thursday, 16 May 2019 16:36
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post