PDA

View Full Version : Want to add Creative Commons chooser popup to posts.


From_Ariel
02-22-2011, 02:11 AM
I want to add a Creative Commons chooser popup to posts.

On the creative commons website is a little java app that lets you choose the options for your license then the app outputs a link to the appropriate CC Image and license.

http://labs.creativecommons.org/demos/jswidget/tags/0.97/example_web_app/

http://wiki.creativecommons.org/LicenseChooser.js

Basically what I want is when a member is posting they can click on a button and a popup will come up asking them to choose from the options above to get the right kind of license and then it will insert a CC Image & Link as appropriate.

My website will have lots of graphics and media being uploaded and I want an easy way for members to protect their stuff. I would do it as custom VB code but there are so many different combination of permissions for Creative Commons it would require like 8 different codes.

From_Ariel
02-25-2011, 06:28 AM
I just wanted to add if no one wants to help for free I could be convinced to pay for this mod if I have to.

It shouldn't be that hard as the java applet (above post) outputs the correct link to Creative Commons website and correct link to the accompanying image as needed based on what you choose.

Extracting results

All of these result extraction systems are demonstrated in the examples.

* There are two hidden form fields called cc_js_result_uri and cc_js_result_name that respectively store the URI and name of the license selected by the user. Just do document.getElementById("cc_js_result_uri").value (or "cc_js_result_name" instead) and you'll have the license information.
* There is an extra hidden form field containing the link to the image used. Simply get the element whose ID is cc_js_result_img and you will have a URL that is a permanent image. Hotlinking these images is allowed and encouraged.