[WordPress] 外掛分享: YouList – YouTube playlist shortcode

WordPress 外掛 YouList – YouTube playlist shortcode 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「YouList – YouTube playlist shortcode」是 2012-07-15 上架。
  • 目前有 300 個安裝啟用數。
  • 上一次更新是 2013-01-24,距離現在已有 4483 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 3.0 以上版本才可以安裝。
  • 有 5 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

birgire |

外掛標籤

embed | youtube | playlist | shortcode | youtube playlist |

內容簡介

此外掛新增短碼 [youlist],可輕鬆地將下列 YouTube™ 播放清單嵌入至單一播放器中:

播放清單 ID(清單 ID 前綴為「PL」)
逗號分隔的影片 ID 清單
使用者的最愛影片
使用者上傳的影片
搜尋查詢

實際範例

1.0.6 版新功能

顯示具隨機性的播放清單,藉由新增屬性「randompid」
透過新增 apply_filters 針對輸出、樣式、類別和來源進行修正
修正問題

1.0.5 版新功能

啟用 NoCookies mode
啟用 HTTPS 協定
播放特定畫質的影片 (例如 hd720)
啟用 WMode 以處理 Z-Index 問題

使用範例

嵌入附有縮圖清單的播放清單
[youlist pid=”PL3FF15AA7ED356D9F”]

嵌入附有縮圖的三個影片(逗號分隔之影片 ID 清單):
[youlist vid=”ZF_K8D414-Y,sFHXWoawnt0,E2uOGOqIyC4″]

嵌入不附有縮圖的三個影片:
[youlist vid=”ZF_K8D414-Y,sFHXWoawnt0,E2uOGOqIyC4″ showinfo=”0″]

嵌入自搜尋「希格斯玻色子」之播放清單
[youlist search=”higgs boson” width=”600″ height=”400″]

嵌入隨機播放清單
[youlist randompid=”PL3FF15AA7ED356D9F, PL9AEE7FF9E83DEA62, PL2B8DB1BD4364033F”]

嵌入使用者「mismag822」的所有上傳影片之播放清單
[youlist uid=”mismag822″ listtype=”user_uploads”]

嵌入使用者「mismag822」的所有最愛影片之播放清單
[youlist uid=”mismag822″ listtype=”user_favorites”]

嵌入自訂樣式之使用者播放清單
[youlist pid=”PL3FF15AA7ED356D9F” style=”width:300px;height:400px;z-index:1;”]

嵌入支援之所有屬性的使用者播放清單(預設值如下):
[youlist
uid=”mismag822″
randompid=””
showinfo=”1″
width=”680″
height=”480″
class=”youlist”
autohide=”2″
autoplay=”0″
disablekb=”0″
listtype=”user_uploads”
theme=”dark”
modestbranding=”1″
controls=”1″
color=”red”
fs=”1″
rel=”1″
start=”0″
loop=”0″
iv_load_policy=”1″
version=”3″
style=””
vq=””
nocookie=”0″
https=”0″
wmode=””
parameters=””
]

此外掛使用觀念

可用於顯示廣告影片前或後的片段
能夠在主要影片前加入個人宣傳卡
可用於收集課程、教學、音樂片段
可用於個人 YouTube™ 播放清單
可用於收看你喜愛的 YouTube 影片

原文外掛簡介

This plugin adds the shortcode [youlist] so you can easily embed YouTube™ playlist defined by

playlist id (PL in front of the playlist id)
comma seperated video ids list
user favorites
user uploads
search query

in a single YouTube™ player.
Live demo
New in version 1.0.6

show random playlists with the new attribute ‘randompid’
added apply_filters for output, style, class and src
bug fix

New in version 1.0.5

enable nocookies
enable the https protocol
play videos in a specific quality (fx. hd720)
enable wmode to handle z-index issues.

Usage Examples
To embed a playlist with thumbnails
[youlist pid=”PL3FF15AA7ED356D9F”]
To embed three videos with thumbnails (comma seperated video id list):
[youlist vid=”ZF_K8D414-Y,sFHXWoawnt0,E2uOGOqIyC4″]
To embed three videos without thumbnails:
[youlist vid=”ZF_K8D414-Y,sFHXWoawnt0,E2uOGOqIyC4″ showinfo=”0″]
To embed a playlist from the search string “higgs boson”
[youlist search=”higgs boson” width=”600″ height=”400″]
To embed a random playlist
[youlist randompid=”PL3FF15AA7ED356D9F, PL9AEE7FF9E83DEA62, PL2B8DB1BD4364033F”]
To embed a playlist for all uploaded videos for the user “mismag822″
[youlist uid=”mismag822″ listtype=”user_uploads”]
To embed a playlist for all favorite videos for the user “mismag822″
[youlist uid=”mismag822″ listtype=”user_favorites”]
To embed a playlist width your own custom style
[youlist pid=”PL3FF15AA7ED356D9F” style=”width:300px;height:400px;z-index:1;”]
To embed a user playlist with all the supported attributes (default values shown):
[youlist
uid=”mismag822″
randompid=””
showinfo=”1″
width=”680″
height=”480″
class=”youlist”
autohide=”2″
autoplay=”0″
disablekb=”0″
listtype=”user_uploads”
theme=”dark”
modestbranding=”1″
controls=”1″
color=”red”
fs=”1″
rel=”1″
start=”0″
loop=”0″
iv_load_policy=”1″
version=”3″
style=””
vq=””
nocookie=”0″
https=”0″
wmode=””
parameters=””
]
Ideas for how to use this plugin

You can use it to display ad-video before or after the main video
You can have your own short trailer before the main video
You can collect lessons/tutorials/music videos
You can use it for your YouTube™ playlist
You can watch your friends favourites videos
You can collect videos for your kid and watch it on your site
… etc …

Shortcode Parameters
The youList-shortcode is a wrapper for most of the YouTube™ iframe parameters described here:
https://developers.google.com/youtube/player_parameters
iframe parameters:

width [integer] – iframe width in pixels
height [integer] – iframe height in pixels
class [string] – iframe css classname
style [string] – iframe css custom style
parameters [string] – custom source parameters (¶m1=value1&…)

youtube parameters:

pid [string] – YouTube playlist ID
uid [string] – YouTube user ID)
vid [string] – Comma seperated YouTube Videos ID list
randompid [string] – YouTube random playlist ID, from a comma seperated PID’s list
listtype [playlist|user_uploads|search] – YouTube listtype
search [string] – YouTube search string)
theme [dark|light] – Dark or light control bar
modestbranding [0|1] – Prevent the YouTube logo from displaying in the control bar
showinfo [0|1] – Display thumbnail images for the videos in the playlist
autohide [0|1|2] – Hide the video controls automatically after a video begins playing
autoplay [0|1] – The initial video will autoplay when the player loads
disablekb [0|1] – Disable the player keyboard controls
controls [0|1|2] – Display the video player controls
color [red|white] – The color in the video progress bar
fs [0|1] – Display the fullscreen button
rel [0|1] – Show related videos when playback of the initial video ends
start [integer] – Play the video at the given number of seconds from the start of the video
loop [0|1] – Play the entire playlist and then start again at the first video
iv_load_policy [1|3] – Show video annotations
version [2|3] – AS player version
https [0|1] – Enable the https protocol
nocookie [0|1] – No cookies thank you
vq [small|medium|large|hd720|hd1080] – Change video quality

各版本下載點

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

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


1.0.1 | 1.0.2 | 1.0.3 | 1.0.4 | 1.0.5 |

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

  • WP Shortcodes Plugin — Shortcodes Ultimate 》Shortcodes Ultimate 是一個全面的視覺與功能性元素收集,您可以在文章編輯器、文字小工具甚至是範本檔案中使用。使用 Shortcodes Ultimate,您可以輕鬆地建...。
  • MW WP Form 》MW WP Form 可以使用 shortcode 創建帶有確認畫面的郵件表單。, , 使用 shortcode 創建表單, 可以使用確認頁面。, 頁面可以使用相同的 URL 或個別的 URL 進行...。
  • Shortcoder — Create Shortcodes for Anything 》Shortcoder 外掛可讓您建立 HTML、JavaScript、CSS 和其他代碼片段的自訂捷徑。現在,這些捷徑可以在文章/頁面中使用,並且該片段將取代其位置。, ✍ 輕鬆建立...。
  • Display Posts – Easy lists, grids, navigation, and more 》Display Posts 讓您輕鬆地列出網站上的所有內容。首先在內容編輯器中新增此短碼,以列出最近的文章清單:, [display-posts], , 按類別篩選, 若只想顯示特定類...。
  • Widget Shortcode 》這個短碼需要小工具的ID,但不需要猜測,外掛會為你生成代碼。如果你想要覆蓋小工具的標題,你可以使用 "title" 參數:, [widget id=”text-1″...。
  • Woody code snippets – Insert Header Footer Code, AdSense Ads 》需要專業的支援嗎?, 免費獲取支援, 開始獲得高級支援, , 停止反覆使用相同的內容!, 停止插入 function.php 中的 PHP 代碼!, 停止將 Google Analytics、Yan...。
  • Column Shortcodes 》此外掛提供簡單易用的短碼,在您的文章或頁面中輕鬆創建欄位。有時候,您只需要將網頁切成不同的欄位。使用此外掛,您只需選擇一個欄位的短碼,便可將欄位加...。
  • amr shortcode any widget 》使用shortcode將小工具或多個小工具或整個小工具區域(側邊欄)插入到頁面中。, 首先在正常的側邊欄中設置小工具。 檢查它是否正常運作。, 然後將所選小工具...。
  • Shortcode in Menus 》此外掛讓你可以在 WordPress 導覽選單中使用簡碼,以便可以動態生成連結。也可以讓你在導覽選單中添加完整的 HTML 段落。, 使用方法, 查看截圖。, 另外,查看...。
  • Sidebar Widgets by CodeLights 》❗ 很抱歉,由於 SiteOrigin 的 widgets API 完全更改,CodeLights 不再支援 SiteOrigin Page Builder 的原生使用。解決方案:您仍然可以在純文字編輯器中創...。
  • Advanced iFrame 》看起來您正在尋找一個 WordPress 外掛 - Advanced iFrame Pro。這個外掛可讓您使用 iframe 包含其他網頁到您的網站中,同時具有隱藏和修改元素、自動調整高度...。
  • Insert Pages 》Insert Pages 可讓您使用 Shortcode API,將任何 WordPress 內容(例如,頁面、文章、自訂文章類型)嵌入其他 WordPress 內容。它還包括一個小工具,可將頁面...。
  • Shortcodes by Angie Makes 》Shortcodes by Angie Makes 外掛為您的 WordPress 主題新增一系列易於使用的短碼,這些短碼與 Angie Makes WordPress 主題 完美搭配。, 範例, 請到此查看這些...。
  • Team Members 》這個外掛會為管理員面板增加一個「團隊」區塊,讓您可以輕鬆地在網站上展示您的員工/職員。您可以快速地將成員加入您的團隊,加入他們的照片、職位、個人簡介...。
  • Post Snippets – Custom WordPress Code Snippets Customizer 》, 建立自訂短碼和可重複使用的內容,並將它們插入到您的文章和頁面中。, , 此外掛讓您建立 HTML、PHP 程式碼或常用文字片段的庫。在文章和頁面中,您可以使用...。

文章
Filter
Mastodon