NewsFeaturesDownloadsDevelopmentSupportAbout Us
Plugin rightschooser

Plugin rightschooser

From LifeType Wiki


Name: rightschooser

Latest version: 0.9

Download link: http://ckm.blog.csfuture.com/resource/plog_ce/72

License: GPL

Author: Bill Yuan-yao Shih

[edit] Description

This plugin allows you to select and apply a license to your individual blogs, then it can display the button and metadata automatically.

[edit] Configuration

You can use:

  1. $rightschooser->isEnabled() to check the plugin is enabled or not.
  2. $rightschooser->getHtml() to fetch and show the HTML and RDF for your licensed blogs from Creative Commons website.
  3. $rightschooser->showCustomHtml() to show the HTML output for your licensed blogs.
  4. $rightschooser->showCustomRdf() to include the RDF metadata in your licensed blogs.


Example:

Add the following code to any template file where you want it to show:

{if $rightschooser->isEnabled()}
{$rightschooser->getHtml()}
{/if}

Or the custom style (You can modify the output defined in pluginrightschooser.class.php ,but if you are not familiar with PHP, just use $rightschooser->getHtml()):

{if $rightschooser->isEnabled()}
{$rightschooser->showCustomHtml()}
{$rightschooser->showCustomRdf()}
{/if} 

[edit] Notes

Although the plugin works well on my blog site, this isn't a stable version since I'm not sure if there are bugs that I haven't find out yet.


I use the remote license engine application as a popup window, then it will return appended variables in the URL.( the URL is UTF-8 )

And I write a PHP file to receieve the data via the HTTP GET method, then use javascript to write the data back to the form in the parent window.

When the data includes CJK words such like Chinese or Japanese, some of these words will become null characters after the PHP file receieved them.

And it only happened when I use IE. When I use Firefox, everything is just fine.