Linux 软件免费装
Banner图

My YouTube Channel

开发者 urkekg
techwebux
更新时间 2023年5月28日 14:53
捐献地址: 去捐款
PHP版本: 7.4 及以上
WordPress版本: 6.2
版权: GPLv3
版权网址: 版权信息

标签

widget video channel youtube playlist

下载

3.23.3 3.23.2 3.0.11.8 3.0.12 3.0.12.1 3.0.11.6 3.0.11.7 3.23.0 3.23.4 3.23.1

详情介绍:

Add My YouTube Channel widget to the widget area or shortcode to post/page content, set Channel ID or Playlist ID, chose resource to use and keep defaults for all other options. And voila! You will get the latest video from chosen YouTube channel or playlist. IMPORTANT My YouTube Channel does not support Live Streams and does not have Gutenberg Block. Use Shortcode Block or Classic Block to insert shortcode to page/post content. If you like our plugin and find it useful, please write a review and rate it. For a manually picked set of videos from YouTube, check out Easy YouTube Gallery. Features Requirements For a fully functional plugin, PHP 7.4 or newer has required! If you use older PHP, we highly recommend you request from your developer, server support or hosting company to update PHP to a secure version. Styling Use Customizer, style.css from the child theme or Head & Footer Code plugin to custom style and tweak the look and feel of the My YouTube Channel blocks. You can utilise the following classes: Known Issues If WordFence or other malware scan tool detect My YouTube Channel file youtube-channel.php as a potential risk because base64_encode() and base64_decode() functions, remember that we use this two functions to store and restore JSON feeds to transient cache, so potential detection is false positive. 鸣谢 Shortcode Along with Widget, you can add My YouTube Channel block inline by using shortcode [youtube_channel]. Default plugin parameters will be used for shortcode, but you can customize all parameters per shortcode. General Settings Video Settings Content Layout Link to Channel Please note, to enhance plugin functionality, we can change or deprecate some shortcode parameters in future.

安装:

Use Plugins / Add New in WordPress or install the plugin manually:
  1. With your FTP program (eg. FileZilla) upload content of unzipped youtube-channel directory to the wp-content/plugins/ directory on the server.
  2. Activate the plugin on the Plugins / Installed Plugins page in WordPress
  3. Enter YouTube Data API Key on Settings / My YouTube Channel page.
  4. Add My YouTube Channel widget to the sidebar
  5. Set Channel ID in plugin settings, widget or shortcode
If you have to upgrade manually, repeat the installation steps and re-enable the plugin. YouTube Data API Key To make My YouTube Channel work you have to generate YouTube Data API Key v3 and insert it to General plugin settings. Learn more about Obtaining authorization credentials and for detailed instructions on how to generate your own API Key follow instructions below.
  1. Visit Google Cloud Platform.
  2. If you don't have any project, create a new one (click on CREATE PROJECT). Set the Project name so you can recognize it later (for example My WordPress Website). Then click the CREATE button and wait until Google create the project.
  3. On the popup click SELECT PROJECT and from the left-hand side Navigation menu go to APIs and Services -> Enabled APIs and services
  4. Search for YouTube Data API v3 and click on it, then click the ENABLE button.
  5. From the left-hand side Navigation menu go to APIs and services -> Credentials.
  6. From the + CREATE CREDENTIALS drop-down menu select API key
  7. As soon as the API key gets created -> CLOSE popup.
  8. Click on newly created key in the API keys table
  9. On Edit API key screen define recognizable key Name (eg. YouTube API key for my website)
  10. Within section Set an application restrictio select option IP addresses
  11. Under section IP address restrictions click ADD -> enter your server IP (make sure you enter proper IP or you'll get Oops, something went wrong. error message) -> click DONE.
  12. Under section API restrictions select option Restrict key -> click Select APIs dropdown -> chose option YouTube Data API v3 -> OK
  13. When you finish, SAVE changes
  14. On API keys table click SHOW KEY and then Copy to Clipboard icon on the right hand side of the Your API key field
  15. In WordPress go to Settings -> My YouTube Channel -> General and paste API key in to field YouTube Data API Key.
Don't forget to check and update Channel ID in the plugin's General settings, Widgets and/or shortcodes. You can get Channel ID from the page Account Advanced while you're logged in to your YouTube account. [youtube http://www.youtube.com/watch?v=wOqkfkNhOUE] [youtube http://www.youtube.com/watch?v=qaLqWi4-9jI] [youtube http://www.youtube.com/watch?v=u5TnGBVoG9c]

屏幕截图:

  • My YouTube Channel customized widget settings
  • My YouTube Channel customized widget on website
  • TinyMCE form to easy configure My YouTube Channel shortcode for content
  • Shortcode in Classic block
  • Shortcode rendered on website

升级注意事项:

3.23.0 An XSS vulnerability is fixed, update ASAP!

常见问题:

How to get that YouTube Data API Key?

Please folllow Installation instructions.

The plugin does not work with a premium theme or clash with another premium plugin

We cannot afford licenses for various premium themes and plugins to keep the fee plugin My YouTube Channel working with each of them. If My YouTube Channel clash with a premium theme or plugin, we can help you only if you help us. Ask theme/plugin author for approval to provide a package to us for debugging on local development domain youtube-channel.wp. Upload the installation package to your cloud drive (Dropbox, One Drive, Google Drive, iCloud, WeTransfer or other) and provide a share link to us by contact form.

I set everything correct but receiving 'Oops, something went wrong' message

As a logged-in administrator, you will see an error explanation. Known issues:

YTC ERROR: Please check did you set the proper Channel ID. You choose to show videos from the channel, but YouTube does not recognize MyCoolLegacyName as an existing or public channel.
Do what the message says - check and correct Channel ID in default settings/widget/shortcode.
YTC ERROR Check YouTube Data API Key restrictions, empty cache if enabled by appending in the browser address bar parameter ?ytc_force_recache=1
  1. Try to remove restrictions by referer or IP in your YouTube Data API Key and refresh the page after a couple of minutes.
  2. If that does not help, please try to create a new API Key for Server w/o restrictions (not to regenerate the existing one).

How to use Google APIs Explorer to verify YouTube feeds?

If there is no YTC ERROR code in HTML source, visit Google API Explorer and append to the end of URL one of resource ID’s based on your Channel ID:

  • for videos from channel replace UC with UU in Channel ID (so UCRPqmcpGcJ_gFtTmN_a4aVA becomes UURPqmcpGcJ_gFtTmN_a4aVA)
  • for videos from Playlist simply use Playlist ID (like PLEC850BE962234400 or RDMMjUe8uoKdHao)
Note that both resources are playlists (including uploads to channel), so append mentioned ID to field playlistId (not to id), and click Execute button at the bottom of that page.
  1. If you receive some error in results, tune parameters in APIs Explorer.
  2. If there is no error while the response is empty, and you are sure that there are public videos in selected resource – contact Google Support.
  3. If there are video results but not displayed with My YouTube Channel plugin – check topic Read before you post support question or report a bug and then start new support topic.

What this YTC ERROR/HTTP Error means?

You will be able to reproduce HTTP Error w/o WordPress if you have SSH access to the server hosting your website. Log in to shell and run the following command (or ask your developer to do so): curl https://www.googleapis.com/youtube/v3/playlistItems You will get an HTTP Error from the curl command or response like the one below. { "error": { "errors": [ { "domain": "global", "reason": "required", "message": "Required parameter: part", "locationType": "parameter", "location": "part" } ], "code": 400, "message": "Required parameter: part" } } Known HTTP Errors: error:0D0890A1:asn1 encoding routines:ASN1_verify:unknown message digest algorithm Server tool curl has built with an older version of OpenSSL that does not support certificates signed with sha256-With-RSA-Encryption. It requires at least OpenSSL 0.9.8o for the total management of SHA256. Please contact your server administrator or hosting provider to help you with this issue. Problem with the SSL CA cert (path? access rights?) Yet another server issue, not related to My YouTube Channel nor WordPress. Please restart Apache (or Nginx) server. If that does not fix the issue, restart the entire server. Or contact server support to help.

Where to find correct Channel ID and User ID?

Login to your YouTube account and visit page Account Advanced. Channel ID is YouTube Channel ID value composed of mixed characters starting with UC.

What is Handle custom URL?

Check out Customized URL overview article.

Where to find Playlist ID?

Manually extract Playlist ID from YouTube playlist URL. Find string after &list= parameter in URL. Playlist ID can contain lowercase and uppercase letters, dash and underscore characters. Regular playlists starts with uppercase letters PL (like PLEC850BE962234400), while Playlist ID for YouTube mixes start with uppercase RD (eg. RDCfMMlT8Lyns).

How to force embedding video with better audio quality?

YouTube provide better videos if the height of the embedded video is 320 or more. If you use a small YTC video size, 240p will be loaded instead. It's not possible to force 720p in tiny YTC.

I enabled option Hide YT Logo and YouTube logo is still visible

The modestbranding option does not work for all videos. A lot of videos still have the YouTube logo in the control bar. We recommend enabling the option Hide player controls instead. The logo appears in the upper right corner on hover or when the video pauses. Read more here

How I can achieve a 'wall' layout with one featured thumbnail?

Start with following shortcode combination: [youtube_channel num=7 responsive=1 class=ytc_wall_1-6 resource=2 random=1] Then add custom CSS code to Customizer, or child theme style.css or to Head & Footer Code plugin: .youtube_channel.ytc_wall_1-6 .ytc_video_container { padding: 5px; box-sizing: border-box; max-width: 33.333%; } .youtube_channel.ytc_wall_1-6 .ytc_video_container.ytc_video_1 { max-width: 100%; } @media screen and (max-width: 768px) { .youtube_channel.ytc_wall_1-6 .ytc_video_container:not(.ytc_video_1) { max-width: 50%; } } @media screen and (max-width: 480px) { .youtube_channel.ytc_wall_1-6 .ytc_video_container:not(.ytc_video_1) { max-width: 100%; } } That will show thumbnails for seven random videos from the default playlist defined in plugin settings: one full-width thumbnail and six remaining thumbnails distributed to 3 columns on wide screens, two columns under 768px and a single thumbnail per row under 480px.

How I can add pagination (to Dynamic Wall view)?

My YouTube Channel does not support pagination.

How to reduce the size thumbnail Play button or remove it?

Resize thumbnail play button by adding following custom CSS to Customizer, or child theme style.css or to Head & Footer Code plugin: .youtube_channel .ytc_thumb>span:before { transform: scale(.65); } To remove (hide) thumbnail play button, use following custom CSS: .youtube_channel .ytc_thumb>span:before { display: none !important; }

Your plugin does not support THIS or THAT

Feel free to submit a feature request by creating a new topic on Community forum. Make sure to prefix Topic Title with [Feature Request] ... Please note, we cannot guarantee an ETA to implement the requested feature. If you are in a hurry, please find a developer to do it for you or request a quote from us.

更新日志:

3.23.4 (20230223) 3.23.3 (20230212) 3.23.2 (20230112) 3.23.1 (20230111) 3.23.0 (20230111) 3.0.12.1 (20210227) 3.0.12 (20201107)