CC Open Source Blog

GSoC CC Wordpress Plugin: Weekly Report #12

gravatar

by erlehmann on 2010-08-19

This may be my last report for the plugin. After 150 commits and a bit over 30KB of written PHP code, the Google Summer of Code proposal Support for CC licenses in Wordpress is finally finished, though the final product is remarkably different from the original suggestion. As time went by fast in the last few days before the deadline, I successfully managed to fix the three remaining issues mentioned before; namely an IE bug, adding license information to the media manager overview table (screenshot) and having a proper README (written in Markdown).

However, one thing still did not work quite right: Embedding. A security restriction called the same origin policy prevents audio and video (but not images, as they came before the SOP) from one site to be included on another, unless a special HTTP header is sent. As Jonas Sicking puts it in an explanatory email (via):

Requiring that sites add 'Access-Control-Allow-Origin:*' simply is
a way for us to know that "this is a public resource that other sites
can embed".

In addition to the above issue, other things should be taken care of server-side to ensure media playback works as intended:

For many of these cases, if a server does not already handle them, only a few lines in the .htaccess file would need to be changed. But, as the plugin should also accommodate users who may not have the option, technical skill or time to edit their web server configuration, everything mentioned above needs to happen automagically. This has led me to writing a small web server and bundling it with the plugin.

Technical issues aside, participating in the Google Summer of Code was an interesting and unique experience that certainly made me grow in confidence regarding my abilities. I also learned to value how much work can go into a relatively small piece of code to create a sufficiently polished product. Finally, the plugin in its current incarnation was made possible only through assistance of the following people, whom I wish to thank:

What will follow now is user testing, hopefully yielding some real world experience and small improvements so a more polished version of the plugin can be packaged and released through the Wordpress.org plugin directory. If, in the future, the plugin's functionality is extended notably, I may write another blog post — for now, however, I'm done. [ IE]: Internet Explorer [ SOP]: Same Origin Policy