Giter VIP home page Giter VIP logo

creativecommons / wp-plugin-creativecommons Goto Github PK

View Code? Open in Web Editor NEW
142.0 44.0 97.0 2.49 MB

Official Creative Commons plugin for licensing your content. With Creative Commons licenses, keep your copyright AND share your creativity.

Home Page: https://wordpress.org/plugins/creative-commons/

License: GNU General Public License v2.0

JavaScript 32.09% PHP 57.69% CSS 5.34% Shell 2.43% SCSS 2.35% Dockerfile 0.09%
wordpress-plugin creative-commons copyright copyleft hacktoberfest

wp-plugin-creativecommons's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

wp-plugin-creativecommons's Issues

Add Admin Configuration Option To Disable Help Button

Currently the 1CA widget has a [?] help button after it. This requires more javascript and takes up more screen real estate than the widget alone does. So it would be nice to add an admin option to remove this if the site administrator feels it is worth doing so.

wp_get_attachment_metadata() strips what it thinks are html tags in Exif metadata

If we have a jpeg with a Copyright field like:

<no> tags, tags are <stripped>

then when we upload the file to WordPress and fetch the Exif metadata using:

wp_get_attachment_metadata($att_id[0], true);

then the string we get for Copyright is:

 tags, tags are 

I assume this is due to WordPress taking the sensible precaution of stripping HTML tags from outside input, but it does mean that the format we are using for license URLs falls foul of this.

I've chased this down the call stack a way and I can't find anywhere to change it. I'd rather not have to use php's exif parsing, although I've just tested that and it doesn't have the same problem.

Investigating further, but if anyone knows of a quick fix for this please let me know.

Blog archive page shows license from first shown post

What should be shown is probably the blog default license and the additional warning that individual licenses may apply.

(of course, this only applies to situations where post- or author-specific licensing is enabled)

Plugin install error

Unpacking the package…

Installing the plugin…

The package could not be installed. No valid plugins were found.

Plugin install failed.
wp plugin install fail

REQ: Backend option to limit licenses to only CC Open Content compatible licenses (CC BY, BY-SA, and 0)

Request to include a back-end option to limit available licenses to only CC Open Content compatible licenses (CC BY, BY-SA, and 0). This option is really needed for multi-user open-source projects that are powered by compatible open content licenses. The addition of NC or ND licensed content by any user would present a poison pill for a project with CC BY-SA as the base license.

for an example of a multi-user Open Content project using such a schema, see [פרויקט הסידור הפתוח ✍ • the Open Siddur Project]](http://opensiddur.org/)
(Note this site also provides a notice of the addition of "vanilla" copyrighted content included under a Fair Use claim.)

Cf. For a comparable example of a plug-in providing this facility, see: Open Content License Generator: A Wordpress Plugin for selecting and displaying an Open Content compatible license for posts • Aharon's Omphalos

License isn't shown to be selected from chooser

It appears that the method we're using to get information back from the license chooser doesn't work any more, or at least doesn't show anything to the user. I chose BY-SA, after clicking "proceed" i got an empty white box, which I closed. After saving, some license info does appear on the blog.

WordPress 4.2.2 on Debian Jessie.

Attach 1CA To Button

Currently the One Click Attribution widget floats at the right of the attribution.

We should combine this with the license icon button, subject to the following constraints:

  • It should be obvious to the user that they can click the icon button to copy attribution.
  • We generate html+rdfa that the scraper and that browser plugins can read.

Activation Issue

I tried to activate the plugin and got the following error:
Parse error: syntax error, unexpected '.', expecting ',' or ';' in /home4/user/public_html/wp-content/plugins/wordpress-plugin-awesome/includes/ccbutton.php on line 8

I replaced "." with "," and removed some a few ''s and then got errors involving Line 13 and then the following error:
Parse error: syntax error, unexpected '<' in /home4/jjsprat/public_html/wp-content/plugins/wordpress-plugin-awesome/includes/ccbutton.php on line 5

Plugin options not visible

WP 4.7 using default 2017 theme.
New clean install of WP.
Installed awesome branch of plugin & activated plugin. Can't seem to find options in the admin interface to set config options (CC license type, etc). Nor are there options on individual posts to set licenses.
bugshot2
bugshot1

Add Drop-Down Menu To Image License Field

Place a pop-up menu under the Media image license field.

It should contain:

  • Original
  • [CC licenses]
  • None

Initially select "Original".

Selecting "Original" resets the field to its initial value (including no value).

Selecting "None" clears the field.

Fatal Error

Plugin cannot be activated.

Parse error: syntax error, unexpected '[' in /membri/sitogruppoprova/wp-content/plugins/creativecommons-wordpress-plugin-2.1-beta/includes/class-creativecommons-image.php on line 298

"Change License" button doesn't refresh license on settings page

Hi, we're testing the Creative Commons plugin to see if it fits our requirements.

Currently, testing the latest version from the develop branch and clicking on "Change license" opens the CC configurator website (https://creativecommons.org/choose/) in a modal. However, clicking on some options to change the license does not update the license in the WordPress settings page.

I'm guessing the CC configurator page has changed so certain callbacks are not firing as expected.

Can anyone confirm?


Ideally, what would probably be better is to use some form of JS locally. I found reference to a JS widget that the Creative Commons used to maintain:
https://wiki.creativecommons.org/wiki/LicenseChooser.js

But the links to the repository doesn't appear to work anymore. The SVN links do not work, but the tar.gz builds under the "Availability" section work.

There's also a REST API, but it's quite old:
https://api.creativecommons.org/docs/readme_15.html

I can look at fixing this to use the REST API, but I need to know if the REST API is reliable to use.

Meta Field Formatting Is Unappealing

Go to: Media > [an image] > Edit more details.

The fields we have added are being formatted into tables.

The titles are aligned to the middle of the table row, so they are vertically aligned between the text field and the help.

The text fields do not fill the available space, and so look truncated in comparison with the standard fields above them.

I've not found a way of reformatting these using the array() option syntax for fields, can we pass them as html and format them ourselves?

"Edit media Fields" Formatting Needs Improving

The labels are centered in the table row. If we can't get rid of the table layout to match the built-in fields' layout (like "Caption" and "alternate Text") we should at least top-align the labels.

Add copy and link re: relicensing

When changing the site-wide license, add copy that explains to the user that any content downloaded and/or re-used prior to changing the license will still (and always) be available to that user under the previous license, and that they may continue to share it, allowing other users to download and use that content under the previous licenses. There's probably an FAQ entry on this on our site -- let's link to it.

Must click "proceed" for Chooser

Maybe for documentation, or perhaps a catch on the modal close- if I do not click the "proceed" link in the chooser, my license change is not done - the first time I did this I close the modal on the "x". Maybe the modal should not have a close or some sort of "apply" button.

Display of license in footer is poor

I believe the default behavior of showing the license in the footer without any regard for the styling of the current site results in poor UX.

I think this behavior should be turned off or removed. Let the site admin add the license widget so they can display the license wherever they want.

This also goes for the individual post license. It should be displayed at the end of the post content and not in the site footer.

Current behavior for individual post license:

Screenshot of post license in footer

get_attribution_options switch incomplete?

In class.creativecommons.org : get_attribution_options , I've seen it have no $attribution_options to return when the switch() hits the default and the if() in there fails.

I'm not sure whether this is the switch not capturing all the possibilities or bad options being passed in. I'll keep more of an eye out for it.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.