By Rowan Hoskyns Abrahall on Wednesday, 13 August 2014
Replies 5
Likes 0
Views 1.2K
Votes 0
Hi,

I am using a modified version of origami here - http://www.spaceist.co.uk/blog

The created date shows fine on the frontpage but when you go into a post it shows todays date.

Here's the code from the template override I've included the author call to show you the whole div


<div style="float:right; padding-right:20px;">
<?php if( $this->getParam( 'show_created_date' ) ){ ?>
<!-- Creation date -->
<span class="blog-created">
<time datetime="<?php echo $this->formatDate( '%Y-%m-%d' , $row->{$this->getParam( 'creation_source')} ); ?>">
<span style="text-transform:uppercase"><?php echo $this->formatDate( $system->config->get('layout_dateformat') , $row->{$this->getParam( 'creation_source')} ); ?></span>
</time>
</span>
<?php } ?>
<?php if( $this->getParam( 'show_author') ){ ?>

<span class="blog-author" style="text-transform:uppercase;text-align:right;">

\ <?php echo JText::_( 'COM_EASYBLOG_BY' );?> <a href="<?php echo $blog->blogger->getProfileLink(); ?>" itemprop="author"><?php echo $blog->blogger->getName(); ?></a>

</span>

<?php } ?>

</div>


Can't figure out what I've done wrong.

Thanks

Rowan
Hello Rowan,

Can you try use this code in your site and see if this resolve your issue.

<time datetime="<?php echo $this->formatDate( '%Y-%m-%d' , $row->modified ); ?>">
<span><?php echo $this->formatDate( $system->config->get('layout_dateformat') , $row->modified ); ?></span>
</time>

If this issue is still persist, perhaps you can provide us with backend access and ftp access so that we can help you fix this issue. Actually we need this access in order to debug it much quicker since you have done customization to the theme file.

Please be advise.
Thanks.
·
Wednesday, 13 August 2014 18:54
·
0 Likes
·
0 Votes
·
0 Comments
·
No it still reverts to today's date.

Have provided site info.
·
Wednesday, 13 August 2014 19:15
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Rowan,

I cannot access the back end of your site with the provided login credentials and the site is now blocking us from accessing the site


We have detected some unusual behavior and have blocked access to the site because of this. If you feel this is in error please email us.
·
Wednesday, 13 August 2014 23:25
·
0 Likes
·
0 Votes
·
0 Comments
·
So sorry Mark, just realised I had another keepass file open, gave you old admin password. FTP should be fine

Corrected
·
Thursday, 14 August 2014 18:53
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks Rowan, I have fixed the template file on your site and it should work fine now
·
Thursday, 14 August 2014 19:26
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post