
內容簡介
### 總結:
Dailymotion Pro WordPress 外掛支援您的編輯工作流程,輔助嵌入 Dailymotion 影片。您可以從 Dailymotion 帳戶中匯入播放設定,輕鬆管理 WordPress 網站上的影片內容。
### 問題與答案:
1. **Dailymotion Pro WordPress 外插有哪些功能?**
- 透過 Gutenberg 進行無縫整合
- 支援 Classic Editor
- 支援 Shortcode 用於嵌入影片
- 每篇文章的影片設定
- 整合 Dailymotion 帳戶
- 支援公開和私人影片
- 播放清單嵌入
- 可自訂播放器設定
2. **使用此外插需要滿足哪些系統需求?**
- WordPress 版本需 6.0 或以上
- PHP 版本需 7.4 或以上
- 需要有效的 Dailymotion 帳戶(用於存取您的影片)
3. **如何在 Block Editor (Gutenberg) 中使用 Dailymotion 外插?**
- 創建或編輯文章/頁面使用 Block Editor
- 點擊「+」按鈕添加新區塊
- 搜尋「Dailymotion」並選擇 Dailymotion 區塊
- 點擊區塊中的「搜尋影片」按鈕
- 通過標題搜尋影片,或瀏覽您的影片/播放清單
- 選擇要嵌入的影片
- 在區塊設定面板中調整影片設定
- 儲存或發佈您的文章/頁面
4. **什麼是 Auth Key,以及它的重要性?**
- Auth Key 是 Dailymotion Pro 外插中的一個安全功能,用於保護您的 Dailymotion 帳戶憑證
- 它像是一個特別的密碼,當存儲在 WordPress 數據庫中時,用於加密您的敏感信息
- 透過 Auth Key,您的 API 憑證會被安全加密,防止未經授權訪問您的 Dailymotion 帳戶
5. **為什麼使用者可以信任 Dailymotion Pro 外插的安全性?**
- 外插預設使用 WordPress 內建的安全金鑰來保護信息
- 使用者無需進行特別操作即可啟用基本保護
- 您的憑證在保存時會自動加密
- 外插在幕後處理所有安全細節
6. **如果使用者想要更強大的安全性,他們該如何設定?**
- 可以使用線上安全金鑰生成器來生成安全隨機金鑰
- 在 wp-config.php 檔案中添加自訂金鑰
- 請妥善保存這些金鑰於安全地點,以確保外插安全性
7. **何為最佳實踐?**
- 使用獨特的金鑰,不要重複使用其他服務的密碼或金鑰
- 請確保 wp-config.php 的安全性,限制伺服器上對該檔案的訪問
- 定期更新您的金鑰,以保護您的外插安全性。
外掛標籤
開發者團隊
原文外掛簡介
The Dailymotion Pro WordPress plugin supports your editorial workflow by facilitating the embedding of Dailymotion videos. You can import playback settings from your Dailymotion account and easily manage video content across your WordPress site.
Features
Seamless integration with the WordPress Block Editor (Gutenberg)
Classic Editor integration
Shortcode support for embedding videos
Per-post video settings
Dailymotion account integration
Support for both public and private videos
Playlist embedding
Customizable player settings
Requirements
WordPress 6.4 or higher
PHP 7.4 or higher
Active Dailymotion account (for accessing your videos)
Usage
Block Editor (Gutenberg)
Create or edit a post/page using the Block Editor
Click the “+” button to add a new block
Search for “Dailymotion” and select the Dailymotion block
Click the “Search Videos” button in the block
Search for a video by title, or browse your videos/playlists
Select the video you want to embed
Adjust video settings as needed in the block settings panel
Save or publish your post/page
Classic Editor
Create or edit a post/page using the Classic Editor
Click the “Dailymotion” button in the editor toolbar
Search for a video by title, or browse your videos/playlists
Select the video you want to embed
Click “Insert” to add the video to your post/page
Save or publish your post/page
Using Shortcodes
You can manually embed Dailymotion videos using the [dm-player] shortcode:
`
[dm-player videoid=”VIDEO_ID” videotitle=”Video Title”]
`
Shortcode attributes:
– videoid: The ID of the public Dailymotion video
– privatevideoid: The ID of a private Dailymotion video
– playlistid: The ID of a Dailymotion playlist
– videotitle: The title of the video (displayed as caption)
Example:
[dm-player videoid="x7zxy9p" videotitle="My Awesome Video"]
Configuration
Per-post Video Settings
You can customize video settings on a per-post basis:
Edit a post/page that contains a Dailymotion video
Click the “Video Settings” button in the sidebar of the Gutenberg editor
Adjust settings like Player ID, Mute, Video Heading, and Video Title
Global Plugin Settings
To configure global plugin settings:
Go to Dailymotion Pro > Plugin Settings in your WordPress admin
Adjust default settings for Player ID, mute, video heading, and video title display
Auth Key
What is the Auth Key?
The Auth Key is a security feature in the Dailymotion Pro plugin that protects your Dailymotion account credentials. Think of it as a special password that encrypts your sensitive information when it’s stored in your WordPress database.
Why is it Important?
When you connect your WordPress site to Dailymotion, you need to store API credentials (similar to a username and password). The Auth Key ensures this information is securely encrypted, preventing unauthorized access to your Dailymotion account.
How it Works for Users
Automatic Protection
By default, the Dailymotion Pro plugin uses WordPress’s built-in security keys to protect your information. This means:
You don’t need to do anything special to enable basic protection
Your credentials are automatically encrypted when saved
The plugin handles all the security details behind the scenes
Enhanced Security (Optional)
For users who want extra security, you can set up custom security keys:
Generate secure random keys: Use an online secure key generator
Add the keys to your wp-config.php file: Add the following lines near the other WordPress security keys:
php
define('DM_PRO__AUTH_KEY', 'your-custom-random-key-here');
define('DM_PRO__NONCE_KEY', 'another-custom-random-key-here');
Save the file: Make sure to keep a backup of these keys in a secure location
Best Practices
Use unique keys: Don’t reuse passwords or keys from other services
Keep your wp-config.php secure: Restrict access to this file on your server
Update keys periodically: Consider changing your custom keys every few months for maximum security
Backup before making changes: Always backup your site before editing configuration files
User roles
We follow the roles and capabilities documentation provided by the WordPress team.
Super admin
As a Super Admin, you can see and use the dailymotion plugin (all options: log in, credentials, settings) and search box/embed options
Administrator
As an Admin, you can see and use the dailymotion plugin (all options: log in, credentials, settings) and search box/embed options
Editor
As an Editor, you can see and use the dailymotion plugin (all options: log in, credentials, settings) and search box/embed options
Author
As an Author, you can see and use the dailymotion plugin (limited options: log in, manual embed settings access) and search box/embed options
Contributor
As a Contributor, you can see and use the dailymotion plugin (limited options: log in, manual embed settings access) and search box/embed options
Source Code and Development
This plugin includes minified JavaScript files that are built from TypeScript source code. In accordance with WordPress plugin guidelines, the source code is included in the plugin package in the src directory.
Build Tools
The plugin uses the following build tools:
– npm: For JavaScript dependency management and build scripts
– webpack: For bundling and minifying JavaScript files
– TypeScript: For type-safe JavaScript development
To build the plugin from source:
1. Install dependencies: npm install
2. Build the JavaScript files: npm run build
For more information about the development process, please visit our GitHub repository.
External Service
This plugin connects to the Dailymotion API as an external service. The API is used for:
Searching videos: Search for both public and private content hosted on Dailymotion.
Private content access: To access private videos, the plugin requires storing an API Key and API Secret securely in your WordPress installation.
Video information retrieval: The API also provides video metadata (title, thumbnail, etc.) which is used to embed videos seamlessly into the WordPress editor.
By using this plugin, you acknowledge that interactions with the Dailymotion API are subject to Dailymotion’s own policies and service conditions.
Terms of Use
Privacy Policy
Support
For support, please contact the plugin developers through the official support channels or visit the plugin’s documentation website at Dailymotion Pro GitHub Issue.
