Template Lytebox Setup (With HTML)


NOTE: This support page is for templates that include Lytebox with HTML pages.

If your template does not include a "slide_pages" folder click here.

Lytebox Sample
This support page is for templates that include Lytebox v3.22. If your template includes a folder named "lytebox" and one named "slide_pages" this script is included in your template. See your "lytebox.js" for the version number.

View the script in action:
Please see Allwebco Tour Templates for samples of the Lytebox setup, or open your downloaded template "slideshow-home.htm" or gallery pages to view a sample.


Setup the first slide:
Edit the "slide1-1.jpg" in the "slide_images" folder with your image. Edit the "slide1-1.htm" in the "slide_pages" folder with your text. Open the "slideshow-home.htm" and check the first slide in the first slideshow. For slide #2 edit the 1-2 files.

Slideshow files are numbered by what show they are in and what number slide they are. EXAMPLE: "slide3-4.jpg" and "slide3-4.htm" are for slide #4 in the 3rd slideshow.


Using only images with no HTML pages in the slideshows:
You can use the "IMAGE-ONLY-slideshow-home.htm" included in the template download. This will make the lytebox slideshows only display the images in the "slide_images" folder and you can delete the "slide_pages" folder. Optionally, you can edit the links in the "slideshow-home.htm" to not use the HTML pages that are in the "slide_pages" folder. SLIDESHOW 1, SLIDE 1, EXAMPLE:

<a href="slide_pages/slide1-1.htm" rel="lyteframe[show1]" title="Slideshow One" rev="width: 520px; height: 450px;" class="biglink">

Edit the above link to the following for an image only:

<a href="slide_images/slide1-1.jpg" rel="lytebox[show1]" title="Slideshow One" class="biglink">



Slideshow sizes:
Edit the "slideshow-home.htm" to change the size of each slide. Each slide can be a different size. (not used with images only) Click visual below.
View Visual


Note: if you are using the Paypal cart "slideshow-home.htm":
If you are using the "slideshow-home.htm" that includes Paypal forms, and are adding more slideshows, be sure to edit the link for the first slide in 2 places. One before the other slides and one after them.


Adding more slides:
You can add or remove slides in the slideshows. Edit the "slideshow-home.htm". Click visual below.
View Visual
In the visual above you will now place an image named "slide1-10.jpg" in the "slide_images" folder. Place a page named "slide1-10.htm" in the "slide_pages" folder. Edit the new "slide1-10.htm" so your new image, "slide1-10.jpg" will display. EXAMPLE: Make a copy of the "slide1-1.htm" edit "slide1-1.jpg" inside this page to "slide1-10.jpg".


Remove a slide:
You will delete one line of code as shown in the visual above to remove a slide. EXAMPLE: To remove slide #9 in slideshow #1 remove this line in the "slideshow-home.htm":

<a href="slide_pages/slide1-9.htm" rel="lyteframe[show1]" title="Slideshow One" rev="width: 550px; height: 450px;"></a>


Add another slideshow:
You can add as many slideshows as your project requires.
  1. Copy the code group as shown in the visual above in the "slideshow-home.htm".
  2. Paste it below itself or in another HTML page.
  3. Edit the [show?] number. EXAMPLE: In the visual above edit the [show1] to [show7] in 9 places. (be sure to edit the starting slide.)
  4. Edit the slide numbers in your pasted code. EXAMPLE: Edit 1- in nine places to 7- to add a 7th slideshow.
  5. Add new images in the "slide_images" folder. EXAMPLE: Add images "slide7-1.jpg" through "slide7-9.jpg".
  6. Copy "slide?-?.htm" pages in the "slide_pages" folder. EXAMPLE: Make 9 copies of the "slide1-1.htm".
  7. Rename your new copies "slide7-1.htm" through "slide7-9.htm".
  8. Edit the image to be displayed in your new copied "slide1-1.htm" pages. In each page edit the "slide1-1.jpg" so the page will display your new image you added to the "slide_images" folder. EXAMPLE: Edit "slide1-1.jpg" to "slide7-1.jpg" your new "slide7-1.htm".

Slideshow options and colors and speeds:
You can edit the options in the "lytebox.js" for slide colors and animation. Edit the "this.theme" variable to one of the noted colors in the "lytebox.js". Also see black theme notes below.

See "About the script and more options" below for more details. In most cases you should not edit the "lytebox.css". CSS code can be found in your "coolstyle.css" for the pages in the "slide_pages" folder. Search for "LYTEBOX" to edit this code.


The black theme:
The black color theme was added by Allwebco. To change to this theme edit the "this.theme" variable to "black" in the "lytebox.js". Then edit the ".slidepages" "background-color:" class in the "coolstyle.css" (not required for images only slideshows).


Margins, padding and borders:
If you want more margin (outer border) in the slideshows, edit the "this.borderSize" in the "lytebox.js" and... edit these 2 padding lines in the "lytebox.css".

#lbImageContainer, #lbIframeContainer { padding: 10px; padding-top: 12px; }

#lbDetailsData { padding: 0 10px; }


NOTE: Always edit the "this.borderSize" in the "lytebox.js" so it is 2 pixels larger than the padding you edit in the "lytebox.css".


FILES: How this works in tour templates:
When you open a slideshow on the "slideshow-home.htm" page an HTML page is layered over the page. This layered page is an IFrame and will be displaying one page at a time from the "slide_pages" folder and one image from the "slide_images" folder. Example: When you click on the first slideshow on the "slideshow-home.htm" the "slide1-1.jpg" in the "slide_images" folder is displayed inside the "slide1-1.htm" from the "slide_pages" folder.

The Lytebox tour template download includes the following:
  • "lytebox" folder for the lytebox close, play, pause and next images.
  • "lytebox.js" is the script and includes some options you can edit.
  • "lytebox.css" is the CSS file for lytebox only and should not be edited.
  • "slide_images" folder includes the images used in the lytebox slideshows.
  • "slide_pages" folder includes an HTML page for each slide that you can edit.
  • "slideshow-home.htm" to display the Lytebox slideshows.
  • CSS code can be found in your "coolstyle.css" for the pages in the "slide_pages" folder. Search for "LYTEBOX" to edit this code.

About the script and more options:
The Lytebox script included in some Allwebco templates is an updated version written by Markus F. Hay. that was originally created by Lokesh Dhakar. For more info and script options see www.dolem.com and for the original script see www.lokeshdhakar.com





Related Topics:
Tour Templates


Allwebco Template Support


Allwebco Website Template Support


See Also...
Tour Templates
View Lytebox Website Templates



See Also...
Lytebox image only


Notes...
NOTE: Be sure to make a backup of your files before you start editing.