Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#11 2020-10-24 10:41:24

zero
Member
From: Lancashire
Registered: 2004-04-19
Posts: 1,391
Website

Re: Get last time that site was modified, or latest server time

etc wrote #326539:

There is blog_time_uid pref that might fit here, but it is preset to 2005 and never modified afaik.

I’m off for a week, so can not investigate.

Have a well-deserved relaxing enjoyable covid-free break, Oleg. Thanks!


Wondrous Healing Wondrous ways to a healthy old age
Safe Reiki Harmless natural healing.
Gud One Blog

Offline

#12 2020-10-24 14:24:11

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

Re: Get last time that site was modified, or latest server time

In reality copyright should be on a per article basis, not site-wide. So if a site started in 2015, the first article could have a 2015-20 copyright but if an article was posted in 2019, that should be reflected in the copyright too. Check how I’m dealing with it in the NeMe site, at the bottom of the page, in the grey band.

Here’s the code at github.


Yiannis
——————————
neme.org | hblack.net | State Machines | NeMe @ github
I do my best editing after I click on the submit button.

Offline

#13 2020-10-24 14:45:47

zero
Member
From: Lancashire
Registered: 2004-04-19
Posts: 1,391
Website

Re: Get last time that site was modified, or latest server time

colak wrote #326541:

In reality copyright should be on a per article basis, not site-wide. So if a site started in 2015, the first article could have a 2015-20 copyright but if an article was posted in 2019, that should be reflected in the copyright too. Check how I’m dealing it in the NeMe site, at the bottom of the page, in the grey band.

I like how you’ve made NeMe into a link. That makes it obvious your website should be contacted regarding any copyright questions.

In the UK, every original work is automatically copyrighted and has the same protection whether the copyright is declared or undeclared.

It is strongly recommended, however, to include copyright to deter copyright infringement. With copyright notices being so common in the footers of websites, anyone who infringes cannot then plead ignorance if it goes to court.


Wondrous Healing Wondrous ways to a healthy old age
Safe Reiki Harmless natural healing.
Gud One Blog

Offline

#14 2020-10-24 15:45:42

Pat64
Plugin Author
From: France
Registered: 2005-12-12
Posts: 1,428
Website

Re: Get last time that site was modified, or latest server time

What about this, guys ?

@<!-- 4.8.4+ -->@
<small>Copyright &copy;&thinsp;<txp:variable name="year" trim>
<txp:article_custom fields="max(posted)">
<txp:posted format="%Y" />
</txp:article_custom>
</txp:variable>
<txp:article_custom fields="min(posted)">
<txp:evaluate query='<txp:posted format="%Y" /> = <txp:variable name="year" />'><txp:posted format="%Y" /><txp:else /><txp:posted format="%Y" />&ndash;<txp:variable name="year" /></txp:evaluate>
</txp:article_custom> <txp:site_name />, all rights reserved.</small>

Last edited by Pat64 (2020-10-24 15:47:36)


Patrick.

Github | CodePen | Codier | Simplr theme | Wait Me: a maintenance theme | [\a mi.ni.ma]: a “Low Tech” simple Blog theme.

Offline

#15 2020-10-25 10:15:48

gaekwad
Admin
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 3,239

Re: Get last time that site was modified, or latest server time

etc wrote #326539:

There is blog_time_uid pref that might fit here, but it is preset to 2005 and never modified afaik.

See also forum.textpattern.com/viewtopic.php?id=50745

Offline

Board footer

Powered by FluxBB