Gallery3:Modules:embed videos - Gallery Codex
Personal tools

Gallery3:Modules:embed videos

From Gallery Codex

Embed videos

Allows users to embed videos from Youtube or Vimeo.

Description

Allows users to embed videos directly from the gallery menu.

Installation

  • In order to make this module work, you need to activate allow_url_fopen in your server php configuration.
  1. Download the embed_videos module from github here.
  2. Unzip it and upload the unzipped folder to the modules directory of your gallery installation.
  3. Afterwards log into your Gallery web site as an administrator and activate the module in the Admin -> Modules menu.
  4. Once activated you will have a new option in the Add menu in your frontend.

Embedvideosmenu.jpg

Usage

Embedvideoatributes.png

  • Title: The name of the file in the gallery.
  • Video URL: Full URL of the video (Youtube or vimeo URL of the video)
  • Description: The description shown below the resize. If left blank, the module will take the description that appears on the video page (Youtube/Vimeo)
  • Internet URL: The url name. For example, if you use "examplevideo", your url will show "yourserver.com/gallery/examplevideo". If left blank, will take Youtube/Vimeo code.

Screenshots

Embedvideoexampleyoutube.png Embedvideosexamplevimeo.png

Known Bugs

  • Module fails to embed a video if already in an embedded video page. Just go back to the album page and everything will go fine.

Notes

This module requires the php option allow_url_fopen=on. If disabled, it'll probably cause errors.

disable related youtube videos

Edit controller/embeded_videos.php from

    $embedded_video->embed_code = '<iframe class="youtube-player" type="text/html" width="'. $maxwidth .'" height="'. $maxheight .'" src="http://www.youtube.com/embed/' . $video_id . '" frameborder="0"></iframe>';

to

    $embedded_video->embed_code = '<iframe class="youtube-player" type="text/html" width="'. $maxwidth .'" height="'. $maxheight .'" src="http://www.youtube.com/embed/' . $video_id . '?rel=0" frameborder="0"></iframe>';
advertisements