[WordPress] 外掛分享: oEmbed for BuddyPress

前言介紹

  • 這款 WordPress 外掛「oEmbed for BuddyPress」是 2010-02-18 上架。
  • 目前有 40 個安裝啟用數。
  • 上一次更新是 2010-02-22,距離現在已有 5550 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 尚未有人給過這款外掛評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

r-a-y |

外掛標籤

embed | oembed | buddypress |

內容簡介

在 BuddyPress 網路中,分享來自 YouTube、Flickr、Hulu 等網站的最愛內容,這是最簡單的方法。

BuddyPress 的 oEmbed 利用 WordPress 自己的 oEmbed 類別,因此預設情況下,您可以分享來自以下網站的內容:

YouTube
Blip.tv
Vimeo
DailyMotion
Flickr
Hulu
Viddler
Qik
Revision3
Photobucket
Scribd
WordPress.tv

你如何使用該外掛程式?簡單!只需在 BuddyPress 中的活動更新或論壇帖子中輸入任何上述列出的網站之 URL。

更新發布後,該 URL 將自動轉換為嵌入式內容。

技術資訊

因為 oEmbed for BuddyPress 每次都會檢查每個鏈結是否可oEmbed,為了減少冗餘的 oEmbed 請求,每個鏈結都被緩存到資料庫中。

快取項目是嵌入式代碼(如果鏈結可oEmbed),或失敗的連結。

白名單功能

預設情況下,外掛程式會將居於 BuddyPress 相同網域上的超鏈結和 URL 加入白名單。

很酷的是,你可以擴展白名單。

例如,在活動更新中,如果您輸入了「http://www.google.com」,則該外掛程式將在資料庫中快取該鏈結。假設您想要排除 Google.com 鏈結被快取在資料庫中。

打開文本編輯器中的 bp-oembed-config.php,將以下行添加到末尾:

$bp_oembed['whitelist'][] = 'google.com';

這將允許 Google.com 的所有鏈結位於白名單中。

已知問題

顯示 array_map() 警告 - 這是 BuddyPress 問題,已在最新的 bleeding 版本中修復 (https://trac.buddypress.org/changeset/2747)

當刪除論壇帖子時,bbPress 中的 oEmbed 論壇帖子快取未刪除 (看起來像是 bbPress 問題)

帶單引號的超鏈結會被破壞(如果您是正規表達式專家,我需要您的幫助!)

例如,BuddyPress

在超鏈結 oEmbed 可嵌入的鏈結和以純文本輸入相同的鏈結之後進行超鏈結,將會顯示三次oEmbeddable項目(如果使用錨文本,則為兩次)(沒有多少人會這樣做)

未來版本

如果 oEmbed 失敗,實現 AutoEmbed.com API 回退措施(將是選項)
解決已知問題 😉

特別感謝

Viper007Bond - 創建了 WP_oEmbed 類別
BuddyPress.org - 這就是我們可以在 WordPress 上部署社交網路的原因

捐贈!

我經常在 buddypress.org 論壇上出現。我花了很多空閒時間免費幫助人們。

你可以選擇幾種方式來支持我:

贊助我的工作配樂! 音樂幫助我幫助你!一美元能讓我在 Amazon MP3、Amie Street 或 emusic.com 上購買新的音樂曲目!或者,如果你慷慨的話,你可以幫助我買一整張 CD!如果你選擇捐贈,請告訴我你想聽哪些歌曲或哪張 CD! :)
評分此外掛程式

原文外掛簡介

The easiest way to share your favorite content from sites like YouTube, Flickr, Hulu and more on your BuddyPress network.
oEmbed for BuddyPress utilizes WordPress’ own oEmbed class, so by default, you can share content from the following sites:

YouTube
Blip.tv
Vimeo
DailyMotion
Flickr
Hulu
Viddler
Qik
Revision3
Photobucket
Scribd
WordPress.tv

How do you use the plugin? Simple! Input any URL from one of the listed sites above into an activity update or forum post in BuddyPress.
When the update is posted, the URL automagically transforms into the embedded content.
Technical info
Because oEmbed for BuddyPress checks each link to see if it is oEmbeddable, for performance reasons, each link is cached in the database to reduce redundant oEmbed requests.
The cached entry is either the embed code (if the link is oEmbeddable) or the failed link.
Whitelist feature
By default, the plugin whitelists hyperlinks and URLs residing on the same domain as BuddyPress.
The cool thing is you can extend the whitelist.
For example, in an activity update, say you type in “http://www.google.com”, the plugin will cache that link in the database. Say you wanted to omit Google.com links from being cached.
Open bp-oembed-config.php in a text editor and add the following line to the end:
$bp_oembed['whitelist'][] = 'google.com';

This will whitelist all links from google.com.
Known issues

array_map() warning is displayed – this is a BuddyPress issue, which is fixed in the latest bleeding version of BuddyPress (https://trac.buddypress.org/changeset/2747)

When a forum post is deleted, the oEmbed forum post cache in bbPress isn’t deleted (appears to be a bbPress issue)

Hyperlinks with single quotes get mangled (if you’re a regex expert, I could use your help!)

eg. BuddyPress

Hyperlinking an oEmbeddable link and inputting the same link in plain text will show the oEmbeddable item three times (two times if using anchor text) (not many people will do this)

Future versions

Implement AutoEmbed.com API fallback if oEmbed fails (will be an option)
Fix known issues 😉

Special thanks

Viper007Bond – for creating the WP_oEmbed class
BuddyPress.org – the reason why we can all deploy a social network on WordPress

Donate!
I’m a regular on the buddypress.org forums. I spend a lot of my free time helping people – pro bono!
There are a couple of ways you can choose to support me:

Fund my work soundtrack! Music helps me help you! A dollar lets me buy a new tune off Amazon MP3, Amie Street or emusic.com! Or if you’re feeling generous, you can help me buy a whole CD! If you choose to donate, let me know what songs or which CD you want me to listen to! 🙂
Rate this plugin
Spread the gospel of BuddyPress

各版本下載點

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

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


0.5 | 0.51 | 0.52 | trunk |

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

  • EmbedPress – PDF Embed, PDF 3D FlipBook, Instagram Social Feeds, Google Docs, Vimeo, Wistia, YouTube Videos, Maps & Upload PDF Documents 》EMBEDPRESS - 從150多個來源嵌入任何東西 - YouTube、Google文件、Drive、地圖、Vimeo、Wistia、Spotify、Boomplay、PDF、PPT等,並通過Elementor、Block Edi...。
  • iframe 》, 高級 iFrame Pro, iframe, 捐贈, GitHub, , [iframe src=”http://www.youtube.com/embed/oDlbBy9vfgI” width=”100%” height=̶...。
  • Advanced iFrame 》看起來您正在尋找一個 WordPress 外掛 - Advanced iFrame Pro。這個外掛可讓您使用 iframe 包含其他網頁到您的網站中,同時具有隱藏和修改元素、自動調整高度...。
  • Insert Pages 》Insert Pages 可讓您使用 Shortcode API,將任何 WordPress 內容(例如,頁面、文章、自訂文章類型)嵌入其他 WordPress 內容。它還包括一個小工具,可將頁面...。
  • Compact WP Audio Player 》Compact WordPress Audio Player 插件是一個基於 HTML5 + Flash 混合的 WordPress 外掛,可以透過使用 shortcode 在 WordPress 文章或頁面中嵌入 mp3 音頻文...。
  • Advanced Responsive Video Embedder for Rumble, Odysee, YouTube, Vimeo, Kick … 》這是最佳的 WordPress 影片外掛嗎?支援幾乎你所能想像的一切,同時保持易用性和簡單性。這很可能是你需要的唯一一個外掛,來處理 WordPress 網站上的影片嵌...。
  • Code Embed 》注意: WordPress 5.0 及以上版本的使用者請查看常見問題以了解如何在區塊編輯器中使用此外掛。, Code Embed 外掛允許您在文章中嵌入程式碼(JavaScript 和 H...。
  • PDF.js Viewer 》透過 Gutenberg 區塊或簡單的縮略語,將 Mozilla 的 PDF.js Viewer 整合到您的網頁或文章中。PDF.js 是一個用於在瀏覽器中顯示 PDF 頁面的 JavaScript 函式庫...。
  • Embed PDF Viewer 》透過oEmbed或以區塊的方式,將來自媒體庫或其他地方的PDF嵌入至object標籤或Google Doc Viewer當作備用選項。URL只需要是可以讓全球使用的連結即可。, 靈感來...。
  • PDF viewer for Elementor & Gutenberg 》「PDFjs Viewer for Elementor」外掛是一個強大的工具,可輕鬆將 PDF 檔案嵌入到您的 Elementor 頁面建構器頁面中。它專為 Elementor 設計,因此您可以輕鬆在...。
  • PDF Viewer 》PDF Viewer 是一個 WordPress 外掛,允許您在網站上嵌入 PDF 文件,無需使用 Flash 外掛程式,僅依賴 JavaScript 來運作。這將使您的網站符合 HTML5 標準。此...。
  • Jotform oEmbed 》使用 Jotform 的 oEmbed 外掛程式,現在您可以輕鬆地在部落格文章中加入網路表單。安裝此外掛程式後,WordPress 將會辨識 Jotform 表單的 URL,以方便地嵌入...。
  • Disable Embeds 》這個外掛的功能:, , 防止他人嵌入您的網站。, 防止您嵌入非白名單網站。, 禁用所有與此功能相關的 JavaScript。, 從新版區塊編輯器中移除 WordPress 嵌入區...。
  • Videojs HTML5 Player 》Video.js HTML5 Player 是一個支持桌面和移動裝置視頻播放的用戶友好的外掛。它讓你輕鬆嵌入自主託管的視頻文件或使用 Video.js 庫的外掛視頻文件。, , Video...。
  • File Manager for Google Drive – Integrate Google Drive with WordPress 》使用這款最佳且使用者友善的「Google Drive」WordPress外掛,讓您的Google Drive與WordPress完美整合,體驗順暢的使用體驗。, , 輕鬆地在您的網站上管理和分...。

文章
Filter
Apply Filters
Mastodon