Created: 27/02/2011
By: Digital Zoom Studio
Twitter: http://twitter.com/
Facebook: http://facebook.com/dzs
Support Forum: http://dzs.net/support/
Thank you for purchasing my component. If you have any questions that are beyond the scope of this help file, please feel free to apply for membership on the forum, it's the fastest way of support [ link to the left ] and post a thread about your question after your membership is validated.
DZS Video Gallery is the ultimate gallery for your videos.
There are two ways to install the plugin
_______________
You can now add video galleries you create in the Video Gallery Admin into any post or page. To make it simple a Shortcode Generator is included. You can access it via this button.
The first button is the shortcode genreator launcher and the second one ( the one with a plus ) ads a single video player to the page from the media gallery.
The first button launches the Shortcode Generator
_______________
Recommended: Some web servers don't have html5 video support yet. So if you notice your videos do not work ( and were properly uploaded ) an easy fix is to add this to to your .htaccess file:
AddType video/ogg ogv
AddType video/webm .webm
AddType video/mp4 .mp4
The plugin also features an widget that you can add to any of your sidebars. It will appeare as Video Gallery in your Appearence > Widgets page.
The widget can be configured by Title and ID - the gallery which ID's it holds is still configured from the DZS Video Gallery admin in Settings menu.
You have the option to drop the JW Player plugin and replace it with this one. [jwplayer] shortcodes will get rendered by DZS Video Gallery just fine.
Just enable the option in Video Gallery > Settings
auxiliary shortcodes - want to get a single video in your post without having to go through the admin ? The [video], [youtube] and [vimeo] shortcodes are built just for that. You just have to set the id for the youtube or vimeo shortcode, or the location for the video shortcode.
Examples:
[video source="http://thelocation/ofthevideo.mp4"]
[vimeo id="2"]
[youtube id="L7ANahx7aF0"]
You can have a player config for auxiliary shortcodes via the config attribute. You set player configs inside Video Gallery > Video Player Configs.
Examples:
[video source="http://thelocation/ofthevideo.mp4" config="player1"]
[vimeo id="2" config="player2"]
enable / disable prettyphoto ( recommended: on )
enable / disable uploading in wp-content/upload folder instead of the plugin folder for the multi uploader and non WordPress upload method. Once this is activated it will move upload.php and the upload folder to wp-content folder. If you do not enable this, and use the plugin folder, take caution that existing uploads will get deleted on plugin update.
note: if you have enabled external wp-content upload and want the files to be available in your media gallery, you can use a plugin like Add From Server to accomplish that
slider
The main division in the admin panel, sliders are independent to each other, each slider has it's own items and main settings, you can add new sliders via the Add Slider button underneath the table. Multiple slidesrs with different ids can be added into one page.
items
The items are divisions of a slider. They each have their own settings and preview image which show up if the item is an image. The top right button deletes the item and the bottom left duplicates the item.
extra: in the timeline slider there are 3 types of items ( see Images, Marks and Milestones section above )
dzs multi uploader
If you have a modern browser ( and you should ) - you can use it's full power to bring you accesibility and easy uploading. Just drag and drop your images ( can be multiple ) and they will automatically added as image items.
Database Select
In the top area you will see a button stating the curent database. You can click on it and it will render a list of databases you have created to write galleries in. You can create new databases for galleries by writing a name for your new database in the lat item of the select database container. Once you have created your gallery in the database you can insert in the content via
Note: if you have many galleries, it is recommeded to distribute them accross multiple databases. So if one crashes, the other ones are safe.
All you have to do to access it is click the Designer Center button in the main admin. Make the changes and click save. The changes will be reflected in the Custom skin.
The gallery settings for 9gag.tv examples are menu position set to right and navigation type set to scroller. Also the html code underneath the gallery is
<a class="btn-facebook-share" href="https://www.facebook.com/sharer/sharer.php">
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
width="6.621px" height="10" viewBox="0 0 113.621 223.947" enable-background="new 0 0 113.621 223.947"
xml:space="preserve">
<path id="f" fill="#FFFFFF" d="M73.751,218.795v-99.803h33.499l5.016-38.896H73.751V55.265c0-11.261,3.127-18.935,19.274-18.935
l20.596-0.009V1.533C110.06,1.059,97.834,0,83.61,0C53.915,0,33.585,18.126,33.585,51.413v28.684H0v38.896h33.585v99.803H73.751z"/>
</svg>
Share on Facebook
</a>
<a class="btn-twitter-share" href="https://twitter.com/share?url=http://codecanyon.net/user/ZoomIt/portfolio?ref=ZoomIt">
<svg version="1.1"
id="svg2" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:cc="http://creativecommons.org/ns#" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:svg="http://www.w3.org/2000/svg" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" sodipodi:docname="Twitter_bird_logo_2012.svg" inkscape:version="0.48.4 r9939"
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="10"
height="10" viewBox="0 0 171.506 139.379" enable-background="new 0 0 171.506 139.379" xml:space="preserve">
<sodipodi:namedview fit-margin-left="0" fit-margin-top="0" showgrid="false" inkscape:cy="50.181142" inkscape:cx="101.29413" inkscape:zoom="3.7200571" borderopacity="1.0" bordercolor="#666666" pagecolor="#ffffff" id="base" inkscape:window-width="1280" inkscape:window-maximized="1" fit-margin-bottom="0" inkscape:current-layer="layer1" inkscape:pageopacity="0.0" inkscape:document-units="px" fit-margin-right="0" inkscape:window-y="-8" inkscape:pageshadow="2" inkscape:window-x="-8" inkscape:window-height="962">
</sodipodi:namedview>
<g id="layer1" transform="translate(-282.32053,-396.30734)" inkscape:label="Layer 1" inkscape:groupmode="layer">
<path id="path5" inkscape:connector-curvature="0" fill="#FFFFFF" d="M453.826,412.806c-6.31,2.799-13.092,4.689-20.209,5.54
c7.265-4.354,12.845-11.249,15.471-19.466c-6.799,4.032-14.329,6.96-22.345,8.538c-6.417-6.839-15.562-11.111-25.683-11.111
c-19.432,0-35.188,15.754-35.188,35.186c0,2.758,0.312,5.443,0.912,8.019c-29.243-1.467-55.17-15.476-72.524-36.764
c-3.029,5.196-4.765,11.24-4.765,17.688c0,12.208,6.212,22.978,15.653,29.287c-5.768-0.183-11.193-1.766-15.938-4.4
c-0.004,0.146-0.004,0.294-0.004,0.442c0,17.048,12.129,31.269,28.226,34.503c-2.952,0.805-6.061,1.233-9.27,1.233
c-2.268,0-4.472-0.221-6.62-0.631c4.478,13.979,17.472,24.151,32.87,24.435c-12.043,9.438-27.214,15.064-43.7,15.064
c-2.84,0-5.641-0.167-8.394-0.492c15.572,9.984,34.067,15.81,53.938,15.81c64.721,0,100.113-53.615,100.113-100.114
c0-1.525-0.034-3.043-0.102-4.553C443.144,426.059,449.108,419.863,453.826,412.806L453.826,412.806z"/>
</g>
</svg>
Share on Twitter</a>
<span class="btn-arrow" onclick="document.getElementById('vg1').api_gotoPrev();">← prev</span>
<span class="btn-arrow" onclick="document.getElementById('vg1').api_gotoNext();">→ next</span>
In this case, you would need to create each category as a video gallery in the admin. Then you just write this:
[videogallerycategories width="100%" height="300"]
[videogallery id="main" category="Trailers"]
[videogallery id="main2" category="Animals"]
[videogallery id="main3" category="Vimeo User"]
[/videogallerycategories]
main, main2 and main3 are the galleries defined in the admin which represent the categories.
Just write this
[videogallerylightbox id="lightbox" gallerywidth="800" galleryheight="500" ]open[/videogallerylightbox]
wehre id is the id of the gallery. You can have any html content instead of open
This will create a html5 history gallery which changes the url based on the video you select in the gallery. To create this you only need to write this shortcode
[videogallerylinks ids="3783,3788" source="http://localhost/testimages/particles.mp4" type="normal" gallery_nav_type="scroller" settings_ajax_extradivs=".first-title,.second-title"]
The ids attribute represents posts IDs you will pull in the gallery - separated by the "," character . Note that all the posts included this exact same shortcode with the same attributes for the function to work right. The source attribute represents the source of the video and the type attribute, it's type- normal / youtube / vimeo / audio - so if the type is youtube then the source attribute needs to have the value of the youtube video ID .
The gallery uses ajax to pull content from the other posts, the ajax primarely gets the other post's video element, but you may want other content pulled too, like the post content or title. All you need to do is write the ids ( # ) or classes ( . ) of the dom elements separated by a , inside the settings_ajax_extradivs attribute.
All the options here:
'ids' => '',
'width' => 400,
'height' => 300,
'source' => '',
'sourceogg' => '',
'type' => 'normal',
'autoplay' => 'on',
'design_skin' => 'skin_aurora',
'gallery_nav_type' => 'thumbs',
'menuitem_width' => '275',
'menuitem_height' => '75',
'menuitem_space' => '1',
'settings_ajax_extradivs' => '',
The gallery can feed items either from manually input - by clicking the blue plus sign and adding items.
Either from YouTube user channel. You just need the channel username in the YouTube User field to make it work.
Either from a YouTube playlist. All you have to do to find the ID is access your YouTube account and go to the Playlists section. Create a new playlist or select one of your already created ones. The link should look like this - http://www.youtube.com/playlist?list=PLADC18FE37410D250&feature=plcp - the id is ADC18FE37410D250 - never include the PL part too if it's there at the beggining.
Either from a Vimeo user channel. If you go to a user profile for example - https://vimeo.com/user9682578 - the is the number after the user part in this case - 9682578
You can find subtitle field for each item under the Appearance field
It's best to have the subitle in .html format ( security issues ) .
The subtitle must be formatted like this ( raw text ) :
2
00:01:04,073 --> 00:01:08,076
<i>Lorem Ipsum Set Amet</i>
3
00:01:08,077 --> 00:01:10,379
<i>Lorem Ipsum Jr.</i>
4
00:01:10,680 --> 00:01:14,684
<b>Lorem</b>
From update 4.1 the plugin supports localization. You can read more about it here
The process to translate the plugin is fairly easy:
Multiple of our clients have been successful in the set up of Amazon S3 with the DZS WP Video Gallery. We do not have a Amazon S3 account, but I suspect you just copy your .mp4 file there and get the link to that in the Source field of the video gallery item.
The process is straightover, but we'll explain it here to make sure no one confuses any step. To create your own gallery, you just need to click the Add Gallery button.
Then, you will see in the table on top, a new gallery with the id default has been created. The next step is to click the Edit button refering to that gallery.
Now, all the settings of your new gallery will appear in the left, and the items of the gallery in the right.
The first step, is to edit the ID of the gallery to a more unique name then default, then you can edit any settings you will customize, and add as many items as you wish via the add button.
This plugin stores data in the WordPress database in a field 'dzsvg_items' inside 'wp_options'.
Then it's easy to add it to any post / page via this simple shortcode [videogallery id="theidyouset"]
In the shortcode generator you have options for paginating via pages, "infinite scroll" or a "load more" button.
You can check this link for a list of popular questions. Other questions you might have:
You need to choose the Skin to all characters or custom.
Go to this link - https://developer.vimeo.com/apps - login and click the Create a new APP button
You need the oAuth2 details
Enter these in your WP Dashboard > Video Gallery > Settings > Vimeo Options ( Client Id, Client Secret, Access Token)
Important: the Access Token must be generated
Take this movie for example - http://www.youtube.com/watch?v=UXLvR6ZaZk4 . The youtube ID is just this part: UXLvR6ZaZk4
First, note that you can embed any video from a portal that provides a iframe embed. You just need to set the width and height to 100% in the embed code you copy from their site. We'll provide examples for these 3 video portals. The bolded part is the id of the video, so if you copy the embed code from here, you should check that according to your video.
videogamer.com
wistia.com
videogamer.com
Here is the admin version.
You need your movie converted to two formats in order to make sure the html5 video plays in all browsers.
Browser support & recommended encoding program
We recomend using Handbrake ( open-source ) for generating the mp4 file from your video file. We made a screenshot of some sample settings that we tested to work on iOS, Android, Safari, Chrome. See below:
Then for the ogv file, you can use an online service called Video-online-convert . You just have to upload the resulted mp4 and it will process it and offer a ogv download. That easy.
IE9, IE8 ( Flash ) & Safari : MP4 / M4V
Chrome & Opera & Firefox : OGG / OGV
When you want to manipulate pictures - ie: you depend on their size - like a ken burns slider or scroller does, it's best to use jQuery(window).load because that executes the code in it AFTER all the images and content has loaded. For everything else, there is jQuery(document).read -which only waits for the html to be parsed corectly & all elements formed.
The settings of the gallery will go from the first gallery, and the rest of the galleries will only feed items.
We have a special property for this called responsive ratio Find it here
You can just set it to detect for most self-hosted videos, but it might not work for YouTube. For YouTube you must manually calculate this responsive ratio. This is calculated height / width You need to measure the visible area of the video
and input the result in the field ( ie. 0.5 for 1600 x 800 measurements )
This is the code you need to input in the WordPress Text Editor ( html )
First, this is a 2/3 + 1/3 column layout and a 1/1 column underneath. This can be done manually or if you have a page builder like visual composer, or a page builder in your theme.
What you need to do is setup a new gallery and in the Navigation Style, set it to none, because we will have no navigation inside the gallery but it will be outside. That said, we need to link to the outside gallery. Scroll down to Outer Parts and set Second Con, Outer Navigation and Outer Navigation, Show Video Author to On.
Then in the first 2/3 container you need to enter
In the right 1/3 container enter
In the 1/1 container enter
That would be all. Of course, note that these containers are separted from each other. can be inserted anywhere in your page.
Also, if you don't have Visual Composer or a page building plugin, this is a code:
<div>
[dzsvg_outernav id="galleryid" skin="oasis" extraclasses=""]
</div>
First, You need to go to Video Gallery > Designer Center , and setup your skin as you wish
Then you need to go to Video Gallery > Video Player Configs, and for the configuration you are using, you need to change the skin to skin_custom
This gallery provides source files ( in the source folder ) so if you are developer you can start customizing it.
You can generally use any text editing software to edit most content/code, but this is what I recommend:
This is optional and represents the container of the gallery and the preloader ( recommended )
<div id="vGallery" class="videogallery" style="width:638px; height:300px; opacity:0;">
</div>
This is the main gallery contianer, you add gallery items inside. You can also modify size directly from the style attribute. Opacity is optional.
<div class="vplayer-tobe" data-videoTitle='Big Buck Bunny' data-description='<img src="img/thumb.png" class="imgblock"/><div class="the-title">Big Buck Video</div>Here you can have a video description of your choosing.' data-sourcemp4='video/test.m4v' data-sourceogg='video/test.ogv'></div>
This is gallery item. Add as many as you wish inside the videogallery container.
Customisable parameters
data-videoTitle - optional - the title that appears in the top left of the video.
data-description - optional - title and description of the video that appears in the menu item of the glalery - html accepted
data-sourcemp4 - location of the mp4 format of the video ( or m4v )
data-sourceogg - location of the ogg format of the video ( or ogv )
data-sourcewebm - location of the webm format of the video
data-sourceflash - location of the mp4 format of the video ( or m4v or flv or H.264 .mov )
var videoplayersettings = {
autoplay : "off",
videoWidth : 500,
videoHeight : 300,
constrols_out_opacity : 0.9,
constrols_normal_opacity : 0.9,
design_scrubbarWidth:-201,
design_background_offsetw : 0
}
Both the gallery and video player are highly customizable.
autoplay - only matters if you are using it independent of the gallery - autoplay video on / off
videoWidth / videoHeight - only matters if you are using it independent of the gallery - video player size
constrols_out_opacity - controls opacity when video player is not focused
constrols_normal_opacity - controls opacity when video player is focused
design_scrubbarWidth - only for skin customization purposes - scrubbar width offset
design_background_offsetw- only for skin customization purposes - background width offset
$('#vGallery').vGallery({
menuSpace:0,
randomise:"off",
autoplay :"off",
autoplayNext : "on",
menuitem_width:275,
menuitem_height:76,
menuitem_space:1,
menu_position:'right',
transition_type:"slideup",
design_skin: 'skin_default',
videoplayersettings : videoplayersettings
})
Both the gallery and video player are highly customizable.
menuSpace - space between the menu and video player
menuitem_width / menuitem_height - the menu item size
menuitem_space - the space between menu items
autoplay - autoplay the first video on / off
autoplayNext - autoplay the next video on/off
randomise - randomise video gallery items
menu_position - the menu position - right / left / up / down / none
transition_type - choose between 'fade' and 'slideup'
design_skin - choose between 'skin_default' or make your own following the instructions from bellow
videoplayersettings - the video player settings object
design_scrubbarWidth - only for skin customization purposes - scrubbar width offset
design_background_offsetw- only for skin customization purposes - background width offset
Digital Zoom Studio