Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2004-07-20 03:11:17

tmacwrig
Archived Plugin Author
Registered: 2004-03-06
Posts: 204
Website

[plugin] [ORPHAN] tcm_fundate: custom date formatting

tcm_fundate is a drop-in replacement for txp:posted. It allows you to use basically any date format that you would like – using php’s date function. Although it uses php’s date syntax (reference table included in plugin help), it will automatically fix a few potential problems: the words “of, the, clock, minutes, seconds, and hours” will be automatically escaped. It’ll also catch other escaped characters (\n and \r) from being lost.

You can also check out a demo on one of my sites.

Offline

#2 2004-08-12 23:16:54

Jeremie
Member
From: Provence, France
Registered: 2004-08-11
Posts: 1,578
Website

Re: [plugin] [ORPHAN] tcm_fundate: custom date formatting

Can we use it to translate date into non english language ?

Offline

#3 2004-08-12 23:54:50

tmacwrig
Archived Plugin Author
Registered: 2004-03-06
Posts: 204
Website

Re: [plugin] [ORPHAN] tcm_fundate: custom date formatting

uh.. not yet. maybe i’ll get to that later tonight. if you want to hack something together yourself, you might want to check out setlocale and strftime

Offline

#4 2004-08-13 03:58:54

Jeremie
Member
From: Provence, France
Registered: 2004-08-11
Posts: 1,578
Website

Re: [plugin] [ORPHAN] tcm_fundate: custom date formatting

No need to work too hard on that, Dean has started to write localized datetime tools, it’s just not implemented yet.

I simply wanted to know if that was possible right away with your plugin :)

Offline

#5 2004-10-27 14:02:14

apo
Member
From: Germany
Registered: 2004-10-27
Posts: 53

Re: [plugin] [ORPHAN] tcm_fundate: custom date formatting

thx for this great simple plugin… i’m using it ‘til a localization of the normal postdate is implemented :-)

Offline

#6 2004-10-28 19:50:49

osei
Plugin Author
From: Stockholm, Sweden
Registered: 2004-07-01
Posts: 178
Website

Re: [plugin] [ORPHAN] tcm_fundate: custom date formatting

Is there a similar plugin for the comments date?


Johan Nilsson

Offline

#7 2004-11-04 22:56:10

Downleader
New Member
From: Netherlands
Registered: 2004-11-02
Posts: 2

Re: [plugin] [ORPHAN] tcm_fundate: custom date formatting

I tried to install it, oke that works. But when I insert the tag, for example: < txp:tcm_fundate format=”%d-%m-%Y” / > or < txp:tcm_fundate format=“d-m-Y” / > (ignore the spaces between <>), no date is shown. How can I solve this? Both don’t work?

Last edited by Downleader (2004-11-05 08:24:48)


===
Get firefox!

Offline

#8 2004-11-04 23:01:34

tmacwrig
Archived Plugin Author
Registered: 2004-03-06
Posts: 204
Website

Re: [plugin] [ORPHAN] tcm_fundate: custom date formatting

where are you putting the tag?

Offline

#9 2004-11-05 08:25:03

Downleader
New Member
From: Netherlands
Registered: 2004-11-02
Posts: 2

Re: [plugin] [ORPHAN] tcm_fundate: custom date formatting

in the form for an article


===
Get firefox!

Offline

#10 2004-11-05 14:27:51

tmacwrig
Archived Plugin Author
Registered: 2004-03-06
Posts: 204
Website

Re: [plugin] [ORPHAN] tcm_fundate: custom date formatting

is it activated in the plugin list?

Offline

#11 2005-01-29 17:07:47

Etz Haim
Archived Plugin Author
From: Karlstad, Sweden
Registered: 2005-01-24
Posts: 262
Website

Re: [plugin] [ORPHAN] tcm_fundate: custom date formatting

Same request made for zem_posted: Can you add something to enable specifying lang=“el” that would point to /textpattern/lang/el_dates.txt ? Also, can you make it work for comments? Thanks.

Offline

Board footer

Powered by FluxBB