Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#16 2010-06-08 20:24:45

Vide-Dressing
Member
Registered: 2010-06-07
Posts: 31

Re: Write screen displays 'Last modified by' when publishing new article

Create a php file

<?php
$localtime = localtime();
$localtime_assoc = localtime(time(), true);
print_r($localtime);
print_r($localtime_assoc);
?>

and upload it. it will tell you the time in your sever.

Offline

#17 2010-06-08 20:29:48

smd_ksu
Member
Registered: 2008-12-23
Posts: 25

Re: Write screen displays 'Last modified by' when publishing new article

Here’s what your code printed out:

Array ( [0] => 41 [1] => 27 [2] => 13 [3] => 8 [4] => 5 [5] => 110 [6] => 2 [7] => 158 [8] => 1 ) Array ( [tm_sec] => 41 [tm_min] => 27 [tm_hour] => 13 [tm_mday] => 8 [tm_mon] => 5 [tm_year] => 110 [tm_wday] => 2 [tm_yday] => 158 [tm_isdst] => 1 )

Offline

#18 2010-06-08 21:33:42

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: Write screen displays 'Last modified by' when publishing new article

I’m not so sure that is what you needed ;) @V-D, will you please stop posting everywhere without reading the threads properly?

smd_ksu, I find this line suspicious:

Some Textpattern files have been modified: /home/smd_ksu/crossfitmanhattankansas.com/textpattern/include/txp_article.php

Do you know why it is modified?

Offline

#19 2010-06-08 21:41:28

smd_ksu
Member
Registered: 2008-12-23
Posts: 25

Re: Write screen displays 'Last modified by' when publishing new article

I swapped the placement of the excerpt and the body so the excerpt appears on top in the write tab. I didn’t edit anything other than the code order.

Offline

#20 2010-06-08 21:44:42

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: Write screen displays 'Last modified by' when publishing new article

I see. I don’t know much about code but if I were you I’d try if replacing this file with the original would change anything… If it doesn’t you can always change it back again.

Offline

#21 2010-06-08 21:51:02

smd_ksu
Member
Registered: 2008-12-23
Posts: 25

Re: Write screen displays 'Last modified by' when publishing new article

No luck. Last modified date is still 16 minutes before the post date.

Offline

#22 2010-06-08 22:49:52

smd_ksu
Member
Registered: 2008-12-23
Posts: 25

Re: Write screen displays 'Last modified by' when publishing new article

Here’s more detail on this strange behavior:

When creating a new article this appears:
Posted by: shawn · 08 Jun 2010 · 05:40:48 PM
Last modified by: · 08 Jun 2010 · 05:24:21 PM

If I hit save again then the user gets added to Last modified
Posted by: shawn · 08 Jun 2010 · 05:40:55 PM
Last modified by: shawn · 08 Jun 2010 · 05:24:28 PM

If I change status to draft or pending, hit save twice, the Last modified date becomes the Post date, and the Last modified date disappears:
Posted by: shawn · 08 Jun 2010 · 05:24:45 PM

If I then change it back to Live, Sticky, or Hidden, the Post date and Last modified date both match, but both are 16 minutes behind the actual time:
Posted by: shawn · 08 Jun 2010 · 05:25:03 PM
Last modified by: shawn · 08 Jun 2010 · 05:25:03 PM

Offline

Board footer

Powered by FluxBB