WordPress Plugin: Easy CC License

Creative Commons License
WordPress Plugin: Easy CC License by MakerBlock is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License.
Based on a work at makerblock.com.
Permissions beyond the scope of this license may be available at http://makerblock.com/2012/02/wordpress-plugin-easy-cc-license/.

I’ve written a new WordPress plugin!  It uses the Creative Commons API to grab the appropriate license based on your license choices.  While there’s still room to improve the plugin, I’m pretty happy with the way it’s turned out.  I’ve made a conscious effort to use best plugin programming practices – and learned a lot in the process. 1

You can download this Creative Commons WordPress plugin here!

”Posts
  1. Wanna make a DrawBot?
  2. DrawBot Resources and Links
  3. DrawBot, the Adventure Begins
  4. DrawBots for the slow learner
  5. DrawBot - Parts Ordered!!!
  6. DrawBot - The Breakdown
  7. DrawBot - Parts Shipped!!!
  8. DrawBot - What would you draw?
  9. DrawBot - The Hacks
  10. DrawBot - Giant Unicorn?
  11. DrawBot - The Delivery?
  12. DrawBot - The Delivery, Part II
  13. DrawBot – The Assembly, Part I
  14. DrawBot – The Software, Part I (and an existential conversation)
  15. DrawBot – The Delivery, Part IV
  16. DrawBot – The Assembly, Part III
  17. DrawBot – The Assembly, Part IV
  18. DrawBot – The Face Palm
  19. DrawBot – The Delivery, Part V
  20. i find i want to add more posts in some random series, just so i can use my new plugin
  21. Simple Series WordPress Plugin
  22. My first published WordPress plugin! Simple Series!
  23. This is a test of the Simple Series post system... This is only a test
  24. ZOMG! Simple Series is going viral!
  25. DrawBot – The Silver Lining of Failure
  26. Simple Series - Half-Life; Market Research
  27. DrawBot – The Assembly, Part VI
  28. DrawBot – The Assembly, Part VIII
  29. DrawBot – The Breakdown, Part II
  30. DrawBot – Printing!
  31. DrawBot – Why are you crying?
  32. DrawBot – Pen Selection
  33. DrawBot – Drawing Success(ish)!!!
  34. DrawBot – Onwards and Upwards!
  35. WordPress Plugin: Easy CC License
  36. Restarting a Stalled DrawBot Drawing
  37. TSP FTW!
  38. Speedier DrawBot Drawings
  39. Two new DrawBot links! And an update!
  40. Excellent DrawBot Slides
  41. DrawBot Practice Tip: A Watched Pot
  42. The biggest inkjet printer ever
  43. Maze Code + Polargraph?
  44. DrawBot Aesthetic Re-Design Ideas
  45. Every Body Needs a Skull
  46. I think I know what I want to draw next...
  47. Overengineered Spools
  48. Overengineered Bolt Endcaps, Case Holder
  49. Sourcing DrawBot Parts
  50. DrawBot - A Preview
  51. Building an Arduino Drawing Robot - On The Cheap
  52. How to add a custom button to the WordPress Visual TinyMCE Editor
  53. A Study of Drawing Robot Pen Holders and Design Considerations
  54. Skipping! How could I forget the skipping?!
  55. Drawing Robot Penmanship

  1. Most of the plugin’s functions are wrapped in a class and includes a deactivation function. []

5 Responses to “WordPress Plugin: Easy CC License”

  1. Damian Duchamps says:

    Like the idea of you plugin but for me it’s not working. Can’t figure out what exactly it is. There’s some error in line 163 my WordPress says. Reloading the page makes the error messages disappear but no licence is displayed. Same in the settings where as I understood a preview of the chosen licence is displayed. I use the latest WordPress.

    Errors displayed:

    Warning: file_get_contents() [function.file-get-contents]: URL file-access is disabled in the server configuration in /kunden/69286_57462/cc/wp-content/plugins/easy-cc-license/ez_cc_license.php on line 163

    Warning: file_get_contents(http://api.creativecommons.org/rest/1.5/license/standard/get?&commercial=y&derivatives=y&jurisdiction=DE&type=&title=&attribution_name=&attribution_url=&source-url=&more_permissions_url=) [function.file-get-contents]: failed to open stream: no suitable wrapper could be found in /kunden/69286_57462/cc/wp-content/plugins/easy-cc-license/ez_cc_license.php on line 163

    Warning: DOMDocument::loadXML() [domdocument.loadxml]: Empty string supplied as input in /kunden/69286_57462/cc/wp-content/plugins/easy-cc-license/ez_cc_license.php on line 165

    In the source of the website I can see that your plugin inserts some code but nothing shows up on the website.

    Perhaps you’ve got some idea, what’s wrong.

    Sincerely,
    Damian

  2. MakerBlock says:

    @Damian,
    It looks to me like your server isn’t configured to allow certain necessary PHP5 commands – “file_get_contents()” is critical to the operation of this plugin. That’s what allows your server to submit your options to the CC server and retrieve the necessary license information. Since that command is disabled, the plugin can’t perform the necessary next steps, which explains the third “Warning” on line 165. I believe, you’ll need to edit your “php.ini” file to allow the relevant commands. I hope this helps!

  3. […] you can always visit my website (It’s mostly about awesome open source robots, if you’re into that kinda […]

  4. Great work! Works fine for me without any installing-issues.
    BUUUUUUUT: There seems to be no way of displaying share alike-licenses. In my case I need a by-nc-sa license but only get a by-nc displayed. Can you fix this?
    Anyway, thanx for the good work!

  5. […] as the awesome Simple Series plugin, OCD plugin stats plugin, and EZ Creative Commons license plugin! […]

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>