[WordPress] 外掛分享: Twitch TV Embed Suite

首頁外掛目錄 › Twitch TV Embed Suite
WordPress 外掛 Twitch TV Embed Suite 的封面圖片
100+
安裝啟用
★★★★
4/5 分(9 則評價)
3561 天前
最後更新
問題解決
WordPress 2.0.9+ v2.1.0 上架:2013-07-06

內容簡介

Twitch TV Embed Suite 是一個外掛,可以讓您快速且輕鬆地在 WordPress 網站上嵌入 Twitch TV 直播串流與聊天室。 這個外掛提供了易於配置的設置區域,允許使用者在將串流放置於網站上之前預覽串流。

指定串流寬度和高度
決定是否顯示聊天室
指定聊天室寬度和高度

簡碼用法

要在您的文章、頁面或小工具中新增串流,請使用以下程式碼,確保您設置了 Twitch 頻道名稱、高度和寬度,如果與默認設置不同:
[plumwd_twitch_stream channel=”twitchchannelname” height=”400″ width=”600″]
要在 WordPress 主題中新增串流,請在您的模板中使用以下程式碼:echo do_shortcode('[plumwd_twitch_stream channel="twitchchannelname" height="400" width="600"]');
簡碼選項為:
channel – Twitch 頻道名稱
width – 寬度,可用像素或百分比。 如使用百分比,必須使用%符號。
height – 高度,可用像素或百分比。 如使用百分比,必須使用%符號。

使用所見即所得編輯器中的圖示插入到文章或頁面中。

要在您的文章、頁面或小工具中新增 Twitch 聊天室,請使用以下程式碼,確保您如同串流簡碼一樣設置了 Twitch 頻道名稱、高度和寬度:
[plumwd_twitch_chat channel=”twitchchannelname” height=”400″ width=”600″]

要在 WordPress 主題中新增聊天室,請在您的模板中使用以下程式碼:echo do_shortcode('[plumwd_twitch_chat channel="twitchchannelname" height="400" width="600"]');
簡碼選項為:
channel – Twitch 頻道名稱
width – 寬度,可用像素或百分比。 如使用百分比,必須使用%符號。
height – 高度,可用像素或百分比。 如使用百分比,必須使用%符號。
使用所見即所得編輯器中的圖示插入到文章或頁面中。

1.要將 Twitch TV 直播串流列表新增到您的文章、頁面或小工具中,請使用以下簡碼:
[plumwd_twitch_streamlist channel=”twitchchannelname” display=”vertical” videonum=”5″]
2. 要在您的 WordPress 主題中新增 Twitch TV 直播串流外掛程式碼,請在您的模板中使用以下簡碼:
echo do_shortcode(‘[plumwd_twitch_streamlist channel=”twitchchannelname” display=”vertical” videonum=”5″]’);

這個外掛也支援數個簡碼屬性,以下列出屬性及其目的:

channel -> 必須設定此項目,否則將無法顯示,使用方法:
[plumwd_twitch_streamlist channel=”plumwd”]
videonum -> 顯示串流的數量。將按最新到最舊的順序返回最新的串流。 使用方法:
[plumwd_twitch_display channel=”plumwd” videonum=”4″]
display -> 接受兩種不同的選項:horizontal 或 vertical。 使用方法:
[plumwd_twitch_streamlist channel=”plumwd” display=”horizonal”]

外掛標籤

開發者團隊

⬇ 下載最新版 (v2.1.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Twitch TV Embed Suite」→ 直接安裝(推薦)

原文外掛簡介

Twitch TV Embed Suite is a plugin that allows for fast and easy embedded of twitch tv stream and chat on your WordPress site. The plugin features an easy to configure
settings area that allows the user to preview the stream prior to placement on your site.

Specify stream width and height
Decide whether or not to show chat
Specifiy chat width and height

Shortcode Usage

To add a stream to your posts, pages, or widgets use the following code. Ensuring you set the Twitch channel name, height, and width if differing from the default settings:
[plumwd_twitch_stream channel=”twitchchannelname” height=”400″ width=”600″]
To add a stream to your WordPress theme use the following code inside your template: echo do_shortcode('[plumwd_twitch_stream channel="twitchchannelname" height="400" width="600"]');
Shortcode options are:
channel – twitch channel name
width – width in pixels or percent. If using percent must use % sign.
height – height in pixels or percent. If using percent must use % sign.

Use the icon from the WYSIWYG editor to insert into a post or page.

To add twitch chat to your posts, pages, or widgets use the following code. Ensure you set the Twitch channel name, height, and width like with the stream shortcode.
[plumwd_twitch_chat channel=”twitchchannelname” height=”400″ width=”600″]

To add chat to your WordPress theme use the following code inside your template: echo do_shortcode('[plumwd_twitch_chat channel="twitchchannelname" height="400" width="600"]');
Shortcode options are:
channel – twitch channel name
width – width in pixels or percent. If using percent must use % sign.
height – height in pixels or percent. If using percent must use % sign.
Use the icon from the WYSIWYG editor to insert into a post or page.

1.To add a Twitch TV stream list to your posts, pages, or widgets use the following shortcode:
[plumwd_twitch_streamlist channel=”twitchchannelname” display=”vertical” videonum=”5″]
2. To add the Twitch TV stream plugin to your WordPress theme use the following shortcode inside your template:
echo do_shortcode(‘[plumwd_twitch_streamlist channel=”twitchchannelname” display=”vertical” videonum=”5″]’);
The plugin also supports several attributes for the shortcode, below is a listing of the attributes and what their purpose is:

channel -> this must be set or the feed will not display. Usage:
[plumwd_twitch_streamlist channel=”plumwd”]
videonum -> The number of streams to display. Will return the most recent streams in order from newest to oldest. Usage:
[plumwd_twitch_display channel=”plumwd” videonum=”4″]
display -> accepts two different options: horizontal or vertical. Usage:
[plumwd_twitch_streamlist channel=”plumwd” display=”horizonal”]

延伸相關外掛

文章
Filter
Apply Filters
Mastodon