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

oEmbed for Comments

外掛說明

It’s the same oEmbed functionality you know and love from your WP 2.9 post editor, now enabled for comments!

Your comments can now embed 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 a comment.

When the comment is posted and approved, the URL automagically transforms into the embedded content.

Blacklist feature

This feature allows you to blacklist websites from being processed by oEmbed.

For example, say I wanted to block YouTube links from being embedded.

Open oembed-config.php in a text editor and add the following line to the end:

$oembed_comments['blacklist'][] = 'youtube.com';

This will blacklist all links from YouTube.com from being parsed.

Known issues

  • 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)

Special thanks

Donate!

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

安裝方式

This plugin requires at least WordPress 2.9

  1. Upload the plugin folder to the /wp-content/plugins/ directory.
  2. Login to the WordPress dashboard and navigate to “Plugins > Installed”. Activate the “oEmbed for Comments” plugin.

常見問題集

What is oEmbed

oEmbed is a simple API that allows a website to display embedded content (such as photos or videos) when a user posts a link to that resource. It was designed to avoid copying and pasting HTML from the media you wish to embed.

What is oEmbed for Comments?

oEmbed for Comments utilizes WordPress’ own oEmbed class, so by default, you can share content from the following sites in your comments:

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

The plugin allows you to input any URL from one of the listed sites above into a comment.

When the comment is posted and approved, the URL automagically transforms into the embedded content. There is no GUI.

How do I extend WordPress’ oEmbed provider list?

By default, you can only embed content from websites listed on WordPress’ internal whitelist. This is to prevent the embedding of malicious content from untrustworthy websites.

To add an oEmbed provider, read the following article for more info:
https://codex.wordpress.org/Embeds#Adding_Support_For_An_oEmbed-Enabled_Site

The other option is you can override WordPress’ internal whitelist and enable any site that is oEmbeddable by downloading and activating Viper007Bond’s Enable oEmbed Discovery plugin.
You should only activate the oEmbed Discovery plugin if you trust your user base. You’ve been warned.

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈oEmbed for Comments〉的開發相關工作。

參與者

將〈oEmbed for Comments〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

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

變更記錄

0.6

  • First version!
  • Basically a port of my oEmbed for BuddyPress plugin 😉