Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2020-01-25 10:24:51

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 8,281
Website

minor change suggestion for our main site

textpattern.com/ states:

Well over a decade of development has been lovingly poured into our CMS.

which is technically correct but shouldn’t it change to

Well over 15 years of development has been lovingly poured into our CMS.

Alternatively we could use <txp:fha_time_diff /> or possibly <txp:evaluate /> using this untested construct which is possibly wrong

<txp:evaluate query='<txp:php>echo safe_strftime("%Y");</txp:php> - 2003' />

Yiannis
——————————
neme.org | hblack.net | LABS | State Machines | NeMe @ github | Covid-19; a resource
I do my best editing after I click on the submit button.

Offline

#2 2020-01-25 14:41:38

philwareham
Core designer
From: Haslemere, Surrey, UK
Registered: 2009-06-11
Posts: 3,393
Website

Re: minor change suggestion for our main site

If someone can just verify the code you suggested works, i will amend the site accordingly. Thanks.

Offline

#3 2020-01-25 14:51:15

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 8,281
Website

Re: minor change suggestion for our main site

I just tested it in an article on the production release demo site and an my latest beta and it works just fine returning 17. Note that in a textiled article you might need to use

==<txp:evaluate query='<txp:php>echo safe_strftime("%Y");</txp:php> - 2003' />==

Yiannis
——————————
neme.org | hblack.net | LABS | State Machines | NeMe @ github | Covid-19; a resource
I do my best editing after I click on the submit button.

Offline

#4 2020-01-25 15:12:16

philwareham
Core designer
From: Haslemere, Surrey, UK
Registered: 2009-06-11
Posts: 3,393
Website

Re: minor change suggestion for our main site

Will add this next week then. Cheers!

Offline

#5 2020-01-25 17:24:43

etc
Developer
Registered: 2010-11-11
Posts: 3,934
Website

Re: minor change suggestion for our main site

Probably this will suffice, no need to evaluate:

<txp:php>echo safe_strftime("%Y") - 2003;</txp:php>

Offline

#6 2020-01-27 09:15:32

philwareham
Core designer
From: Haslemere, Surrey, UK
Registered: 2009-06-11
Posts: 3,393
Website

Re: minor change suggestion for our main site

This suggestion is now live on the homepage, thanks!

Offline

#7 2020-01-27 15:02:51

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 8,281
Website

Re: minor change suggestion for our main site

philwareham wrote #321359:

This suggestion is now live on the homepage, thanks!

Very well phrased!


Yiannis
——————————
neme.org | hblack.net | LABS | State Machines | NeMe @ github | Covid-19; a resource
I do my best editing after I click on the submit button.

Offline

Board footer

Powered by FluxBB