joh_flattr: a Textpattern plugin for Flattr
I got my Flattr invitation today and realized that a Textpattern plugin was missing, so I wrote one. The plugin displays a Flattr button where the <txp:joh_flattr />-tag is used.
Download the joh_flattr Textpattern plugin
Example usage:
<txp:joh_flattr uid="1234" title="My flatter entry title" description="The description of the flatter entry" />
Parameters
- uid
- Your personal Flattr user id. Required.
- title
- The title of the thing you want to submit. Defaults to the article title and falls back to the sitename if omitted. The contents of a custom field named "joh_flattr_title" will override any default value or parameter value.
- description
- The full excerpt of the content. Defaults to the article excerpt and falls back to the site slogan if there is no current article. The contents of a custom field named "joh_flattr_description" will override any default value or parameter value.
- category
- The flattr category the content belongs to. You can choose between the following: text, images, video, audio, software, rest. Required. The contents of a custom field named "joh_flattr_category" will override any default value or parameter value.
- language
- The language code of the submitted thing. Defaults to 'en_GB'. See a list of supported language codes
- tag
- Tag your Flattr thing. Multiple tags can be used by separating them with commas. The contents of a custom field named "joh_flattr_tag" will override any default value or parameter value.
- url
- The URL of your Flattr thing. Defaults to the requested URL.
- compact
- If this parameter is set to "true" the compact button type will be used.
I hope you'll find the plugin useful. If you find any bugs or have any questions, please post them in the Textpattern forum support thread

