[WordPress] 外掛分享: Flattr Shortcode Widget

首頁外掛目錄 › Flattr Shortcode Widget
10+
安裝啟用
尚無評分
5678 天前
最後更新
問題解決
WordPress 2.2+ v0.3.3 上架:2010-07-07

內容簡介

這是一個 WordPress 外掛小工具,透過簡單的短碼,可以快速並容易地在文章和頁面中創建 Flattr 小工具。短碼可自訂,因此可以針對每個使用情境進行調整。短碼提供了很多自訂選項,可以基本使用,也可以應用高級功能。

這個小工具的運作方式是,在文章或頁面中加入短碼,然後短碼將產生所有嵌入小工具所需的 JavaScript,您不需任何編程或 JavaScript 的知識。相對於官方的 Flattr 小工具,您不需要嵌入 PHP 函數才能取得小工具,也不需要將其包含在每一篇文章中。您可以在文章或頁面中使用短碼,關鍵是您每次都可以自訂小工具!這不表示官方 Flattr 小工具沒有它的用處,我實際上建議同時使用這兩者!

這意味著您可以插入小工具,用於「Flattr」不在您選擇的網頁上的內容(例如某些外部內容),也可以允許您為多個人設置「Flattr」使用者 ID,或允許具有多位作者的網誌添加「Flattr」小工具,以「Flattr」他們(而非整個網站)的內容。

有關如何配置此外掛程式,請參閱安裝指南。

有幾種使用此小工具的方法,從簡單到複雜:

超級簡單(需要官方 Flattr 外掛) - 最簡單的方法是在文章中的任何地方插入 「[flattr /]」。這需要您已安裝官方 Flattr 小工具並在上面設置了 Flattr UID(稍後版本會提供獨立設定)。設置將自動設置如下:

按鈕類型設定為大號。

使用者 ID(如上所述)設定為在官方外掛中所設置的使用者 ID。

標題設定為頁面/文章標題。

說明設定為頁面/文章摘錄。

類別設為文本。

語言設為英語。

標籤不設定。

URL 設定為頁面/文章永久連結。

設定不隱藏於 flattr.com 列表中。

簡單 - 如果您沒有或不想安裝官方 Flattr 外掛,则簡單是使用我的 Flattr 小工具最簡單的方法。如果有多位博主在同一部落格中發文,每個人都想賺取他們自己的 Flattry,則使用此選項。要使用此選項,請使用短碼「[flattr uid ='{uid}' /]」,其中 {uid} 替換為您的 Flattr 使用者 ID。此簡單選項與超級簡單選項之間的唯一區別在於您獨立定義了 Flattr 使用者 ID。

設置將自動設置如下:

按鈕類型設定為大號。

使用者 ID 將設定為您在短碼中定義的 {uid}。

標題設定為頁面/文章標題。

說明設定為頁面/文章摘錄。

類別設為文本。

語言設為英語。

標籤不設定。

URL 設定為頁面/文章永久連結。

設定不隱藏於 flattr.com 列表中。

在未來版本中,一些這些預設設置將是可自訂的。

高級 - 最後,是高級選項。您可以使用高級短碼:「[flattr uid ='{uid}' btn ='{btn}' tle ='{tle}' dsc ='{dsc}' c...」,擁有更高級的自訂。

外掛標籤

開發者團隊

⬇ 下載最新版 (v0.3.3) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Flattr Shortcode Widget」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

This is a widget that allows you to quickly and easily create a flttr widget within posts and pages using a simple shortcode. The advantage of having a shortcode is that it can be customised for every use. The short code has lots of customisability and can be used in a very basic way or with more advanced features.
The way the widget works is that within a post or page you include the shortcode and then that shortcode will generate all the javascript needed to embed the widget. That means you don’t need any knowledge of coding or js. As opposed to the official Flattr Widget, you do not need to embed a php function to get the widget or have it included in every post. You can call the shortcode from within a post or page and the most important thing is that you have the option to customise the widget every time! This does not mean that the official Flattr Widget does not have its place, and I actually recommend using both in conjunction!
This means that you can insert widgets that will Flattr pages other than the one you are on (for example some external content) and it will also allow you to set the Flattr User ID per widget meaning you can have multiple widgets for multiple people, or allow blogs that have multiple authors to add a Flattr widget that will flattr them (rather than the site) for their content.
For information on how to configure this plugin, installation information.
Arbitrary section
There are a few ways that the Widget can be used going up in complexity.
Super Simple (Requires official Flattr Plugin)
There are various ways that the Flattr Widget can be used. The most simple is to insert “[flattr /]” anywhere in a post. Using this will require that you have the official Flattr Widget installed and have set your Flattr UID on that (an independent setting will come in a later version).
Settings will be automatically set as stated:
*The button type will be set to large
*The User ID (as mentioned above) will be set to that which is set up in the official plugin
*The title will be set to the Page/Post title
*The description will be set to the Page/Post excerpt
*The category will be set to text
*The language will be set to English
*Tags will not be set
*The thing will not be hidden from listings on flattr.com
Simple
Simple is the most simple way of using my Flattr Widget if you do not have/want to install the official Flattr Plugin. It is also what you would use if you have multiple bloggers blogging on the same blog and each want to earn their own Flattry. To use this option, use the shortcode, “[flattr uid='{uid}’ /]” replacing {uid} with your Flattr User ID. The only difference between this simple option and the super simple option is that you are defining your Flattr User ID independently.
Settings will be automatically set as stated:
*The button type will be set to large
*The User ID will be set to whatever you have defined as {uid} in the shortcode
*The title will be set to the Page/Post title
*The description will be set to the Page/Post excerpt
*The category will be set to text
*The language will be set to English
*Tags will not be set
*The thing will not be hidden from listings on flattr.com
In a future build, some of these default settings will be customisable.
= Advanced
but still pretty simple! =

To use edit the shortcode you should change the parameter values (indicated with curly brackets surrounding them). The parameters are:

*tag – This is the tags of the thing, to help people finding your content easier on the Flattr website. If you want to use multiple tags, separate using a normal comma (,) sign. If undefined no tags will be used.
*anc – Appends an anchor to the url (saves you having to write the whole URL just to add an anchor). If a unique anchor is used on each widget it allows for multiple widget on the same URL. This must be unique otherwise 2 widgets with the same ‘url’ and ‘anc’ they will be the for the same flattr. Default is blank.
*setanc – This value is ignored if no anchor is set, if it is set then it will add a code to the top of the widget so that the defined anchor redirects to the widget’s location. This means that when people follow the link from flattr.com, they will be taken to the location of the widget on the page. This is good if you want to have multiple flattrs for different sections and you put the flattr widget at the top of each section. Set to ‘1’ to set to true, ‘0’ to set to false. Set to false if you want to manually input the anchor code (if for example you wanted it elsewhere rather than at the point of the widget or you just wanted the backlink from flattr.com to go to your page as normal)
*qty – Allows for you to have as many Flattr widgets as you want. Whatever number you set the value to will be the ammount of unique flattr widgets that will be created. Uses anchors to make them unique and is compatible with the ‘anc’ variable – it may cause problems if an anchor is set in the ‘url’ variable. Default is ‘1’.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon