NP_ItemLicense.php

This plugin allows you to apply a license of your choice to selected blogs on an item-by-item basis.

It is for use in those circumstances where you don't want to display a site-wide license - perhaps because certain content is not yours to license, or because it is reproduced with permission and is subject to copyright constraints.

General Plugin info
Author: Graeme Cook (father4justice) www.blog-4-justice.org
Current Version: 0.10
Download: n/a
Code: NP_ItemLicense_code
Demo: The plugin is in current use at: http://www.blog-4-justice.org/blog.php
Forum Thread:

Installing

  • Copy and paste the code to a new text file, and save as NP_ItemLicense.php to your /nucleus/plugins directory.
  • Install the plugin through the Nucleus plugin admin interface.

How to use the plugin

  • Set the plugin options (which should be self-explanatory).
  • When you add or edit a blog item, you will see an additional option: 'License'. The default value for this can be altered in the plugin options.
  • To display the license which you defined in the plugin options, insert the variable <%ItemLicense%> into your templates.
  • <%ItemLicense(print)%> displays the print-specific version of the license defined in the corresponding plugin option (if you have set it).

Example scenario

It is common practice for authors to publish their material under one of the Creative Commons licenses.

Creative Commons (CC) provides authors with ready-made code to insert into their web pages to display their chosen license. This code, for example, displays a Creative Commons Attribution-NonCommercial-NoDerivs 2.5 License:

<!--Creative Commons License--><a rel="license" href="http://creativecommons.org/licenses/by-nc-nd/2.5/"><img alt="Creative Commons License" border="0" src="http://creativecommons.org/images/public/somerights20.png"/></a><br/>This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nc-nd/2.5/">Creative Commons Attribution-NonCommercial-NoDerivs 2.5 License</a>.<!--/Creative Commons License--><!-- <rdf:RDF xmlns="http://web.resource.org/cc/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
	<Work rdf:about="">
		<license rdf:resource="http://creativecommons.org/licenses/by-nc-nd/2.5/" />
	<dc:type rdf:resource="http://purl.org/dc/dcmitype/Text" />
	</Work>
	<License rdf:about="http://creativecommons.org/licenses/by-nc-nd/2.5/"><permits rdf:resource="http://web.resource.org/cc/Reproduction"/><permits rdf:resource="http://web.resource.org/cc/Distribution"/><requires rdf:resource="http://web.resource.org/cc/Notice"/><requires rdf:resource="http://web.resource.org/cc/Attribution"/><prohibits rdf:resource="http://web.resource.org/cc/CommercialUse"/></License></rdf:RDF> -->

In the context of NP_ItemLicense, you would insert the above code into the plugin option 'License to insert for screen display', and it would be output in your templates.

To control the styling and positioning of the license using CSS, you may wish to wrap the code in a <div> element: e.g. <div class=“itemlicense”> </div>.

History

  • Version 0.10 (30 August 2006)
    • Initial release.
itemlicense.txt · Last modified: 2006/08/30 21:35 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki