• Mar
  • 03

TTG Shadowbox Gallery

Current version 2.6

Michael J. I. Jackson’s recently released Shadowbox sets new standards for lightbox media viewers. Cross-browser, cross-platform, web standards compliant, fully documented and completely awesome, Shadowbox is a no-brainer for a Lightroom gallery template.

TTG Shadowbox Gallery builds upon the TTG Slimbox Gallery foundation, and offers all of the features found in that gallery, including support for PicLens, ratings, color labeling and annotations. It’s also the first gallery to offer out-of-the-box support for the new TTG XML Auto Index template. And for those who like to get under the hood, Shadowbox is bursting with features of its own.

TTG Shadowbox Gallery also supports automatic indexing via TTG XML Auto Index.


TTG Shadowbox Gallery 2.6


Download | Sample Gallery | Forum Thread | Installation

System Requirements

This gallery requires Adobe Lightroom 1.3.

Some Technical Blather

A cross-platform Javascript application, Shadowbox will run on nearly any major Javascript library, including Yahoo! User Interface Library, Ext, Prototype + Scriptaculous, jQuery, Mootools and Dojo Toolkit.

TTG Shadowbox Gallery utilizes Mootools. If you know what any of this means, then you probably know enough to be able to switch the gallery over to the library of your choice. See the Shadowbox documentation for further details.

PicLens

“PicLens instantly transforms your browser into a full-screen slideshow experience. PicLens makes photos come to life via a cinematic presentation that goes beyond the confines of the traditional browser window. With PicLens, browsing and viewing images on the web will never be the same again.” – PicLens.com

PicLens is a browser extension for Firefox, Safari and Internet Explorer that provides a slick and immersive 3D image viewing experience.

TTG Shadowbox Gallery is now PicLens enabled. Visitors with the PicLens extension installed in their browser will be able to activate the feature in the same way as on sites like Flickr or Facebook, or they may choose not to use the feature, and simply browse the gallery in the usual fashion. Visitors without the PicLens extension can use the gallery normally.

PicLens will not function from within the Lightroom Web module.

PicLens is an extra feature and does not interfere with the gallery’s standard functionality, which remains unchanged.

Applying Colors and Ratings

In order to apply color labels and numerical ratings to thumbnails, class names must be set for each image. By default, the gallery pulls these class names from the Headline IPTC field. This can be changed via the Image Info panel, however.

Images may each be assigned a single rating and/or color. To apply a color, simply enter the name of the color into the Headline IPTC field. Accepted colors are transparent, red, yellow, green, blue and purple.

To assign a numerical rating, type out the word for the number of stars/circles you’d like to apply. Accepted values are zero, one, two, three, four and five.

In order to assign both a color and a numerical rating, enter one of each, separated by a space. For example, to label an image red with a rating of five, you would enter red five into the Headline IPTC field.

Of course, you may elect to leave the Headline IPTC field empty, in which case neither a color label or numerical rating will be applied to the image.

Creating a Selection Gallery

From version 2.6, TTG Shadowbox Gallery includes Form-to-Email functions previously featured in the now discontinued TTG Selection Gallery. To use these features, check Enable Selection Gallery, found in the Appearance pane in the Web module. For additional instructions on setting up your selection gallery, read the selection gallery documentation.

Changelog


v2.6 (2008-04-01)

Integrated TTG Selection Gallery features; TTG Selection Gallery discontinued.

v2.56 (2008-04-01)

Support for cell numbering.

Option to disable right-click menu.

v2.55 (2008-03-22)

ID Plate alignment bug fix.

v2.54 (2008-03-21)

Added footer w/ options.

Added choice of ID Plate alignment.

Added a security check and warning to Remove Live_Update.js.

v2.53 (2008-03-15)

Header Height minimum value has been adjusted from 0 to 1 due to rendering problems in Firefox when set to 0.

v2.52 (2008-03-12)

Javascript fix; Shadowbox now loads before thumbnails, preventing a problem where the images would load into a new page if a visitor started clicking things before the page finished loading. Visitors can now click any thumbnail, loaded or not, and the image will be launched properly in the shadowbox.

v2.51 (2008-03-08)

Minor tweaks to onImage Navigation appearance.

v2.5 (2008-03-08)

Width of Collection Description now adjustable.

If unused, Collection Description, Annotations and Ratings code can now be removed from gallery to reduce overall gallery size.

v2.49 (2008-03-04)

Bug fix.

v2.48 (2008-03-04)

Added option to remove live_update.js from exported galleries, reducing overall page load by 16KB.

Additional code cleanup to marginally improve performance and load times by roughly 4KB.

v2.47 (2008-03-03)

A menu! Five customizable menu items + slideshow + contact.

Improved support for Piclens, and now supports PicLens Lite. Support for custom logo and MP3 audio using PicLens Lite; logo and audio support will be supported in a future version of the PicLens client.

Shadowbox: dropped themes, added controls for colors and borders; additional changes.

Reorganized Web module controls and panels; lots of additions and relocations for ease of use.

A major overhaul of code, in places both HTML and Lua. Cleaner, leaner, better!

Bug fixes (and hopefully no new bugs introduced).

v2.46 (2008-02-26)

onImage Navigation can now be toggled on/off.

v2.45 (2008-02-25)

Vertically centered thumbnails!

v2.44 (2008-02-24)

More options.

Added onImage Navigation.

v2.43 (2008-02-22)

Updated to Shadowbox 1.0.

Added new Shadowbox options and themes.

v2.42 (2008-02-21)

Live Update fix for Windows users.

v2.41 (2008-02-20)

Added XML Auto Index input fields for Album Thumbnail and Album URL.

Added controls for Shadowbox options.

v2.4 (2008-02-19)

Initial release. Feature parity with TTG Slimbox Gallery 2.31; additionally, supports TTG XML Auto Index.

Make a Donation

If you enjoy my work and would like to pay for it, I accept donations via PayPal. Donations are wholly unnecessary, but would be greatly appreciated. Thank you!

Send this article to a friend »

« Next Article | ... ... | Previous Article »

Comment »

DB
23 February 08 / permalink

Hi,

Thanks for the great work with these templates.

At the moment with the Shadowbox template if a viewer right clicks they are able to copy the image. Is there a way to prevent this from happening?

Looking forward to seeing the Compete Template.

Thanks again.

DB

23 February 08 / permalink

DB?! Could you be that DB of legend, that DB who means so very much to me?! None other than … David Bowie?

And now that I’ve had my foolish moment, I’m afraid the right-click is nothing I have any control over. You might want to make an inquiry/feature request on the Shadowbox forums.

DB
24 February 08 / permalink

Thanks I’ll try the Shadowbox forum.

I don’t suppose there is any news on the Complete Template??

Can’t wait to see it.

DB

Sorry not David Bowie!

24 February 08 / permalink

The “Complete” template is being developed by Joe Capra over at LightroomGalleries. I’m not sure where he is with it.

27 February 08 / permalink

Hi,
This seems to work flawlessly when the gallery is viewed in Firefox (with cool effect when a thumbnail is clicked). In IE, that effect seems lost – the user is taken to a larger version of the photo with no cool effects – just blank white background. Is IE not supported? Am I doing something wrong? Thanks very much.

27 February 08 / permalink

Eric,

The latest version is working just fine in IE6 for me. You may need to wait until the page loads fully before the Shadowbox will become active.

27 February 08 / permalink

Matthew,

Thanks for your response. Sorry I wasn’t more specific – I should have specified IE7. Strangely, your sample gallery works ok in IE7, however, the gallery I created in Lightroom 1.3 only works fully in Firefox (I’m using 2.0.0). The link in question is here:

http://www.photeric.net/slideshows/becca-keith2/index.html

Any suggestions would be appreciated. I love the TTG Shadowbox gallery and would love to be able to use it if it has IE functionality. Thanks again.

Ram
29 February 08 / permalink

Great gallery!! – thanks for sharing your hard work…

on IE, there is ugly dotted line whenever we click on the image to go back/forwad.
maybe u can use something like:
onClick=“this.blur()” to get rid of that dotted line (it stays even after the image changes.

29 February 08 / permalink

Hi Ram,

Actually, it’s even easier than that! a { outline: none; }

It’s already fixed in the next version, which I haven’t released yet. I hated the dotted lines too. ;)

Cheers,
Matt

29 February 08 / permalink

Hey, just wanted to thank you! Thanks, thanks, thanks! I really appreciate all your hard work.

cu Marco

3 March 08 / permalink

Matt: Everytime I start Lightroom 1.3.1 on my WinXP system and go to use the latest Shadowbox 2.46, I get this message. Also, when I click on an image I just get the image with white background. Same happens on and off with my site using Firefox 2.0 or IE7. Any ideas?

Within Lightroom I get this error message when I open Shadowbox 2.46, I did not get it with the pre 2.0 versions
—————————————

An error has occurred in the script on this page.

Line: 46
Char: 3
Error: Expected identifier, string or number
Code: 0
URL: agwpg://localhost:1029/index.html

Do you want to continue running the script?

YES NO
—————————————

3 March 08 / permalink

Actually I should add that every time I change a parameter or click on a picture and then try to go back … I get the same error message from Lightroom. I can’t figure out where the index.html file it is referring to is located to check out what is on line 46 Char 3.

3 March 08 / permalink

Okay I think I see the problem with the white background, as someone previously mentioned, if you click on an image before the page is fully loaded in Firefox or IE then you get the pic with the white background. Unfortunately, this also disables my right click blocking code. Any ideas on how to solve this?

Aloha!
Charles

3 March 08 / permalink

Charles,
The Javascript error will hopefully be fixed in 2.47, now in development. But LR uses IE to render web galleries, and that’s always a pain; it throws up Javascript errors like a bad habit.

As for the white screen, that happens when you click and image before the page is loaded. I’ve posted about it on the Shadowbox forums, and I’m hoping something will get done about it in a new version of Shadowbox.

4 March 08 / permalink

I’m using TTG Shadowbox v294 and TTG Auto Index v103 for my personal work at http://www.on-sight.com/personal-work/

I have also written a brief article about the process at
http://www.on-sight.com/2008/03/03/personal-work-galleries/#more-23

As someone who has had a photography website since 1994 I can’t tell you how excited I am with the ease of use and quality of this solution. Thanks for all your hard work Matthew! Keep up the good work.

4 March 08 / permalink

I love the “remove live_update.js” feature in TTG Shadowbox v294. Perhaps TTG Auto Index could use a similar feature that removes the index.html file and thumbnails folder?

4 March 08 / permalink

Scott,
I’ve love that, but it, unfortunately, doesn’t work that way. The live_update.js file isn’t actually being removed. It’s generated into the exported gallery still, in resources/js. What’s being removed is the line of code in the index.html file that loads the script, essentially alleviating the user. The file is still there, though, and there’s no way I can tell LR to simply not create it.

Likewise, I can’t prevent LR from creating the index.html file or thumbnails in the XML Auto Index, because LR itself needs those files to generate the preview that you see in the Web module. LR can’t preview the PHP file, because it can’t parse PHP.

Roy
5 March 08 / permalink

Loving this new Shadowbox implementation, and will certainly make a donation if I get to use this on a current project I’m working on.

I just wanted to let you – and others – know that I’ve had a few issues with LR hanging (Spinning Beachball of Death on my Mac) following making changes to the Image Info settings.

I was trying to get it to display the Filename Number Sequence, Custom Text and Caption at the top of the Shadowbox image window, as well as displaying the Filename Number Sequence as an Annotation in thumbnail view. I got it to work in the end, but it seems particularly sensitive to the order in which you change the settings when you ‘Edit…’ the Custom Settings in Image Info.
Lightroom gets itself tied up in knots and hangs; if left unattended it seems to make other open applications hang eventually as well. I’m running the latest version of LR, TTG Shadowbox 2.49, latest OS X, etc.

Not sure what the cause of this may be, but as I said I got it working OK in the end.

Thanks for a great piece of work! Preliminary implementation is at the link address above.

5 March 08 / permalink

I’ve gotten the spinning beach ball and associated hangups a few times changing Image Info as well. Seems to be an issue with the Web module. It happens inconsistently. I’ll often restart LR, do the exact same thing it was just hung up on, and it will work. Definitely strange.

5 March 08 / permalink

Thanks Matthew, 2.49 so far has not had any consistent script errors, I have only seen one and have not been able to repeat it.

Aloha!
Charles

Dan
6 March 08 / permalink

Hi Matthew,
I haven’t visited your site in awhile, but wanted to say thanks again for all of your HARD WORK! I’ve been trying to convince a few friends to switch from Aperture to LightRoom and your gallery templates have given them another good reason :)

Anyway,
I really like the Shadowbox gallery – the ease of customization you’ve added is fantastic…BUT captions are SO short. I’ve barely looked at the gallery template so maybe I’m missing something. Is there a place I should look in the code for editing the caption length to be 3 or 4 lines?

Thanks,
Dan

6 March 08 / permalink

Unfortunately not. The limited caption length is my one gripe with Shadowbox, and I haven’t found a good way of getting around it yet. Hopefully I’ll be able to hack it somehow in a future version, but I need to experiment more.

The best I’ve been able to do is allow the resizing of caption font-size. Taking it down from 16 to 10 gives you a lot more space for captions, though it’s still not enough at times.

6 March 08 / permalink

Hi…

This might be a really dumb question, but is there someplace where the TTG-Shadowbox-Gallery web gallery is documented? There are lots of panes to make customizations in the TTG-Shadowbox-Gallery Web Gallery in Lightroom, but I haven’t been able to find any documentation on exactly what they do or how to use them. I like experimenting, but some documentation to start with would help. There wasn’t any with the download. It’s probably right under my nose somewhere, I just need my nose pointed in the right direction ;-)

Having asked that, I was wondering how your demo gallery was created. The one thing I’ve been wanting from a LR Web Gallery (and other gallery creation software), is a way to create a main page with links to other pages, based on a folder hierarchy of images. I don’t know if TTG-Shadowbox does that automatically, but even if it’s semi-automatic (so you don’t have to edit links on EVERY generated page), that would be awesome! So how did the Gallery Index in the demo gallery get created, and link to the “sub-galleries” of images? And what exactly is XMLAutoIndex, and how does that fit into the picture?

I hope this is the right place to ask all this… the Shadowbox forum seems to deal just with the Javascript underneath everything, which is more low-level than I think I need.

Thanks a lot for your help! The Gallery looks great, and I’m dying to get to use it!

-Eric

7 March 08 / permalink

Hi Eric,

Admittedly, I’ve half-assed documentation for my galleries. Shadowbox options are documented here. I didn’t include all of the options in the LR gallery, but tried to include all of the relevant options to what LR outputs. Otherwise, I hope options will be self-explanatory. I may try to write a users manual at some point, but I’ve been pressed for time, and change the galleries so often, it hasn’t been very practical. I’m beginning to settle into a feature set, though, so maybe someday.

The gallery index from the sample was created using TTG XML Auto Index. See that page for information, and let me know if you have questions afterwards.

7 March 08 / permalink

I love this shadow gallery 2.49. It’s great BUT: Why no option like: allow right-click download.
I want it to be NOT possible to right-click and download the pics.
This option is available at some of the other TTG galleries but not this one. Is there a workaround or something to fix this?

7 March 08 / permalink

That option only exists in a handful of the Flash-based galleries. Using Flash, developers can employ a right-click interface or not. In an HTML gallery, it’s much more difficult to trump browser behavior. There are Javascripts and workarounds to address this, but they usually introduce other problems.

If it’s something you’d like to see in Shadowbox, you might try requesting the feature on the Shadowbox support forums. But, even then, a user could simply right-click the thumbnail image and select “Save Link As” to grab the larger photo.

Bottom line, anything you put on the web can be stolen. There is not surefire protection for your images. In nothing else, users can screen-capture your images.

9 March 08 / permalink

This is very awesome! I just updated all of my model galleries with this version. I love piclens! Question for the author or this group…

I have a model index page with thumbnails of each model’s gallery…when you click that, it heads to this shadowbox/piclens gallery for that model.

Question..how do I piclens enable my model index html page?

Also i would like to make some kind of link that would launch a picklens page that would stream through all of the model’s galleries.

Feel free to email me at chuckcondron@chuckcondron.com

thank you all!

http://www.chuckcondron.com if you want to see this gallery in action on a live site!

9 March 08 / permalink

I haven’t figured out yet how or whether it’s possible to launch PicLens from an index page. It’s something I need to investigate.

9 March 08 / permalink

Thank you for your hard work! I sent ya a donation today :)

11 March 08 / permalink

Matthew,
I downloaded TTG Shadowbox Gallery v2.51 last night. Wow it’s fantastic and with PicLens too. I had never heard of PicLens before – how cool is that! I’ve been working with it late into the night and am loving it. Thank you.

So now please excuse my diving straight in but I’ve got a couple of queries:

1. When I click on the Menu bar’s “Start Slideshow” the top bar of the slideshow displays the url of the image. How can I stop that from happeing?
2. I intend to put a link to “Get PicLens” on a top level page. Can I remove the “See this in 3d” etc. from the slideshow, just to make it look slicker?
3. When in the Piclens display, how can I remove the “PicLens for RSS >” and Google Search box from the top of the display?
4. My first gallery contains 90 thumbnails in 6 colums. Is there anyway of locking the Site Title, Collection Title and Menu bar at the top of the gallery so that it doesn’t scroll up out of sight when browsing down to the lower thumbnails? Is this a frames thing?

My first gallery is at:
www.johnbishop.me.uk/past_projects/Roberto%20Devereux/index.html

Many Thanks,

John

John Bishop
www.johnbishop.me.uk

11 March 08 / permalink

Hi John,

I’m glad you’re liking the gallery. Regarding your queries:

1. You can replace the URL with a logo by filling in the appropriate field in the gallery PicLens option, found in the Color Palette pane. You can see I’ve done this in my sample gallery. The logo should be about 26 pixels tall, and can be a JPG, GIF or PNG image.

2. Nope; it’s not an option PicLens Lite allows for.

3. I’m not sure you can remove these, but you might want to visit the PicLens site for more information. An upcoming version of the PicLens client should be implementing logos and music as well, like PicLens Lite does now. A logo might replace the RSS bit, but it remains to be seen how CoolIris will handle that implementation.

4. Edit the CSS file manually. This should do it:

#header, #menu { position: fixed; }

For some reason, I can’t connect to your gallery, John. Might be on a bad connection here, though. Internet here is sometimes wonky. Just one word of advice, though. You should eliminate spaces from your URL. Change the name of the Roberto Devereux folder to RobertoDevereux, Roberto_Devereux or Roberto-Devereux.

Cheers,
Matt

11 March 08 / permalink

Matt, Thanks for all of that.

1. Ok, I’ll sort out a logo. Could I point it to the idplate.png file? How can I mod this without re-esporting the gallery, as it takes a while with 90 photos?
2. Ok.
3. I’ll check out the PicLens website.
4. Sorry, I can’t quite get this to work:

I have edited the gallery.css file by adding #header, #menu { position: fixed; } on line 19, ie just above the line that starts #shadowbox_counter {
This has the effect of locking the header and menu at the top of the web page but:
a.) the header and menu do not span the full page width and are positioned over to the right.
b.) the text (site title, collection title etc.) and links on the header and menu aren’t also fixed in place.
c.) the gallery thumbnails scroll up over the top of the header and menu. I want them to scroll behind the header and menu.

Actually, I should have been much clearer in my first query: how can I fix in place everything on the gallery page except the gallery thumbnails, so that when I scroll down to thumbnails at the bottom of the page, all the information about the gallery remains in place and visible?

Does it matter where I add the #header, #menu { position: fixed; } to the gallery.css file?
I have also tried adding position: fixed !important as the first line of the #header section and also as the first line of the #menu section. It seems to work both ways.
BTW, what does the !important in the css file signify? Sorry I’ve coded in regular HTML, but not for a while.

I’ve got an extra little question, No.5:

5. I have noticed that I included an edited tif in the collection of photos for my gallery which means that on the gallery I have 2 thumbnails and 2 photos that look identical. How can I remove a thumbnail from the gallery, so that the other thumbnails flow up to fill in the new blank space?

Thanks for the heads up regarding my file naming; I knew when I was doing it that I should use an underscore but was being sloppy while testing the gallery, then when I saw the results of the gallery I got so excited I just had to upload it straight away! I’ll amend it and reload it asap.

My website is at www.johnbishop.me.uk
Follow the link to Past Projects
Then the link to Roberto Devereux

That should get you to your Shadowbox Gallery!

You may notice that just as the Gallery page loads it is preceded by a white flash while the page loads. Is their a simple way of having this be the same colour as the gallery colour.

Sorry to be a pain with all this. I so love how Professional and Stylish the gallery looks that I intend to revamp all my existing rather ugly galleries to TTG Shadowbox galleries, so I want to get it all spot on before I start doing that.
Many Thanks,

John

11 March 08 / permalink

Hi John,

1. You can point it to the ID plate PNG file, but if the images is too large, it will … be too large. I keep a shrunken version of my ID plate on my server and link all of my galleries to it. You can edit this by opening the photos.rss file and adding <logo url=“idplateSmall.png” /> below the <description> tag.

4. Adding !important to a CSS function tells the browser that the function should not be overwritten later in the cascade. Typically, functions below will overwrite functions above should they conflict; by setting a function !important, you ensure that it will not be overwritten. The way that Lightroom exports gallery.css, all semblance of a cascade is lost – the items are not ordered as they appear in the galleryInfo.lrweb file, but seem to be randomly assembled. To overcome this, Lightroom appends !important to everything. Makes post-export CSS editing a pain, it does.

I’ll have to play with the fixed header issue.

5. To remove a thumbnail, just delete the block of repeating code that contains it from the index.html file. The others will flow to fill the space.

I didn’t see the white flash on the page load, but I’m guessing it has something to do with your use of frames. Ensure that the background color of the frame-set page is set to the desired color, or maybe try setting a background color on the frame (can you do that?)

Your gallery looks great, by the way. Nice work.

11 March 08 / permalink

John, I accomplished your fixed header by adding the following to the gallery.css file. You may need to adjust the margin-top values to fit your layout.

#header, #menu { position: fixed !important; top: 0 !important; left: 0 !important; z-index: 999 !important;
}

#menu { margin-top: 68px !important;
}

p.collectionDescription { margin-top: 100px !important;
}

11 March 08 / permalink

Matt,
Thanks so much for all your advice and help.

1. The id Plate PNG file works great when viewing the PicLens slideshow, but I just get a little placeholder on the Flash Viewer slideshow. So we’re nearly there. Any thoughts?

4. The fixed Header issue is very nearly there, scrolling under the header beautifully, but:

a.) I can’t see the collection description at all;

b.) The top of the first row of thumbnails is cut off. How can I move the thumbnail gallery lower so that the top row isn’t cut off?

Are a.) and b.) the same thing?

I have messed with the margin-top value but can’t see it adjusting anything.. Values I have tried are 1, 10, 50, 75, 100. What am I doing wrong?

5.) Removing the thumbnail worked a treat. I also removed the corresponding code in the photos.rss file so that the extra photo doesn’t play in the slideshow.

Matt, thank you so much for your time, advice and explanations.

John

11 March 08 / permalink

Hi John,

a&b) Like I said, you might need to adjust the margin-top values for both #menu and p.collectionDescription. The values I punched in were for my demo gallery header size, and yours is probably different. With the margin set to a large enough value, things should bump down to where they’re visible. Did you put the ‘px’ on the end of the value? To wit, 50px, 75px, 100px instead of 50, 75 and 100.

If all that checks out, and it’s still not working, let me know and I’ll have a look at your code.

11 March 08 / permalink

Hi Matt,

Yes I included the px.
Here’s the start of my gallery.css file:

#metadata.collectionTitle.value {
}

.previous a:hover { background-image: url(../images/Previous.png) !important; background-position: 10% !important; background-repeat: no-repeat !important;
}

body { background-color: #222222 !important; text-align: center !important; font-family: Verdana, Arial, Helvetica, sans-serif !important; color: #C0C0C0 !important; padding: 0.00 !important; margin: 0.00 !important; font-size: 15px !important;
}

#header, #menu { position: fixed !important; top: 0 !important; left: 0 !important; z-index: 999 !important; }

#menu { margin-top: 68px !important;
}

p.collectionDescription { margin-top: 100px !important;
}

#shadowbox_counter { float: left !important; padding-left: 10px !important;
}

etc….

Thanks,

John

12 March 08 / permalink

John,

Custom made for your website:

#header { position: fixed !important; top: 0 !important; left: 0 !important; z-index: 999 !important; }

#menu { position: fixed !important; top: 75px !important; left: 0 !important;
}

p.collectionDescription { margin-top: 100px !important;
}

Cheers,
Matt

12 March 08 / permalink

Hi Matt,
You are so kind.
I have ammended the code in my gallery.css file.
I also added z-index: 999 !important for the #menu item.

Now the menu bar is below the header – fantastic, but the top thumbnails are still chopped off (more so in fact).

I have messed with the p.collectionDescription px size and it seems to have no effect.
I deleted the p.collectionDescription code and the page doesn’t change.

What I’m trying to see (fixed above the gallery thumbnails of course) is the metadata.collectionDescription item.

<p id=“metadata.collectionDescription.value” class=“collectionDescription”>Manchester Evening News Opera of the Year 2007</p>

Here is an excerpt from my current gallery.css file:

#header { position: fixed !important; top: 0 !important; left: 0 !important; z-index: 999 !important;
}

#menu { position: fixed !important; top: 75px !important; left: 0 !important; z-index: 999 !important;
}

p.collectionDescription { margin-top: 100px !important;
}

Thanks again,

John

12 March 08 / permalink

Oops! Good call on the z-index for #menu. That should be there; I forgot it.

Everything looks great in Firefox. What browser are you using? I think IE6 has issues with position: fixed.

12 March 08 / permalink

It’s IE7
Specifically v7.0.5730.11

John

12 March 08 / permalink

I found a document that references IE7 issues with position:fixed. Try replacing the DOCTYPE declaration with this:

<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”>

12 March 08 / permalink

And, if that doesn’t work, try adding this to the head of the document:

<!—[if lt IE 8]>
<script src=“http://ie7-js.googlecode.com/svn/version/2.0(beta3)/IE8.js” type=“text/javascript”></script>
<![endif]—>

12 March 08 / permalink

Matt,

No luck. I’ve added both of those to the gallery’s index.html file, but there doesn’t seem to be any change.
Do I need to add it to my top level home page as well?
I thought not as it doesn’t make a difference even when I load the gallery index file on it’s own.

Would it help if I emailed you a screen dump of how it looks on IE7?

John

12 March 08 / permalink

Matt I’ve just had a look at the gallery on a PC with IE6.
You’re right about the IE6 fixed problem – the gallery scrolls up including the header and menu as it used to in IE7 before we locked it down. That isn’t as problematic for me as not being able to see the top half of the first row of thumbnails in IE7, as I guess in time IE6 will be superseeded.
Thanks, John

12 March 08 / permalink

IE is ever the pest. Try adding margin-top to .lightboxgallery.

13 March 08 / permalink

Hi Matt, youv’e done it! Wow now the gallery looks really fantastic! Thanks you so very much.

As you suggested I added margin-top: 100px !important; to the .lightboxgallery coding in gallery.css and everything now works brilliantly – I can see all of the top line of thumbnails below the menu and the menu and header are fixed in place. It looks great in IE7.

So to recap, and to possibly help anyone else that might want to do this, here is a summary of the code that we have added to the gallerry.css file to fix the header and menu items in place above the thumbnails and to move the “lightbox” thumbnails lower down the page.

At line 19 in the gallery.css file I added:

#header { position: fixed !important; top: 0 !important; left: 0 !important; z-index: 999 !important;
}

#menu { position: fixed !important; top: 75px !important; left: 0 !important; z-index: 999 !important;
}

p.collectionDescription { margin-top: 100px !important;
}

and at the end of the .lightboxgallery coding (line 123) added margin-top: 100px !important; so that it looks like this:

.lightboxgallery { text-align: center !important; padding: 0.00 !important; margin: 10px auto 0 !important; width: 1008px !important; margin-top: 100px !important;
}

This works fantastically for me in IE7.
Matt you’re absolutely brilliant.

I have now created some other galleries called Bluebeard, Pimpinone, Semele, The Rake’s Progress and Un Giorno di Regno and ammended the page linking to them. They are now at www.johnbishop.me.uk/show_photos.htm

When I have created a few more galleries I intend to replace the show_photos.htm file with one of your Index or AutoIndex galleries, so the whole thing will really look the business! If time allows I will one day get around to recreating my existing old FrontPage galleries to your wonderful TTG Shadowbox Galleries.

Matt, thank you once again for sorting all this out for me and walking me through it. I have learnt alot from you and now have some really good looking galleries to display my stage lighting. Thank you.

I will sing your praises over at www.lightroomforums.net
and if you don’t mind PayPay you something to say thanks.

John

13 March 08 / permalink

For anyone reading the above and using it as reference for editing your own CSS, line numbers are likely to vary from one gallery to another, or from one version of the template to the next. But you can put the code anywhere, thanks to the !important designations.

John,

Very glad to hear you’ve got everything working cross-browser. Your implementation is looking very nice, and your lighting work is great. Lighting is a major weakness of mine in photography, and something I’m hoping to improve if/when my school plans for the Fall pan out. Also, thank you for the very generous donation.

If you wouldn’t mind, would you post a link to your website in the comments here? Your site is a great example of how to integrate the galleries into an existing site design and may serve to inspire others.

13 March 08 / permalink

Matt,

Thanks for your comments.
Lighting is so crucial – it is after all what we’re trying to capture and often set’s a great photo apart from a good one.

I’ve posted a link as requested,

John

13 March 08 / permalink

I agree wholeheartedly on the importance of lighting. I try to make good use of natural lighting, but know very little about artificial lighting. That will hopefully be remedied before long.

18 March 08 / permalink

I have a problem on my iMac, same with the LRGComplete 1.1.1 template which is that some of the panes in LR, ie. the page background colour box in appearance, are off the right side off the program. There is no way to bring them back in so the colour box is clickable. I saw someone else post this in relation to the LRG Complete template, has anyone else encountered this issue? any way to fix it?

thanks

18 March 08 / permalink

The problem may be that our control panel contents are wider than your control panel, so things are getting pushed off the edge of the screen.

To fix, grab the edge of the control panel with your mouse, click and drag to the left to widen the panel. Restart Lightroom, and the controls should fit more nicely. I typically work with the right-hand Web module panel at full width.

21 March 08 / permalink

Hi. Love the Shadowbox gallery, and the others you’ve done. This latest is one of the finest I’ve seen or worked with. Quick question: I’d like to be able to have my logo float at the center rather than being anchored at left on some occasions, to be consistent with the rest of the style on my site. See http://thomasgraves.com/testingweb for an example of how I’d like this to look (but you have to resize your browser to get it to center, which I’d like it to do automatically). I’m only a beginner at coding & CSS, so I could use some guidance here. Also, I actually uninstalled 2.5.3 and replaced with an older version so that I could avoid having the arrow overlay on the pictures. I find the “non-arrow” navigation much more elegant. But I also will likely want to keep up with your upgrades, so I’m wondering if there is a quick way in the coding that I can keep those from showing up.

Lastly, I do a blog where I occasionally feature series of photos, and it seems like this would be an ideal way to have those displayed. Is there a way to embed a gallery in the fairly confined space afforded there? If it helps to see, my blog is http://light-shoot-print.com, hosted by blogspot.

Thanks in advance for your time here, and for your work in creating these.

Thomas

21 March 08 / permalink

Hi Thomas,

Unfortunately, there’s no easy way to embed the gallery in a blog.

If you don’t like the arrows, you can disable them in the Shadowbox options, located in the Color Palette pane. For Shadowbox Skin, select “Default”.

As for centering the logo, the header would need to be restyled entirely. It’s currently set to position: absolute and positioned relative to the header’s top left corner. I’ll need to look at it, maybe make an adjustment to two to make this an easier mod.

21 March 08 / permalink

Thomas,

Feature added: In version 2.54, the ID Plate can be centered.

22 March 08 / permalink

Sweet! Thanks for the “centering.”

I guess I should have pointed out; I do like the mouse-over navigation on the images, but would like to do that without the arrows as in previous versions. If you turn the skin back to default, you don’t get to navigate that way, though I guess it’s really a fairly small point. Thanks, though. This really is great. In fact I sent you a donation yesterday, and with crossing the dateline and all you should get it in about a week. Sorry i had to do it in dollars..

TG

22 March 08 / permalink

The easiest way would be to delete the Next/Previous PNG files from the gallery. The image would remain clickable, but no images. I’m not sure what you mean by “previous versions”, as Shadowbox has always had the arrows, and nothing before them. Unless maybe you’re thinking of the Slimbox gallery.

You’ve confused me on the donation, as well. Crossing the dateline? Dollars? Did you mail it, and, if so, where did you mail it to? In any case, thank you. :)

23 March 08 / permalink

Sorry to confuse you on the donation. It was made through Paypal, from your link. But from what I can tell you’re in Korea, yes? And given that the U.S. Dollar is about the weakest currency on the planet, next to the currency of Zimbabwe, I felt bad about giving you something that wasn’t worth more. Depending on which way it had to travel to reach you, it might have to cross the dateline.

Probably I shouldn’t write up those jokes when I’ve been working late in to the night.

And for me, at least, the 2.4.x versions allowed the on-picture navigation but did not display the on-pic arrows, only the “link hand.” Once I got to the 2.5x versions I started seeing the arrows. I’m on a mac running leopard.

The reason I’m not crazy about the arrows is that even if you move your mouse off the image, if you’re still in the same column (or several columns) of pixels where the mouse-mapping is active on the image, you still have these big arrows covering up part of your image. But I’ll go in and delete the png’s from the gallery.

Thanks again. I must say, it is folks like you who have really enhanced and bettered the Lightroom interface, and it is much appreciated by menial working stiffs like me.

23 March 08 / permalink

Say, one more question (sorry to be so persistent here) —

What are the “listen overlay” and “viewport padding” options? I don’t see any effect when I make changes in these settings, either within Lightroom or when viewing exported galleries.

Thanks.

TG

23 March 08 / permalink

A complete list of options supported by Shadowbox can be found here.

Also, checked into PayPal. Donation received, thank you kindly. :)

25 March 08 / permalink

Hi Matt,

Is there a way of transforming the position of the copyright legend from bottom left to the middle and altering the opacity?

Thanks
Hoddo

25 March 08 / permalink

Hoddo,

I’m not sure what you mean. Are you talking about the Watermark? If so, that’s a Lightroom thing, and there’s no way to adjust it right now. A lot of users have been asking Adobe for customizable Watermarks, though, so let’s hope they get it done in 2.0.

28 March 08 / permalink

Hi, I am having trouble getting this to show up in “Gallery” section on the top right hand side. I just wanted to make sure all I have to do is copy “TTGShadowboxGallery” into the “Web Galleries” folder to get it to work.

Thanks!
Adam

28 March 08 / permalink

Adam,

That’s all you have to do. But, be wary that your zip extraction app might be creating an extra folder. The path should look like this:

Lightroom/Web Galleries/TTGShadowboxGallery/ …

And not:

Lightroom/Web Galleries/TTGShadowboxGallery/TTGShadowboxGallery/ …

28 March 08 / permalink

Thanks Matthew,

I still seem to be missing something.

When I unzipped the file it was like this:

http://portraitsoftheworld.com/TTG/ForMatthew2

I deleted the “.lrwebengine” and then put the folder in like this:

http://portraitsoftheworld.com/TTG/ForMatthew1

Have I done something wrong?

Thanks again!
Adam

28 March 08 / permalink

Actually, you didn’t need to delete the .lrwebengine. I always forget about that. Path should look like:

Lightroom/Web Galleries/TTGShadowbowGallery.lrwebengine

That looks like the right location, though. It should be appearing in the Galleries pane in the Web Module.

28 March 08 / permalink

I have put it back but still no luck. I will keep trying options and will let you know if I find a solution.

29 March 08 / permalink

In your screenshot, I see you have several LRG galleries installed. Are they showing up in the Web module?

29 March 08 / permalink

Yes the LRG ones are working.
http://portraitsoftheworld.com/TTG/ForMatthew3

Here’s how I have your folder labeled…

http://portraitsoftheworld.com/TTG/ForMatthew4

29 March 08 / permalink

Adam,

I emailed you a new file. Try that.

Also, what version of Lightroom are you using? If not 1.3.1, it might be that Lightroom isn’t finding the gallery because Lua support wasn’t added until that version. If you haven’t upgraded to the latest build, please do so.

Rob
30 March 08 / permalink

Hi Matthew,
I have tried the Shadowbox gallery and it looks great. However, I cannot get it to work with Piclens in my browser(firefox). It won’t work with the Piclens lite button enabled either. I have tried every combination of settings and Piclens never gets beyond the “loading” page. Could it be my webserver package is missing some essentials to run piclens on my site rather than a problem with the gallery? (Package info found here, it’s the “home” package: http://order.1and1.com/xml/order/Hosting;jsessionid=4B72C7037F401EE03E473F1ABBFD7FDB.TC60a?__frame=_top&__lf=Static#block8
Using Lightroom 1.31, latest Firefox, and latest Shadowbox 2.55.
I can view other sites (including your example gallery with piclens)
Thanks for the visionary work.
Rob

30 March 08 / permalink

Rob,

You gallery is missing the photos.rss file that PicLens requires to display photos. My version of 2.55 is outputting the RSS files as it should; not sure why yours wouldn’t be. Try downloading the template again and installing a fresh copy; generate the gallery again and ensure the photos.rss file is present in the exported gallery.

Whatever the problem, it should have nothing to do with your server.

Cheers,
Matt

Rob
31 March 08 / permalink

Thanks for your reply Matthew.
My gallery is outputting the photos.rss file and it is showing in the files on the server. Still no luck though.
I tried reinstalling, as well as using a different gallery (slimbox), same issue.
Thanks,
Rob.

31 March 08 / permalink

Rob,

When I look at your website, I’m seeing the gallery, but you’re right, PicLens isn’t working. I should be able to access your RSS file at http://www.jagodkin.com/photos.rss, but the file isn’t there. I’m not sure where things are going wrong for you, but that’s the reason PicLens isn’t working.

7 April 08 / permalink

Everything is working and looks great! Thanks!!!

I am not sure if there is a way to make links here…

http://portraitsoftheworld.com/ValleyoftheKingsandQueens/ValleyoftheKingsandQueens.html

http://portraitsoftheworld.com/Dubai/Dubai.html

http://portraitsoftheworld.com/EdufTemple/EdufTemple.html

http://portraitsoftheworld.com/Esna/Esna.html

http://portraitsoftheworld.com/KomOmboTemple/KomOmboTemple.html

http://portraitsoftheworld.com/Aswan/Aswan.html

http://portraitsoftheworld.com/PhilaeTemple/PhilaeTemple.html

http://portraitsoftheworld.com/UnfinishedObelisk/UnfinishedObelisk.html

http://portraitsoftheworld.com/AbuSimbel/AbuSimbel.html

http://portraitsoftheworld.com/AbuSimbelTemple/AbuSimbelTemple.html

http://portraitsoftheworld.com/Cairo/Cairo.html

http://portraitsoftheworld.com/SaharaDesert/SaharaDesert.html

http://portraitsoftheworld.com/GreatPyramids/GreatPyramids.html

http://portraitsoftheworld.com/HabuTemple/HabuTemple.html

http://portraitsoftheworld.com/LuxorTemple/LuxorTemple.html

http://portraitsoftheworld.com/OntheNile/OntheNile.html

http://portraitsoftheworld.com/Luxor/Luxor.html

16 April 08 / permalink

Hi Matthew,

I work with windows xp and lightroom 1.4.1. When i try to make a change on shadowboxGallery allways shows this script message:
http://www.lukisite.net/lightroom01.jpg
The message is in german, but i think you understand it.
Please can you help me what is wrong? Maybe it is a fault that other people ask you before. But i can’t something about this
I hope you can help, thanks a lot
looks

16 April 08 / permalink

@looks: It’s a script message thrown up by Internet Explorer, and there’s nothing I can do about it. Just click through it and the gallery should work as intended. Lightroom 2.0 has measures in place to suppress Internet Explorer’s problems, and the messages shouldn’t occur in LR 2 beta.

Cheers,
Matt

16 April 08 / permalink

Hi Matt,

I tried with lightroom 2 beta and there is no script message. but I have an other problem when I like to configure Shadowbox. I tried with a different options and always when I click on a thumb the big image shows on the left corner with a white background and I can’t go back. I also tried to export and there is the same problem. Maybe I am a stupid man and I’m not understand how it works. It is a very nice designed gallery and I like to use it for my photos. the same problem I have with the shadowbox index – on click a white background and nothing more. Please can you help me again. thanx a lot, looks

16 April 08 / permalink

@looks: It sounds like the Shadowbox scripts aren’t loading. Are you using the latest version, 2.6? I have it running fine here in the LR2 beta.

16 April 08 / permalink

Hi Matt,

I have from all your galleries the latest version. client response, slimbox, Shadowbox and Shadowbox index have the same problem. Polaroid not shows big picture. PhotoStack online shows a white square and nothing starts, also no picture. Flash Nifties, Html, Postcard, Rounded and Simple Viewer works fine. I don’t understand it

16 April 08 / permalink

Hi Looks,

I’m not quite sure what to tell you. Everything is running fine here, and I’ve had good reports from other users running Windows and Mac versions of Lightroom. Is there anything unusual about your system setup? Have you modified the templates in any way? Did you try deleting the templates and installing fresh copies?

16 April 08 / permalink

Hi Matt,

I have all the galleries copied in the webgalleries folder from lightroom. First unpacked and than copied. Each gallery has a folder like TTGShadowboxGallery. Then I started the lightroom (1.4.1 or 2.0 beta)and i can see all the new galleries. when i start the Shadowbox i will see this:
http://www.lukisite.net/test01.jpg
then I click on a thumb and I will see this:
http://www.lukisite.net/test02.jpg
and i can go back. I must start an other gallery and then come back to shadowbox to see the thumbs again.
Also when I export the shadobox it is the same. I don’t understand where can be the fault. Maybe because I have a german operating system?
The strange thing is, that the rounded Gallery works and there are also javascripts.

16 April 08 / permalink

and this is the list of files that I have in the Shadowbox folder:
http://www.lukisite.net/test03.jpg
I think this are all the files, that you have in the zip file.

16 April 08 / permalink

Are your files organized as you’re showing me in test03.jpg? No folders, just a bunch of files all thrown in together? If so, that would explain the problem. The Javascripts, images, and CSS files should all be in nested folders within the resources folder.

16 April 08 / permalink

do you mean in the shadowbox-folder I have to create a resources folder and put all javascript, images and css in this new created folder “resources”?

16 April 08 / permalink

I’m going to email you a screen capture …

26 April 08 / permalink

Absolutely excellent work! Thank you.

Request … it would be nice to limit the number of images on a single page, and have a “next page” option. Say I want to only show 12 images on a page, but I have 50 images, then if it had several pages with a “next” and “back”, that would be a nice option. Helps when there are tons of images in a gallery and load time can be a bit much.

Thanks again!

28 April 08 / permalink

Hi Matthew, ive looked all over but could not find the solution. Say i have a 50×50px image and then a 1200×1200 image. Do they both have to be resized to the same size? How would I leave all the images at their default sizes, so the 50×50 would not get stretched?

Cheers,

Alex

28 April 08 / permalink

Excuse my stupidity! Ive figured it out)

19 June 08 / permalink

Hi!
I wonder if it is possible to move the pictures a bit higher up on the screen.
John

20 June 08 / permalink

Hi
I have been trying to set up the shadowbox gallery and it works so far. I have 2 points, where I am not sure, whether I am not configuring it properly.
I am using a white layout, see url.

i) Despite having the navigator for the shadow box set to black, it still shows up as white
see http://www.picsbymike.de/tmp/navigator_white.jpg

ii) The caption is shown for the thumbnails, but not for the shadow box. Is this intentional? From the description it did not appear that way.

Thanks for clarifying.
Cheers,
Mike

20 June 08 / permalink

ii) is solved, since I forgot to check the caption option. Sorry about that.

22 June 08 / permalink

Mike,

Thanks for the heads up on the Nav color bug. Will get it fixed for the next version.

Cheers,
Matt

24 June 08 / permalink

Small bug (I think) with images that have an ampersand (&) in their title or caption – photos.rss no longer parses correctly, and piclens doesn’t pick up that there’s a feed on that page, thus is completely non-functional for that site. No little play icon, etc.

Easily fixed by the user – remove the & – I submit it here just so that people are aware of it; it wasn’t until I tried to parse the rss file in firefox that I spotted the problem.

26 June 08 / permalink

I get the following error message each time I click on a field in the Web module where you configure the gallery:

Internet Explorer Script error
Line: 521
Char: 4
Type mismatch
agwpg:/localhost:1036/index.html

Do you want to continue to run scripts? Y/N

I click Yes and everything seems to be OK. Is there any way to avoid this error message?

Thanks! I LOVE this gallery!

26 June 08 / permalink

There is not. The error should cease to be in LR2, though.