The Turning Gate

Adobe Lightroom Web Engines, Tutorials and Resources

TTG Auto Index 2.01

by theturninggate on April 15, 2009

TTG Auto Index 2.01 is now available. This release includes a bug fix for those using the engine in Shadowbox mode. Users not using Shadowbox can skip this update.

{ 23 comments… read them below or add one }

Steve April 17, 2009 at 7:53 pm

OK, I guess I’ll be the first to admit ignorance…I see the announcement–how do I get the update?

Reply

theturninggate April 17, 2009 at 8:13 pm

Updates are always available from the URL you received when you purchased the gallery. The URL is valid for five uses, then expires.

Reply

gilles auslender April 21, 2009 at 7:42 am

merci pour ces templates si pratiques et si bien faits!!!!

Reply

Teddy May 13, 2009 at 8:01 am

Hello,

I had a big problem with auto index 2.1 , when i call it, it write : Warning: Invalid argument supplied for foreach() in /mnt/104/sdb/7/1/photed/galerie/index.php on line 80

you can see it at http://photed.free.fr/galerie/

How can I do? (sorry for my bad english, I’m french lol)
Thank you!

Reply

theturninggate May 13, 2009 at 10:26 am

Hi Teddy,

As you can see checking http://photed.free.fr/galerie/?php, your server’s version of PHP is out of date. Please update to the latest version of PHP, which I believe is 5.2.6.

Cheers,
Matt

Reply

Teddy May 13, 2009 at 5:23 pm

Hi Matt,

Thank you for your quick answer.
I’ll call my provider to know how i can do this.
And thanks too for your work!!

Good continuance
Teddy

Reply

Sean May 13, 2009 at 9:00 pm

I am having trouble with this, got it installed and it sees the sub folders but all it shows is gibberish. to be exaxt the links say “” I tried all sorts of different autoindex options, updated PHP to the latest and still have the same problem, am i missing something?

See http://galbraithla.com/viewer/

Thanks,
Sean

Reply

Sean May 13, 2009 at 9:02 pm

opps filtered the gibberish, this is it: ?=$albums[$i]['title']?

Reply

theturninggate May 13, 2009 at 10:38 pm

Okay, it looks like you’re using the LR Flash Gallery with TTG XML Maker, am I right?

1) Make sure you’re using TTG XML Maker w/ Thumbnails.

2) Try leaving the Album URL blank in the XML file. The gallery should find the URL on its own.

Let me know if that works.

Reply

Sean May 13, 2009 at 11:03 pm

Thanks for the quick reply. No I was not using the XML maker, I just manually created some autoindex.xml files following the stated rules, and I also tried some blank autoindex.xml files.

After your reply I installed the TTG XML Maker and ran though it. the output of it is exactly the same as what I had created manually though, and my problem remains.

Here is my autoindex.xml:

test title
test Description

Thanks again,
Sean

Reply

Sean May 13, 2009 at 11:07 pm

opp forgot again that this comment system strips some of the code out, here it is with the brackets replaced:

{?xml version=”1.0″ encoding=”UTF-8″?}
{album}
{thumbnail}{/thumbnail}
{title}test title{/title}
{description}test Description{/description}
{url}{/url}
{/album}

Reply

theturninggate May 14, 2009 at 7:15 am

Hi Sean,

As you can see here, http://galbraithla.com/viewer/?array, the information is being parsed correctly. For whatever reason, it seems the PHP just isn’t running on your server. I wonder whether it might be something to do with your server’s PHP configuration. Do you know whether the installation supports the Glob function?

I don’t know whether it would be a resource to you or not, but you can see my PHP configuration here.

Reply

Richard May 17, 2009 at 9:35 pm

Hello!
Is there a hidden setting I can use to order the appearance of the indexed galleries? It is clear that Auto Index alphabetizes them, but I would like to have the most recent ones appear at the top (without, preferably, having to make my titles go in reverse). Any ideas? Thanks, and thanks for some great work.
RD

Reply

theturninggate May 18, 2009 at 7:05 am

Richard,

Galleries are ordered alphabetically by folder name; the order can be reversed by flipping a boolean toggle within the PHP, as documented above. The way to set them in chronological order is to name the folders with numbers, i.e. 01-Venezia, 02-Firenze, 03-Roma, etc., and then to set them in reverse order, so that as you continue to add galleries, newer galleries with higher numbers will float to the top of the page. Alternatively, name the folders by date, i.e. 20090430-Venezia, 20090501-Firenze, 20090505-Roma, and reverse order them.

Reply

Richard May 19, 2009 at 6:24 am

Thanks! Looks great!

Reply

Karl May 25, 2009 at 10:02 pm

Hi Matthew,

I just installed AutoIndex 2.01, (LR 2.3), and can’t seem to get the shadowbox function to work. All the galleries display, but without the shadowbox. Followed the instructions on the TTG AutoIndex home page, but no dice. Any suggestions?

Thanks!

Reply

theturninggate May 26, 2009 at 3:58 pm

You’re visiting the shadowbox.php file (or whatever you might have renamed it) when you hit the page in your browser?

Reply

Harry June 2, 2009 at 6:33 am

@theturninggate
Hi Sean and Matthew,

The problem is a setting in th ePHP.INI file. Search for short_open_tag. The default setting is “Off”, switch it to “On”.
This, however is not recommended, see also the comment on it inside PHP.INI.

A better solution would be changing <?= into <?php print

So, for instance:
<img src=”" class=”thumbImg” title=”" alt=”" />

should be changed into:
<img src=”" class=”thumbImg” title=”" alt=”" />

Enjoy!

Reply

Harry June 2, 2009 at 6:36 am

@Harry
Bugger… the php-code in my reply to you is neatly translated by PHP :-)

But I think you can undertsand it anyway, see the index.php file for the code which has to be changed.

Reply

theturninggate June 2, 2009 at 10:53 am

Hi Harry,

The PHP showed up in my email, if not here on the site. Thanks for the assistance. I’ll crack things open for a look and try this out. Does this change go into my index.php file, or into one of the php INI files?

Cheers,
Matt

Reply

Harry June 2, 2009 at 12:45 pm

@theturninggate
Hi Matt,

The best solution is to change the index.php file.
Inside the For-loop block which outputs the HTML-code, you’ll have to change <?= into <?php print

So that’s in four lines of code.

I had the same problem as Sean, I’m using IIS5.1 with PHP 5.2.x (standard installation)
So I think that other users who use IIS in combination with PHP will have the same problem.

Harry

Reply

Clayton July 31, 2009 at 7:45 pm

Hi Matt.
I’m having trouble getting the thumbnail size to appear LARGER in the index. I’ve re rendered the index a couple of times adjusting the size of the box and increasing the thumb size, but the thumbs always appear quite small. What am I missing? Is there something in the code I can adjust to make the thumb fill the box?
Thanks again!!
Clayton

Reply

theturninggate September 8, 2009 at 5:39 pm

You need to increase the size of the thumbnails used in your galleries. The index gets it’s thumbnail images from the /thumbnails/ folder in each gallery.

Reply

Leave a Comment


Previous post:

Next post: