English  Italiano  Français  Español  Dansk  Deutsch  Deutsch  Português  Suomi 
Video Lightbox

How can I insert different lightbox videos galleries on different pages?

Aug 28, 2012

Q: I'm have a site that have 3 pages with a different gallery on each page, but when I create a gallery for the second page, it uses the thumbs from the first. Is there an easy way to specify that the new gallery should use different thumbnails?

A: You can use different video galleries on different pages.
You should save each gallery in its own directory, for example:

gal1/
gal2/
gal3/
gallery1.html
gallery2.html
gallery3.html

But notice that you should manually add 'gal1/' prefix before each path on your html page (in html code for video gallery):

<!-- Start VideoLightBox.com HEAD section -->
<link rel="stylesheet" href="gal1/index_videolb/videolightbox.css" type="text/css" />
<link rel="stylesheet" type="text/css" href="gal1/index_videolb/overlay-minimal.css"/>
<script src="gal1/index_videolb/jquery.js" type="text/javascript"></script>
<script src="gal1/index_videolb/swfobject.js" type="text/javascript"></script>
<!-- End VideoLightBox.com HEAD section -->
...
<!-- Start VideoLightBox.com BODY section -->
<div class="videogallery">
<a class="voverlay" href="http://www.youtube.com/v/31aWy9lcyJk?autoplay=1&rel=0&enablejsapi=1&playerapiid=ytplayer" title="How to Add Video to Your Website with Video LightBox .com">
<img src="gal1/index_videolb/thumbnails/0.png" alt="How to Add Video to Your Website with Video LightBox .com" /><span></span></a>
<a class="videolb" href="http://videolightbox.com">How Embed YouTube Video by VideoLightBox.com v2.1</a>
</div>
<script src="gal1/index_videolb/jquery.tools.min.js" type="text/javascript"></script>
<script src="gal1/index_videolb/videolightbox.js" type="text/javascript"></script>
<!-- End VideoLightBox.com BODY section -->



Also, you can set an unique name for index file. Go to tab "4. Publish" and set unique value for "Index file name" parameter. VideoLightBox will generate folders with unique names in this case, so files of different galleries will not be mixed up and you shouldn't edit HTML code manually.
For example: VideoLightBox will generate "gallery1_videolb" folder for "gallery1.html" Index file name, "gallery2_videolb" folder - for "gallery2.html" file, etc.

Related