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

首頁外掛目錄 › YouList – YouTube playlist shortcode
WordPress 外掛 YouList – YouTube playlist shortcode 的封面圖片
300+
安裝啟用
★★★★★
5/5 分(5 則評價)
4801 天前
最後更新
問題解決
WordPress 3.0+ v1.0.6 上架:2012-07-15

內容簡介

此外掛新增短碼 [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 影片

外掛標籤

開發者團隊

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

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

原文外掛簡介

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

延伸相關外掛

文章
Filter
Mastodon