By Eric Chang on Monday, 02 January 2017
Posted in General
Likes 0
Views 188
Votes 0
Hi
I just backed to the new version. in the current version, How can I change the "Posted by Author" to "Posted on Date".
Thanks for your help and support.

Eric
Hello Eric,

Did you mean you upgraded to the latest version of EasyBlog? These can be translated by modifying the language file in /language/en-GB/en-GB.com_easyblog.ini at line 992,

[gist]
COM_EASYBLOG_POSTED_BY_AUTHOR="Posted by <a href="_QQ_"%1s"_QQ_">%2s</a>"
[/gist]
·
Monday, 02 January 2017 21:39
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mark,
Thanks. But what I meant is I don't need the "author" here, I want to put the "published date" here, but the Timeless theme does not show the full date or Year here.

Thanks for your help.

Best Regards,

Eric
·
Monday, 02 January 2017 22:14
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Eric,

You could replace the codes below in the file /components/com_easyblog/themes/timeless/blogs/latest/default.main.php

[gist]
<?php if ($this->params->get('post_author', true)) { ?>
<span class="eb-post-author" itemprop="author" itemscope="" itemtype="http://schema.org/Person">
<span itemprop="name">
<?php echo JText::sprintf('COM_EASYBLOG_POSTED_BY_AUTHOR', $post->author->getProfileLink(), $post->author->getName()); ?>
</span>
</span>
<?php } ?>
[/gist]

With,

[gist]
<span>
Posted on <?php echo $post->getDisplayDate($this->params->get('post_date_source', 'created'))->format(JText::_('DATE_FORMAT_LC1')); ?>
</span>
[/gist]
·
Monday, 02 January 2017 22:56
·
0 Likes
·
0 Votes
·
0 Comments
·
Mark,

It works! Many thanks for the great support.

Best Regards,

Eric
·
Tuesday, 03 January 2017 06:58
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

You are most welcome. Glad to hear that your issue has been resolved now.

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.
·
Tuesday, 03 January 2017 09:48
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post