Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2005-01-25 17:17:41

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

Re: [plugin] [ORPHAN] zem_posted

Hi,

I just came across this plugin (I’m very new to TXP) and I installed it and tryed the different configurations.

I get my correct time zone (Portugal/Lisbon) but something weird happens. The date isn’t saved in the database. Everytime I refresh a page, the date changes to the current date. Is that normal? It should be showing me the date on which the article was posted, right?

- Frederico

Offline

#14 2005-01-26 00:16:06

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

Re: [plugin] [ORPHAN] zem_posted

Phred,

Where are you placing the zem_posted tag (page template, article form)? Can you post a copy of the tag you’re using?

Use < code > < /code > so the tag shows up in the forums.


Alex

Offline

#15 2005-01-26 01:39:14

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

Re: [plugin] [ORPHAN] zem_posted

zem,

I’m placing it inside the article form, just before I start typing my text. This is the tag I’m using:

<code>
<txp:zem_posted tz=“GMT+0:00” format=”%d.%m.%y @ %H:%M” />
</code>

I went through the PHP website as suggested on your documentation. It shows up all nice and dandy on the webpage but always the current date and not the date it was posted. :S

Hope you have some clues for me.

Thanks.

Offline

#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