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
- Unzip
youtube_player_editor.zip. - Upload the folder
youtube_player_editorto your/plugins/directory. - 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.phpEnsure the webserver has write permissions for
├── help/ └── help.htmplaylist.jsonandplaylist_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
- Open the page containing
{{{youtube_player('editor.php')}}}. - Add YouTube URLs or IDs, reorder videos, and save.
- The
playlist.jsonfile 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
