Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-05-18 20:42:24

hablablow
Member
From: Paris
Registered: 2004-12-13
Posts: 309
Website

tcm_lastupdate in Rc3

Hi users,

tcm_lastupdate doesn’ seem to work in Rc3

Last update: %+0200e. %920 %2005, %23:%May

is the best i can get from it. The only date format working here for me is hours/days ago.

Am i missing something obvious ? Any information about this is welcomed.


_
_I plant seeds for future visions. Farmer of your eyes. Subliminal engineer of your minds. eion founder__

Hablablow + Webdesignofficina

Offline

#2 2005-05-19 01:34:41

marz
Archived Plugin Author
From: Barbados
Registered: 2004-11-13
Posts: 43
Website

Re: tcm_lastupdate in Rc3

you could try using ob1_modified

Offline

#3 2005-05-21 01:28:20

obeewan
Archived Plugin Author
From: Stockholm, Sweden
Registered: 2004-08-12
Posts: 319
Website

Re: tcm_lastupdate in Rc3

The new 0.5 release of ob1-modified works with RC3.


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

#4 2005-05-23 13:30:36

hablablow
Member
From: Paris
Registered: 2004-12-13
Posts: 309
Website

Re: tcm_lastupdate in Rc3

Thanks guys for your answer, but i would like a plugin that returns the date of the last site modification, whatever article you make changes into, not only for one article, but for the whole site.


_
_I plant seeds for future visions. Farmer of your eyes. Subliminal engineer of your minds. eion founder__

Hablablow + Webdesignofficina

Offline

#5 2005-05-23 16:06:31

marz
Archived Plugin Author
From: Barbados
Registered: 2004-11-13
Posts: 43
Website

Re: tcm_lastupdate in Rc3

well, you could try using the recent articles tag, set it to list one article only, and use a form that only has <txp:posted />… but thats just an idea, maybe theres another plugin out there somewhere

Last edited by marz (2005-05-23 16:06:53)

Offline

#6 2005-05-23 16:15:04

hablablow
Member
From: Paris
Registered: 2004-12-13
Posts: 309
Website

Re: tcm_lastupdate in Rc3

recent articles tag: such as ?
Your idea may do the trick if you could be a bit more precise on this point.

Last edited by hablablow (2005-05-23 16:16:10)


_
_I plant seeds for future visions. Farmer of your eyes. Subliminal engineer of your minds. eion founder__

Hablablow + Webdesignofficina

Offline

#7 2005-05-24 22:17:43

marz
Archived Plugin Author
From: Barbados
Registered: 2004-11-13
Posts: 43
Website

Re: tcm_lastupdate in Rc3

I was thinking something like this
<pre>
<h3>Last Site Update:</h3>
<txp:article_custom limit=“1” sortby=“Posted” sortdir=“desc” form=“post_date” />
</pre>

where the post_date form would only be

<pre>
<txp:posted />
</pre>

..I figure this should work, I haven’t actually tried it

Last edited by marz (2005-05-24 22:22:42)

Offline

#8 2005-05-26 14:24:28

marz
Archived Plugin Author
From: Barbados
Registered: 2004-11-13
Posts: 43
Website

Re: tcm_lastupdate in Rc3

I was snooping through the TXP global variables in an attempt to make a plugin and I found variable that outputs the last modified date of the site..so to output it , you simply put:
<pre>
<?php echo $GLOBALS[‘prefs’][‘lastmod’]; ?>
</pre>

wherever you wanted to show it ;) . Hope this helps!

Offline

#9 2005-05-26 14:33:34

hablablow
Member
From: Paris
Registered: 2004-12-13
Posts: 309
Website

Re: tcm_lastupdate in Rc3

Hey hey that’s really cool !
Excellent… I put it where i want ? In a form, in a page… just copy and paste right ?
If this is correct it is good to be known…spread it over the forums, there might be a few other people interested…
Thanks a lot Marz for your answer…I’ll give it a try and i’ll let you know…

Last edited by hablablow (2005-05-26 14:35:48)


_
_I plant seeds for future visions. Farmer of your eyes. Subliminal engineer of your minds. eion founder__

Hablablow + Webdesignofficina

Offline

#10 2005-05-26 14:35:03

marz
Archived Plugin Author
From: Barbados
Registered: 2004-11-13
Posts: 43
Website

Re: tcm_lastupdate in Rc3

yep, anywhere you want ;)

I just noticed you were from Paris..you should be at the Roland Garros!!

Last edited by marz (2005-05-26 14:35:59)

Offline

#11 2005-05-26 14:36:11

hablablow
Member
From: Paris
Registered: 2004-12-13
Posts: 309
Website

Re: tcm_lastupdate in Rc3

If this is correct it is good to be known…spread it over the forums, there might be a few other people interested…


_
_I plant seeds for future visions. Farmer of your eyes. Subliminal engineer of your minds. eion founder__

Hablablow + Webdesignofficina

Offline

#12 2005-05-26 14:38:08

hablablow
Member
From: Paris
Registered: 2004-12-13
Posts: 309
Website

Re: tcm_lastupdate in Rc3

Hold on i’ll give a try…
Brb…


_
_I plant seeds for future visions. Farmer of your eyes. Subliminal engineer of your minds. eion founder__

Hablablow + Webdesignofficina

Offline

Board footer

Powered by FluxBB