SEO Religion

A Blog of Benj Arriola

Isulong SEOph LightboxGallery

By Benj Arriola - Posted on Sun Aug 20, 2006

Isulong SEOph LightboxGallery Demo Page

More and more sites have been amazed with the cool Javascript and CSS work done on Lightbox JS v2.0, which is basically making this cool way of viewing images when someone clicks on thumbnails more Web 2.0. No page reloading, no annoying pop-ups. And it is all powered by Scriptaculous. And scriptaculous is powered by Prototype.

Prototype was made to have a comprehensive library of Javascript functions so you no longer need to make them, but it’s comprehensiveness makes things a bit overwhelming to learn it all. So this is where Scriptaculous tries to simplify the process making functions more user friendly for the coder, that may not be that much of a hard core Javascript programmer. And Lightbox JS v2.0 is for a specific purpose of handling images on how to preview them when a thumbnail of an image is clicked. But to make a gallery out of it, using Lightbox JS v2.0 can be a tedious task to do especially when handling many images.

Here comes Isulong SEOph LightboxGallery

LightboxGallery is a script I made in my attempt to simplify the process of having many thumbnails tiled on a page with your Lightbox JS v2.0 code all ready set for you to use. It uses PHP and does not require any database, but requires to number your images incrementaly starting with number 1 and at the current moment, will only support .JPG files, all in lowercase. Although this was made real quickly, more improvements will be see in the future.

What you can easily do with LightboxGallery is tile even hundreds of thumbnails, you set the size of the thumbails (images are not resize, you will have to be in the proper size before using LighboxGallery), and the distance between each thumbnail. Since these are floating div tags, that wrap just like text when the end is met and will go on the next row, you can easily control the number of thumbnails in a row by changing the width of the container. This container may be a table or a div tag, which ever you are more comfortable with.

This is very easy to setup in these few easy steps.

Preparation of Isulong SEOph LightboxGallery

  • Prepare both the actual size of images and the thumbnails too. If you have thousands of images and is using Windows, there is a Windows application called Photo Resizer. It is a free software by EMCO and they have very cool network security software as well. Rename your photos as numbers starting with the number 1, and going to the next number without missing a number and having the lowercase .jpg extention. Like 1.jpg, 2.jpg, 3.jpg and so on. The order of the numbers will be the same order as they appear in the gallery. Make sure each thumbnail filename number will have the same filename number in their corresponding bigger images. It is required that all thumbnails have all the same size. Although it is not required in the bigger images to have the size. So if you have a mix of portrait and landscape photos, you might want to resize the thumbnails in a way that they all have the same height and width.
  • Download Isulong SEOph LightboxGallery here. Unzip it all and place the whole folder lightboxgallery on your web hosting account. Do not upload the files inside the lightboxgallery and mix it with your other files unless you really know what you are doing. Having all files together makes it clean and neat within your file structure as well.
  • If you have any captions for the images, save each caption in a text file and name them 1.txt, 2.txt. 3.txt and so on corresponding to the same numbers of the images. Save these caption files together with your thumbnails. The captions are not required.

Setting up the Isulong SEOph LightboxGallery

  • Open the file lighboxgallery.php inside your lighboxgallery folder and place the URL where the lightboxgallery folder is located like in the example below:
    $lightboxGalleryURL = "http://downloads.isulongseoph.com.ph/";
    Always end your URLs with a trailing slash.
  • Upload all big images in the folder gallery-images. Upload all thumbnails and caption text files in the folder gallery-thumbnails.
  • Just add these few lines of code in your html code.
    In the head section, preferably just before the closing head tag:

    Right after the opening body tag:

    Just before the closing body tag:

    Add this attribute in your body tag:

    And finally, where you want your thumbnail gallery to appear, replace the values with the actual values you want to use.

    'thumbnail height', 'thumbnail width',
    'margin width', 'margin height',
    'border color'
    ); ?>

    As a guide, here is a copy of the code I used for the gallery above:

    '45', '45',
    '20', '20',
    '000000'
    ); ?>

Done! Have fun! This will even get better and easier to use. Visit this page from time to time for updates.

What to expect in future releases of the Isulong SEOph LightboxGallery

  • Pagination
  • Mouseover previewing like IStockphoto
  • Automatic Thumbnail resizing
  • No more filename naming conventions
  • WordPress plugin, Textmate Plugin, Typepad Plugin

This Isulong SEOph LightboxGallery had problems in Internet Explorer when thumbnails were clicked and the page is not fully loaded yet. And this problem was solved with the use of a webpage preloader. The code for the webpage preloader was derived from the work of Nimrod Abing.

Popularity: 1% [?]

Bookmark and Share:
  • Sphinn
  • Bumpzee
  • Digg
  • Propeller
  • StumbleUpon
  • del.icio.us
  • Mixx
  • Reddit
  • Sk-rt
  • Technorati
  • TwitThis
  • Facebook
  • SphereIt
  • NewsVine
  • Google Bookmarks
  • YahooMyWeb
  • Live
  • blinkbits
  • BlinkList
  • blogmarks
  • co.mments
  • connotea
  • De.lirio.us
  • Fark
  • feedmelinks
  • Furl
  • LinkaGoGo
  • Ma.gnolia
  • Netvouz
  • RawSugar
  • scuttle
  • Shadows
  • Simpy
  • Smarking
  • Spurl
  • TailRank
  • BlogMemes
  • BlogMemes Sp
  • blogtercimlap
  • Blue Dot
  • DotNetKicks
  • DZone
  • eKudos
  • Internetmedia
  • kick.ie
  • MyShare
  • PlugIM
  • PopCurrent
  • ppnow
  • Rec6
  • Scoopeo
  • Slashdot
  • Socialogs
  • Taggly
  • ThisNext
  • Webride
  • Wykop

7 Responses to “Isulong SEOph LightboxGallery”

  1. Isulong SEOPh » Valid contest domains, the current top 10, google domains and LighboxGallery Says:

    [...] Isulong SEOph releases the LightboxGallery script. It uses Lightbox JS v2.0 and adds a cool way to tile thumbnail images that have all links prepared for Lightbox JS v2.0. [...]

  2. tGriff Says:

    So,
    I am wondering how to have multiple galleries on the same page.

    Great work by the way!

  3. tGriff Says:

    Ahh… and what if I want to show the gallery but not in the root directory?

    I have no errors but also no photos show… the little bar at the top of the page says “loading” but no pictures actually show?

    Default install with all in the original folder. Gallery page is in a different folder so all the php includes require “../lightboxgallery/ ?>

  4. Duffy Says:

    The work is excellent, clear, and well done.

    Great work!

  5. Ituloy AngSulong Says:

    Tosca originally asked a question but posted it on:

    http://www.isulongseoph.com.ph/services/

    His question was:

    hello!

    i have a question:
    can you send me the index.php from:
    Isulong SEOph LightboxGallery?
    i can’t create the right one.
    my index.php shows like:

    Sans Titre

    and it don’t run.

    can you help me?

    tnx very much

    First is, check the:

    The Lightbox Gallery Demo

    Now on that page, I uploaded the source for that page:

    http://www.isulongseoph.com.ph/isulong-seoph-lightbox-demo.phps

    I hope you can figure it out from there.

    - Benj Arriola

  6. Tosca Says:

    is it possible to show the thumbs on more than one site?
    is it bossible to make 10 thumbs per site and then click e.g. site 2/4?
    tnx very much

  7. Ituloy AngSulong Says:

    is it possible to show the thumbs on more than one site?

    Yes, just use it on any page you need it.

    is it bossible to make 10 thumbs per site and then click e.g. site 2/4?
    tnx very much

    Any number of thumbs are possible. On how any thumbnails you get per row/column all depend on the width of the container and how many images get folder.

    But if you are looking for some kind of pagination, I do not have that yet. And instead of developing one, I think I will just concentrate on making several easy to use custom themes for ZenPhoto.

Leave a Reply

XHTML: You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
Links will be appended with rel="nofollow" attributes.

Locations of visitors to this page
KeywordDiscovery.com Keyword Research Tool Wordtracker Keyword Research