[WordPress] 外掛分享: fmTuner

首頁外掛目錄 › fmTuner
⚠ 此外掛已下架 — 不再更新維護,建議勿安裝。
10+
安裝啟用
★★★★★
5/5 分(1 則評價)
4135 天前
最後更新
問題解決
WordPress 2.7+ v1.1 上架:2008-09-06

內容簡介

fmTuner 可以從你的 Last.fm 帳戶中提取曲目信息,包括最近聽過的曲目、喜愛的曲目和熱門曲目等。使用內置選項和簡單標籤,你可以完全自定義曲目在網站上的外觀呈現方式。

特點

可以選擇最近聽過的曲目、喜愛的曲目和熱門曲目
可以限制顯示的曲目數量
可以調整從 Last.fm 提取曲目的頻率
可以使用 HTML 和占位符自定義曲目外觀

要求

需要擁有 Last.fm 帳戶以"scrobble"(發布) 相關音樂詳細信息
能在 WordPress 2.7 或更高版本上運行
需要 PHP 5 或更新版本

故障排除

為什麼沒有曲目顯示?

請確認已經在 WordPress 管理區的「Manage Plugins」頁面安裝並啟用了fmTuner。
在fmTuner的設定頁面中確認你的 Last.fm 用戶名,以及其他必要的選項設置(例如,如果你還沒有愛聽的曲目,可能要選擇最近聽過的曲目)。
在你當前的 WordPress 主題中確認 <?php if(function_exists('fmtuner')) { fmtuner(); } ?> 是否存在。
播放一些音樂,也許把一些曲目標記為喜愛,以確保你有可用的音樂可以展示。
最後,在 fmTuner 的設置頁面中設置佔位符圖像地址,以在曲目沒有圖像地址時使用。

為什麼顯示的曲目數量與我的設置不符?

有時,你可能會發現顯示的曲目數量與在 fmTuner 設定頁面中設置的數量不符。這通常是由 [::image::] fmTuner 标签引起的。因為 fmTuner 不能預先知道哪些曲目沒有圖像,所以會跳過沒有圖像的曲目。或者你可以在 fmTuner 的設定頁面中提供佔位符圖像地址,以在 Last.fm 沒有提供圖像時使用。使用這個功能,你顯示的曲目數量應該能保持一致。

為什麼會出現 PHP 錯誤?

fmTuner 需要某些 PHP 函數與 Last.fm 進行通信並處理響應,使用時它會採取預防措施以避免明顯的錯誤,但是可能你的服務器沒有滿足必要的要求。

確保你的服務器運行的是 PHP 5 或更新版本。如果你使用的是託管環境,你的提供商可能會為你進行設置。
fmTuner 需要與 Last.fm 進行通信,請在你的 php.ini 文件中設置 allow_url_fopen=”On”,或確認是否安裝有 cURL 擴展程序。如果 fmTuner 查詢曲目的方式失敗,會自動切換到另外一種方式。

刪除

很抱歉看到你離去!以下是如何刪除 fmTuner:

通過 WordPress 上的「Plugins」菜單停用插件。
從你的 wp-content/plugins/ 目錄中刪除fmtuner目錄。

如果你有任何建議和意見,歡迎與我們聯繫,讓 fmTuner 變得更好!

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.1) 或搜尋安裝

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

原文外掛簡介

fmTuner pulls track information from your Last.fm account, including recent tracks, loved tracks, and top tracks. Using built-in options and simple tags, you can fully customize how tracks appear on your site.
Features

Choose between recent, loved, and top tracks
Limit how many tracks are shown
Adjust how often tracks get pulled from Last.fm
Customize track appearance using HTML and placeholders

Requirements

A Last.fm account to which you “scrobble” (publish) music details
WordPress 2.7 or newer
PHP 5 or newer

Troubleshooting
Why are no tracks displayed?

Make sure fmTuner is installed and activated by visiting your Manage Plugins page in the WordPress administration area.
Ensure your Last.fm username is set in the fmTuner Settings page, as well as any other necessary options (e.g. Recent Tracks instead of Loved Tracks if you have no Loved Tracks).
Confirm that exists somewhere in your current WordPress theme.
Listen to some music, and perhaps mark some tracks as Loved, to make sure you have available music to show.
Finally, try setting a placeholder image address in the fmTuner Settings page, which will be used when tracks have no artwork address.

Why does the number of tracks displayed not match my setting?
Occasionally, you may find that the number of displayed tracks does not match the number you set in the fmTuner Settings page. This is most often attributed to the [::image::] fmTuner tag. Because fmTuner cannot know in advance which tracks don’t have images, it will skip ones without artwork. Alternatively, you can provide a placeholder image address in the fmTuner Settings page which will be used when Last.fm does not provide artwork. Using this, your number of displayed tracks should stay constant.
Why do I get PHP errors?
fmTuner needs certain PHP functions to talk to Last.fm and handle responses, and while it takes precautions to avoid blatant errors, it’s possible your server doesn’t meet the necessary requirements.

Ensure your server is running PHP 5 or later. If using a hosted environment, your provider may be able to do this for you.
fmTuner needs to communicate with Last.fm. Set allow_url_fopen=”On” in your php.ini file, or confirm that the cURL extension is installed. fmTuner will try one method of fetching track listings, and automatically fall back to the other if needed.

Removal
Sorry to see you go! Here’s how to remove fmTuner:

Deactivate the plugin through the ‘Plugins’ menu in WordPress.
Delete the fmtuner directory from your wp-content/plugins/ directory.

Be sure to get in touch if there’s a particular feature you think would make fmTuner better!

延伸相關外掛

文章
Filter
Apply Filters
Mastodon