[WordPress] 外掛分享: Scrobbled Blocks

WordPress 外掛 Scrobbled Blocks 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「Scrobbled Blocks」是 2026-01-13 上架。
  • 目前尚無安裝啟用數,是個很新的外掛。如有要安裝使用,建議多測試確保功能沒問題!
  • 上一次更新是 2026-01-14,距離現在已有 43 天。
  • 外掛最低要求 WordPress 6.0 以上版本才可以安裝。
  • 外掛要求網站主機運作至少需要 PHP 版本 7.4 以上。
  • 尚未有人給過這款外掛評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

jordesign |

外掛標籤

music | blocks | lastfm | scrobble | gutenberg |

內容簡介

**概要:**
Scrobbled Blocks 透過原生的 Gutenberg 區塊將 Last.fm 的聆聽歷史帶到您的 WordPress 網站上。無論您是音樂部落客、播客、DJ,或只是想與觀眾分享您的音樂品味,這個外掛讓操作變得簡單。

**問題與答案:**

- **這個外掛連接到什麼外部服務?**
- 這個外掛連接到 Last.fm API(https://ws.audioscrobbler.com/2.0/),以檢索您的公共聆聽歷史並在 WordPress 網站上顯示。

- **哪些數據會被發送?**
- 您的 Last.fm 用戶名
- 您的 Last.fm API 金鑰
- 要檢索的曲目數量

- **數據何時被發送?**
- 當「目前播放」或「最近播放」區塊在頁面上顯示時。
- 數據被本地緩存以最小化 API 請求(目前播放為 1 分鐘,最近播放為 5 分鐘)。

- **這個服務的提供者是誰?**
- 這項服務由 Last.fm Ltd. 提供。

- **身為網站訪客,有哪些個人數據會被收集或發送?**
- 不會從您的網站訪客那裡收集或發送任何個人數據給 Last.fm。只有您配置的 Last.fm 用戶名和 API 金鑰被傳遞來檢索您的公共聆聽數據。

- **這個外掛如何進行 CSS 定制?**
- 這個外掛使用 CSS 自定義屬性(CSS 變數)進行簡單的主題設計。將這些添加到您的主題 CSS 中以覆蓋默認值。

- **有關需求,需要什麼來使用這個外掛?**
- WordPress 6.0 或更高版本
- PHP 7.4 或更高版本
- 一個 Last.fm 帳戶(免費)
- 一個 Last.fm API 金鑰(免費,在 last.fm/api 領取)

原文外掛簡介

Scrobbled Blocks brings your Last.fm listening history to your WordPress site using native Gutenberg blocks. Whether you’re a music blogger, podcaster, DJ, or just want to share your musical tastes with your audience, this plugin makes it simple.
Two Powerful Blocks
Now Playing Block
Display the track you’re currently listening to, or the most recent track you’ve played. Perfect for sidebars, footers, or anywhere you want to show off your current musical mood.
Recently Played Block
Show a list or grid of your recent scrobbles. Configurable from 1-20 tracks, with flexible layout options to match your site’s design.
Key Features

Live Editor Preview – See your actual Last.fm data while editing in Gutenberg
Flexible Layouts – Choose between list and grid views for the Recently Played block
Customisable Display – Toggle artwork, timestamps, and Last.fm links on or off
Smart Caching – Minimises API calls while keeping data fresh (1 min for Now Playing, 5 min for Recently Played)
Graceful Degradation – If the API is unavailable, cached data is served; if no cache exists, blocks simply don’t render
Theme-Friendly Styling – Uses CSS custom properties so you can easily match your theme
Responsive Design – Looks great on all screen sizes
Custom Placeholder – Upload your own placeholder image for tracks without artwork

External Services
This plugin connects to the Last.fm API (https://ws.audioscrobbler.com/2.0/) to retrieve your public listening history and display it on your WordPress site.
What the service is used for:
This plugin uses the Last.fm API to fetch your recent scrobbles (listening history) so they can be displayed on your WordPress site using the Now Playing and Recently Played blocks.
What data is sent:

Your Last.fm username
Your Last.fm API key
The number of tracks to retrieve

When data is sent:

When the Now Playing or Recently Played blocks are displayed on a page
Data is cached locally to minimise API requests (1 minute for Now Playing, 5 minutes for Recently Played)

Service provider:
This service is provided by Last.fm Ltd.

Last.fm Terms of Service
Last.fm Privacy Policy

No personal data from your site visitors is collected or sent to Last.fm. Only your configured Last.fm username and API key are transmitted to retrieve your public listening data.
CSS Customisation
The plugin uses CSS custom properties (CSS variables) for easy theming. Add these to your theme’s CSS to override the defaults:
:root {
/* Artwork sizes */
--scrobble-artwork-size: 64px;
--scrobble-artwork-size-grid: 100%;

/* Spacing */
--scrobble-gap: 1rem;

/* Typography */
--scrobble-font-size-track: inherit;
--scrobble-font-size-artist: 0.875em;
--scrobble-font-size-timestamp: 0.75em;

/* Colours */
--scrobble-color-text: inherit;
--scrobble-color-text-secondary: inherit;
--scrobble-color-link: inherit;
}

Example: Larger Artwork
:root {
--scrobble-artwork-size: 100px;
}

Example: Custom Colours
:root {
--scrobble-color-text: #333;
--scrobble-color-text-secondary: #666;
--scrobble-color-link: #1db954;
}

Additional Notes
Requirements

WordPress 6.0 or higher
PHP 7.4 or higher
A Last.fm account (free)
A Last.fm API key (free, get one at last.fm/api)

Source Code
This plugin uses build tools to compile JavaScript for the block editor. The compiled files are located in the build/ directory.
The original, human-readable source code is available in the src/ directory and on GitHub:
https://github.com/jordesign/scrobbled-blocks
To build from source:

Clone the repository
Run npm install to install dependencies
Run npm run build to compile the blocks

Support
For bug reports and feature requests, please visit the GitHub repository.
Contributing
Contributions are welcome! Please see the GitHub repository for development guidelines.

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Scrobbled Blocks」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


1.0.0 | trunk |

延伸相關外掛(你可能也想知道)

  • Classic Editor 》Classic Editor 是由 WordPress 團隊維護的官方外掛程式,可還原之前(也就是「經典」)的 WordPress 編輯器和「編輯文章」畫面,使使用者可以使用延伸這個畫...。
  • Advanced Editor Tools 》高級編輯工具(以前稱為 TinyMCE Advanced)引入了一個「經典段落」區塊,供區塊編輯器(Gutenberg)使用。, 如果您還沒有準備好切換到區塊編輯器,或者有插...。
  • Classic Widgets 》Classic Widgets 是由 WordPress 團隊維護的官方外掛,能夠恢復先前(即「經典」)的 WordPress widgets 設定畫面。該外掛將於 2024 年或必要時保持支援和維...。
  • Starter Templates – AI-Powered Templates for Elementor & Gutenberg 》免費模板,支援 Elementor、Beaver Builder 和 Block Editor, 使用 Starter Templates 外掛,只需數分鐘即可建立專業且完美的網站。此外掛為使用者提供超過 2...。
  • Spectra Gutenberg Blocks – Website Builder for the Block Editor 》a.com/tutorials/?utm_source=wp-repo&utm_medium=link&utm_campaign=readme" rel="nofollow ugc">Spectra tutorials, you can easily learn how to ...。
  • Kadence Blocks — Page Builder Toolkit for Gutenberg Editor 》Kadence Blocks 是一個 WordPress 外掛,它附加自訂區塊和選項,擴展了 Gutenberg 編輯功能,使您能夠輕鬆創建美麗的網站,而不需要任何程式編寫。Kadence Bl...。
  • Disable Gutenberg 》此外掛可禁用新的 Gutenberg 編輯器 (也稱為區塊編輯器),並以經典編輯器取代它。你可以完全禁用 Gutenberg,或從文章、頁面、角色、文章類型和主題模板中有...。
  • Extendify 》Extendify 是一個網站設計和製作工具平台,提供豐富的圖案和全頁面佈局,可用於 Gutenberg 區塊編輯器,幫助人們建立美麗的 WordPress 網站。, 使用 Extendif...。
  • Otter Blocks – Gutenberg Blocks, Page Builder for Gutenberg Editor & FSE 》Otter 是一款 Gutenberg Blocks 頁面建構外掛,可為 WordPress Block Editor(又稱 Gutenberg)添加額外功能,讓您享受更好的頁面建構體驗,而無需使用傳統的...。
  • Page Builder Gutenberg Blocks – CoBlocks 》, 注意:對於已受 CoBlocks 3.0.0 版本影響的使用者,請查看我們在 WordPress.org 支援論壇文章,如果您需要支援,請建立新的主題帖。, , CoBlocks 是新版 Gu...。
  • AI Powered Starter Templates by Kadence WP 》用三個滑鼠點擊建立一個美觀的「效能優化」網站, 在幾分鐘內創建和自定義專業設計的網站。, Kadence Starter Templates 為您提供使用 WordPress 區塊構建器的...。
  • GenerateBlocks 》將不同的功能整合至編輯器,但並不會因為過多的一維方塊造成內容過於臃腫。使用 GenerateBlocks,您只需深入學習少量的方塊,即可用於創建任何內容。, Genera...。
  • Gutenberg Essential Blocks – Page Builder for Gutenberg Blocks & Patterns 》使用 Essential Blocks for Gutenberg,即可實現您的創意視覺效果,這是適用於 WordPress 的最終區塊庫!, 使用我們易於使用的區塊,增強您使用 Gutenberg 的...。
  • VK Blocks 》這是一個擴充 Gutenberg 模塊的外掛。, [ 模塊 ], , 成員, 外框, 警示, 常問問題, 氣球, 流, 按鈕, 公關模塊, 公關內容, 邊框盒, 標題(帶副標題), 響應間距...。
  • Stackable – Page Builder Gutenberg Blocks 》終極與古鐸版衣搭檔, Stackable 是您一直在等待的終極可靠古鐸版衣搭檔。使用堅強、輕便的自訂區塊、現成設計、UI套件、全域設定和高級自訂選項建立動態網站...。

文章
Filter
Apply Filters
Mastodon