YouTube Player Editor

Overview

The YouTube Player Editor plugin allows you to manage and display YouTube videos and playlists inside your CMSimple_XH website. It includes an editor for adding and removing video's and a player interface that reads from a playlist file.

Installation

  1. Unzip youtube_player_editor.zip.
  2. Upload the folder youtube_player_editor to your /plugins/ directory.
  3. Ensure the structure looks like this:
    plugins/
    └── youtube_player_editor/
        ├── admin.php
        ├── editor.php
        ├── player.php
        ├── functions.php
        ├── get_title.php
        ├── playlist.json
        ├── playlist_backup.json
        ├── index.php
       ├── help/ └── help.htm

    Ensure the webserver has write permissions for playlist.json and playlist_backup.json.

Usage

To display the editor interface on a CMSimple_XH page, insert:

{{{youtube_player('editor.php')}}}

To show only the player:

{{{youtube_player('player.php')}}}

You can use different files as arguments depending on what you need to show.

Managing Videos

  1. Open the page containing {{{youtube_player('editor.php')}}}.
  2. Add YouTube URLs or IDs, reorder videos, and save.
  3. The playlist.json file will be updated automatically.

Troubleshooting

Problem Cause Solution
Template breaks File outputs HTML headers Remove <html> or <body> tags
Playlist not saving No write permissions Set file to writable (chmod 664 or 666)
No videos displayed Invalid URLs Check the YouTube links

Version Info

  • Plugin: YouTube Player Editor
  • Version: 1.0
  • CMSimple_XH: 1.8+
  • License: Free for personal and educational use

Player Example 

Keyword list: Youtube_player_editor, no