• May
  • 03

TTG XML Shadowbox Auto Index

Current version 1.1

TTG XML Shadowbox Auto Index (it’s a mouthful, I know) works just like TTG XML Auto Index, but launches galleries in a Shadowbox overlay atop the index page. This is ideally used with Flash-based galleries, such as SimpleViewer, AutoViewer, Tiltviewer, etc. which lack their own space for header and site navigation, as it allows the user to easily return to the gallery index by closing the shadowbox.

TTG XML Shadowbox Auto Index 1.1

Download | Sample Index | Forum Thread | Installation

System Requirements

This gallery requires Adobe Lightroom 1.3 and a web server running PHP 5.

Usage

Setup is identical as for TTG XML Auto Index. See that documentation for instructions.

Changelog


v1.1 (2008-05-03)

Official release.

v1.0 (2008-04-07)

Preview release.

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 »

Nicolas
5 May 08 / permalink / feed

Thanks a lot for this gallery index !

By the way, I’ve installed it in LR, and when I try to use it in the Web section, a script error is appearing:
Lign : 2
Car : 7587
Error : Error non specified
Code : 0
URL : agwpg://localhost:1025/index.html

Is there a solution ?
Thanks again !

5 May 08 / permalink / feed

Hi Nicolas,

It’s a LR vs. IE thing. The error should be repressed in LR 2 and LR 2 beta. Using LR 1.x, you should be able to click through the error and keep using the gallery.

Frederic Harster
5 May 08 / permalink / feed

Hi Matthew,

For some reasons a part of the PHP code isn’t executed on my box, viewing the source code in the browser shows this :

<div class=“albumBoxContent”>
<div class=“albumThumb”>
<img src=”<?=$albums[$i][‘thumbnail’]?>” class=“thumbImg” title=”<?=$albums[$i][‘title’]?>” alt=”<?=$albums[$i][‘title’]?>” />
</div>
<div class=“albumDescription”>
<p><strong><?=$albums[$i][‘title’]?></strong></p>
<p><?=$albums[$i][‘description’]?></p>
</div>
<div class=“albumLink”>
<a href=”<?=$albums[$i][‘url’]?>” class=“shadowbox” rel=“shadowbox[gallery]” title=”<?=$albums[$i][‘title’]?>”><span>Open Album</span></a>
</div>
</div>

However when I query the page with ?array I’m served with a correct array populated with the data found in the autoindex.xml of a subfolder.

Any idea as to what could prevent the code to be executed ? I’m not used to the ‘<?=’ stuff though.
Thanks,
Fred

5 May 08 / permalink / feed

Hi Fred,

What you say “my box”, is that to mean you’re trying to run the generated gallery locally? It should be placed on a web server to run properly. Also, the web server should support the glob PHP command; some servers do not. Can you tell me a bit more about your setup?

Cheers,
Matt

Robert
5 May 08 / permalink / feed

Hi Matthew,

Thanks for the great galleries, is there a limit to the length of the domain name? I am trying to set up a gallery and have two domains one is 14 chars the other is about 30 chars, both are set up as add-on domains with identical config, but only the shorter one displays content – pictures etc.

Thanks,

Robert

Frederic Harster
5 May 08 / permalink / feed

Matthew,

Thanks for your help. The ‘box’ was actually refering to the webserver. You can have a look at the phpinfo() on the page where the problem occurs :
http://www.fhphoto.eu/essays/index.php?php

5 May 08 / permalink / feed

@Robert: The length of the domain name shouldn’t matter.

@Frederic: Your server’s PHP is up-to-date, so that’s not the problem.

@Both of you: I’d recommend contacting your hosting service providers for assistance. You both seem to be running into server-related issues. Good luck!

Frederic Harster
6 May 08 / permalink / feed

Since I provide myself with the hosting service I had to find a way to make it work ;)

FWIW, here’s the code I used, only missing echo/printf it seems :
<div class=“albumBox”>
<div class=“albumBoxContent”>
<div class=“albumThumb”>
<img src=”<?php echo $albums[$i][‘thumbnail’]; ?>” class=“thumbImg” title=”<?php echo $albums[$i][‘title’]; ?>” alt=”<?php echo $albums[$i][‘title’]; ?>” />
</div>
<div class=“albumDescription”>
<p><strong><?php echo $albums[$i][‘title’]; ?></strong></p>
<p><?php echo $albums[$i][‘description’]; ?></p>
</div>
<div class=“albumLink”>
<a href=”<?php echo $albums[$i][‘url’]; ?>” class=“shadowbox” rel=“shadowbox[gallery]” title=”<?php echo $albums[$i][‘title’]; ?>”><span>Open Album</span></a>
</div>
</div>
</div>

6 May 08 / permalink / feed

I’m not sure whether it’s a good or bad thing being your own tech support. ;)

Am I to understand that it’s going now?

Frederic Harster
7 May 08 / permalink / feed

Definately a bad thing indeed X.x
However it works now, after adding those ‘echo;’.
On a complementary note, may I suggest you offer a way to get rid of the debug/info options through $show on export ? Your templates are quite popular and I can easily think of people trying to make some use of phpinfo(). Not a big deal though, it can easily be done.

anuj
27 June 08 / permalink / feed

HI Matthew,

Thanks a lot for sharing your work with the rest of us!.. I’ve been having a fun time trying ot set up my galleries using your lightroom templates.

One question though (and this might be off-topic in this thread).. What if I want my visitors to be able to leave comments on individual photos or galleries? Do you have any scripts/recommendations for that?

I like the control I get over presenting my photographs in my own site (minimalistic, as compared to Flickr’s clutter).. but I want commenting abilities too.. Any suggestions or recommendations?

Thanks

Anuj

27 June 08 / permalink / feed

Anuj,

Commenting would probably require some kind of PHP. None of my galleries support it, but there is a comment gallery on offer from LightroomGalleries.

27 June 08 / permalink / feed

Hi Matthew..

I figured PHP would be required.. :(

Let’s see.. I found this.. http://www.gentlesource.com/comment-script/ .. to help add commenting systems on webpages via simple PHP.. May try it out..

I’ll also take your suggestion and look up LightRoomGalleries…

Thanks again…

-Anuj

p.s.
I’ve got a rudimentary couple of albums going @ http://www.anujpradhan.com/photography

I have 3 flash galleries, and one shadowbox gallery.. within the “XML Shadowbox Auto Index”. (Kinda weird to see a shadowbox within a shadowbox.)
Flash is so nice, but I guess I should try HTML as it is more browser and search engine friendly.. or so I’ve been told. Is it possible to have an HTML version of Simpleviewer? Simpleviewer is the best… simple and minimal…

27 June 08 / permalink / feed

You can embed SimpleViewer into an HTML page, but SimpleViewer itself is a Flash application. And yes, HTML pages are more search engine friendly. Flash content cannot be searched via search engine.

Name:

Email:

URL:

Comments support Textile formatting & Gravatars.

my personal information