Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#16 2005-01-26 22:23:56

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: [plugin] [ORPHAN] zem_posted

Phred,

The article date isn’t available to plugins at the point where the article body is parsed. <txp:posted /> doesn’t work in an article body either, for the same reason.


Alex

Offline

#17 2005-01-27 10:23:24

phred
New Member
Registered: 2005-01-25
Posts: 3

Re: [plugin] [ORPHAN] zem_posted

zem,

thanks for the reply. ok, I understand that, but I’m totally clueless on where to put it… maybe in the default form?

thanks

//edit: ok, I figured it out :-)

Last edited by phred (2005-01-27 10:26:45)

Offline

#18 2005-01-29 00:42:28

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

Re: [plugin] [ORPHAN] 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

Last edited by Etz Haim (2005-01-29 17:07:06)

Offline

#19 2005-01-29 09:15:23

andreas
Member
Registered: 2004-02-28
Posts: 453
Website

Re: [plugin] [ORPHAN] zem_posted

phred, would you perhaps tell us how you got it to work?

Offline

#20 2005-01-29 22:48:57

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: [plugin] [ORPHAN] zem_posted

Etz Haim,

Try adding this line to the plugin code, somewhere before the strftime function:

setlocale(LC_TIME, 'EL');

‘EL’ might not be the correct form of locale string for your system. There are some listed here, here and here.


Alex

Offline

Board footer

Powered by FluxBB