Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#16 2005-05-23 15:39:45
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: [archived] ob1_modified
Its because its still using the old date format. Textpattern changed how it makes date/times in RC3.
Offline
#17 2005-05-23 15:49:54
- els
- Moderator

- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: [archived] ob1_modified
> mary wrote:
> Its because its still using the old date format. Textpattern changed how it makes date/times in RC3.
So is it something I have to change in my tag, or is it the plugin code?
Offline
Re: [archived] ob1_modified
mary,
Actually version 0.5 uses the correct date and not the “old way” that worked pre RC3. However, if you want another dateformat then set in the preferences you can write your own format using the standard PHP date format as noted in the documentation for the plugin and since this is an optional parameter I currently don’t see the point of altering this to some other format. Sure, it is not localized as the date is now in TXP in general, but …
doggiez,
Now I’ve tried my plugin on my dev server back and forth with different types of dates and using the pre-set one for the archive date format and it works like a charm for me. Which makes your problem even more puzzling.
- On the article at hand, does the admin interface write out correct modified dates?
- What happens if you use
author="1"? Does it output the correct author name here?
Plugins: ob1_advanced_search 1.032b, ob1_search_score 1.0, ob1_pagination 2.5, ob1_title 4.1, ob1_modified 2.1
“Let your plans be dark and as impenetratable as night, and when you move, fall like a thunderbolt.”
— Sun Tzu
Offline
#19 2005-05-24 14:26:07
- els
- Moderator

- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: [archived] ob1_modified
<code><txp:ob1_modified author=“1” /></code> doesn’t output anything, so I tried <code><txp:ob1_modified format=“author” /></code>, as said in the plugin help.
I now have this:
<code><txp:ob1_modified format=“j-n-Y H:i” /> by <txp:ob1_modified format=“author” /></code>
Output:
24-5-2005 00:00 by amu3112oTue, 24 May 2005 00:00:00 +0200
So always today’s date (well of course I modified it again today) and 00:00. It’s here.
On another site, another host, the date outputs the correct date last modified, but author gives me this:
pmu3104oTue, 24 May 2005 16:10:11 +0200
On both sites, author should be ‘Els’.
I’ll ask the host of the first site about the date and time problem, it’s clearly not the plugin. And I wasn’t going to use author, so no problem for me, but that does seem to be a plugin code thing.
The admin interface shows the correct date formats.
EDIT: does it matter that I put the tag in an article? Should it rather be in an article form?
EDIT again: putting it in a form at least gives me the same time as in the write tab instead of 00:00 …
Last edited by doggiez (2005-05-24 15:03:12)
Offline
Re: [archived] ob1_modified
doggiez,
In an article form it works. In an article it does not.
everyone else,
And I get the same with author, I am investigating that problem right now.
Plugins: ob1_advanced_search 1.032b, ob1_search_score 1.0, ob1_pagination 2.5, ob1_title 4.1, ob1_modified 2.1
“Let your plans be dark and as impenetratable as night, and when you move, fall like a thunderbolt.”
— Sun Tzu
Offline
#21 2005-05-24 21:25:25
- els
- Moderator

- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: [archived] ob1_modified
> obeewan wrote:
> In an article form it works. In an article it does not.
Then that was my problem. Thank you!
Offline
Re: [archived] ob1_modified
doggiez,
Just happy we cleared the problem. And it was intended to be an article form tag. I might want to specify that in the help text.
Plugins: ob1_advanced_search 1.032b, ob1_search_score 1.0, ob1_pagination 2.5, ob1_title 4.1, ob1_modified 2.1
“Let your plans be dark and as impenetratable as night, and when you move, fall like a thunderbolt.”
— Sun Tzu
Offline
#23 2005-05-24 23:10:58
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: [archived] ob1_modified
“Actually…”
:D I’ll shut-up now… maybe…
Offline
Re: [archived] ob1_modified
No worries mary. And if I sounded too uptight on that remark gimme a slap ;)
Plugins: ob1_advanced_search 1.032b, ob1_search_score 1.0, ob1_pagination 2.5, ob1_title 4.1, ob1_modified 2.1
“Let your plans be dark and as impenetratable as night, and when you move, fall like a thunderbolt.”
— Sun Tzu
Offline
#25 2005-05-24 23:58:26
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: [archived] ob1_modified
“..if I sounded too uptight..”
Nope, you didn’t. :) My brain just went like: “Well… that shut me up.” ;P
Offline
Re: [archived] ob1_modified
I haven’t found the bug yet with author and now I got a week of from work and I am moving. Investigation will continue later on.
Plugins: ob1_advanced_search 1.032b, ob1_search_score 1.0, ob1_pagination 2.5, ob1_title 4.1, ob1_modified 2.1
“Let your plans be dark and as impenetratable as night, and when you move, fall like a thunderbolt.”
— Sun Tzu
Offline
Re: [archived] ob1_modified
doogiez,
I’ve found the problem. My documentation said one thing and the plugin wanted another. Now with version 0.51 you do as intended with author, namely format="author" and voila it works. What I had forgotten was that earlier it was used with author="1" and I’ve hadn’t changed the code (since I personally don’t need to use the author attribute).
Hope this clears your (and maybe others) problem.
Plugins: ob1_advanced_search 1.032b, ob1_search_score 1.0, ob1_pagination 2.5, ob1_title 4.1, ob1_modified 2.1
“Let your plans be dark and as impenetratable as night, and when you move, fall like a thunderbolt.”
— Sun Tzu
Offline
#28 2005-06-02 14:22:33
- els
- Moderator

- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: [archived] ob1_modified
Thanks, obeewan!
Offline
#29 2005-10-11 04:06:52
- datumax
- Member
- Registered: 2005-01-12
- Posts: 16
Re: [archived] ob1_modified
This plugin fits me perfect! But . . .
I can’t get my the time to show up, only the date. Here’s my tag:
txp:ob1_modified format=“M.d:y @ h:i” starttext=“Last modified “ /.
Last edited by datumax (2005-10-11 04:07:15)
Offline