Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#16 2006-05-20 00:48:12

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: [howto] copyright

You can’t simply use $prefs['lastmod'] without checking if comments count towards site update. (Mary, please correct me if I’m wrong about this bit)

You’ve got that right: if you have “New comment means site updated?” set to “yes”, then that affects $prefs['lastmod'].

If you really want to keep the above setting, then what you can do is a simple SQL query to find out the last modified date of the most recently modified article (off the top of my head):

$last_mod = safe_field('unix_timestamp(`LastMod`)', 'textpattern', 'Status = 4 and `Posted` < now() order by `LastMod` desc limit 0, 1');

:)

Offline

#17 2006-05-20 01:01:12

net-carver
Archived Plugin Author
Registered: 2006-03-08
Posts: 1,648

Re: [howto] copyright

Thanks for that Mary,

that is basically what sed_copyright does already for the “comments count as site updates” option. However, your SQL has a few extras I missed. I will work those into the next version. :O)

Last edited by net-carver (2006-05-20 01:05:02)


Steve

Offline

#18 2006-05-20 06:02:57

net-carver
Archived Plugin Author
Registered: 2006-03-08
Posts: 1,648

Re: [howto] copyright

Mary,

I think the status should be >= 4 to catch sticky articles (status 5) too.


Steve

Offline

#19 2006-05-20 15:38:35

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,388
Website GitHub Mastodon Twitter

Re: [howto] copyright

net-carver wrote:

It kind of reminds me of the separation of content from presentation in web design, xhtml for content and the css for the presentation.

I guess you raised a very good (new) point here. In sites where there are many authors the copyright notice can be a bit misleading. A more correct way would be copyright of the text belongs to the author, copyright of the design belongs to the designer copyright of the cms belongs to the developers copyright of the plug-ins which sometimes generate part(s) of the page to the plugin authors etc. Not to mention about the css/xhtml hacks and the people behind them through the web community.

> Edited for textile formatting

Last edited by colak (2009-04-08 07:44:13)


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#20 2006-05-20 22:05:14

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: [howto] copyright

Steve: I assumed you wouldn’t want sticky articles to count, but yes.

Offline

#21 2006-05-21 06:52:02

net-carver
Archived Plugin Author
Registered: 2006-03-08
Posts: 1,648

Re: [howto] copyright

colak,

yeah, I wasn’t actually thinking of that when I posted my thoughts on your article but your are right, a site that has multiple contributors may need a more complex copyright notice. I have seen some sites that do have notices that separate the design and layout from the article content—unfortunately cannot recall where right now.

In #15 above I was just using the html/css separation as an analogy for a possible separation of copyrighted content from its method of presentation.

In other words, you publish your work electronically in some neutral format and retain all copyright to that. Someone buys a copy and then it’s up to them how they present that work to themselves — if they are a blind Braille user they just put it through a Braille presentation unit — or they have it read to them through an audio presentation unit. A sighted user could print it out or read it on screen — the point being it’s up to them. Presentation of the work (to themselves) would not be a breach of copyright which would exist on the underlying, presentation neutral, format.

The method of presentation would be totally freed from the copyright. The original author would retain copyright on the underlying work. People would not be free to copy it/re-distribute the underlying work or any presentation made from it, but still free to present it using whatever method is best for them for personal consumption.

I tried to use the HTML (content) and CSS (presentation) to make my point but don’t think I did it very well. Probably am still messing it up!? :O) Just dreaming.

Mary,

hmm, on my site the very first article I posted was a sticky so that defines the start year for me. I guess it will depend upon the site and how the owner or owners use it.

<thinking out loud> Perhaps I should put a switch into my plugin to allow the users to specify how to handle sticky articles. </thinking out loud>

Last edited by net-carver (2006-05-21 06:54:26)


Steve

Offline

#22 2006-06-06 10:32:42

net-carver
Archived Plugin Author
Registered: 2006-03-08
Posts: 1,648

Re: [howto] copyright

Finally got around to adding per-article copyright attribution into my plugin. (Thanks for the ideas colak)

You can find it here


Steve

Offline

#23 2006-07-31 17:05:52

Esteban_Panzera
New Member
Registered: 2006-07-31
Posts: 4

Re: [howto] copyright

What does that code print?

Offline

#24 2006-07-31 18:20:10

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,388
Website GitHub Mastodon Twitter

Re: [howto] copyright

Steve’s plugin prints the copyright notice and it has numerous options. I’d highly recommend it


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#25 2006-07-31 18:38:36

Ray
Member
Registered: 2004-03-02
Posts: 159

Re: [howto] copyright

colak, nice little “time saving” snippet of code. Thanks for posting… good idea ; )

Offline

#26 2006-08-01 02:35:07

net-carver
Archived Plugin Author
Registered: 2006-03-08
Posts: 1,648

Re: [howto] copyright

Esteban_Panzera wrote:

What does that code print?

Hello Esteban,

I don’t know which snippet of code you are referring to but if you look at my post for the copyright plugin it gives a little more detail.

Basically it can…

  1. output a copyright message for use in the header section of a page.
  2. output the effective copyright dates of either a site or an article on a site.
  3. output a copyright message for a site or an article on a site.
  4. optionally make the copyright owner a hyperlink.

The actual string displayed by the plugin for the copyright message and copyright owner is configurable, as is the date section that it outputs – start only, end only, start-end and even the order in which these things are displayed.

The dates are taken from the article timestamps so you don’t need to worry about updating your copyright messages at the end of the year, it’s all driven by the data.

Hope that helps.


Steve

Offline

Board footer

Powered by FluxBB