這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

WordPress Last.fm Charts

描述

Using the Last.fm API, this is a WordPress plugin
that provides a shortcode that will display charts
of your Last.fm music-listening data. This plugin uses the Easy Chart Builder plugin by dyerware to create charts, so
you will need to install and activate that plugin first.

Download the latest version of the plugin or view the source code.

Usage

In a post or page, use the [wp_lastfm_charts_top_artists] or [wp_lastfm_charts_top_tracks] shortcode. Specify the user_name parameter, using your Last.fm user name. Specify a time range with the period parameter, e.g., 12month. Specify a chart type with chart_type, e.g., horizbar or pie.

Some examples:

[wp_lastfm_charts_top_artists user_name="cheshire137" period="12month" chart_type="horizbar"]

[wp_lastfm_charts_top_artists user_name="cheshire137" period="12month" chart_type="pie"]

[wp_lastfm_charts_top_tracks user_name="cheshire137" period="12month" chart_type="horizbar"]

[wp_lastfm_charts_top_tracks user_name="cheshire137" period="12month" chart_type="pie"]

Other parameters include chart_color, chart_fade_color, width, height,
colors, limit, title, data_table_css, and image_alt.

chart_color and `chart_fade_color` refer to the background color of the chart

and should be hex color codes without the #. They default to FFFFFF (white).

limit refers to the number of artists or tracks to display in the chart. It

defaults to 12.

colors should be a comma-separated list of hex color codes without the #.

period should be one of `overall`, `7day`, `1month`, `3month`, `6month`, or
12month.

螢幕截圖

  • Top artists from the last twelve months as a horizontal bar chart.
  • Top artists from the last twelve months as a pie chart.
  • Top tracks from the last twelve months as a horizontal bar chart.
  • Top tracks from the last twelve months as a pie chart.

安裝

  1. Upload the wp-lastfm-charts/ folder (that is, the entire plugin folder) to your WordPress wp-content/plugins directory.
  2. Activate the plugin through the ‘Plugins’ menu in the WordPress admin dashboard.
  3. Use the [wp_lastfm_charts_top_artists] or [wp_lastfm_charts_top_tracks] shortcode in a post or page (see Usage section for details).

評價

There are no reviews for this plugin.

貢獻者及開發者

“WordPress Last.fm Charts” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 WordPress Last.fm Charts 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄