Hi krizinbizz,
The first problem I’m blaming on someone being to clever when they fixed my dodgy MYSQL table code. The proper way to fix it would be to download the new version of AutoGallery.inc.php that I’ve just fixed (Sorry for the constant small updates, btw!) and do a "drop table [prefix]autogallery_info" (probably "modx_autogallery_info") on your database. If you have lots of titles and things already set up you can just modify the table to allow NULL values for title and description...
As for the second problem I can’t see a cause in the AutoGallery code, but its Sunday so I haven’t checked it thoroughly; I’ll have a proper look tomorrow. It might just start being happy when we fix the first problem...
Ramsay
Hi KKelly,
The folder full of jpgs needs to be in a folder within your site’s root, specifically under "assets/galleries/". The name of the sub folder is important but up to you.
There are several ways of calling the snippet. You can call "[!AutoGallery?gallery=NAMEOFFOLDER!]". This will display the gallery with all of the default options. Alternatively you can just call "[!AutoGallery!]" and the - assuming your gallery page has the alias "gallerypage" you can go to the URL "gallerypage?gallery=NAMEOFFOLDER". Finally the simplest but least versatile is to call "[!AutoGallery!]" alone but name the folder with the page id of the gallery page.
The second option gives the most complex site for the simplest code, since you can now have as many galleries as you like by creating more folders and linking to gallerypage with different values in the "gallery=" part of the URL. However it prevents you using different styling for different galleries (unless you write a snippet to change CSS or something based on the gallery request argument) and it prevents you having different access control for different galleries.
Hope this helps - I know its not really step by step! See what you get from that and then let us know how it goes and what questions you have about the more advanced options.
Ramsay
Hi,
The "more complex" example will load in greybox if you add all the greybox includes to the top of the page.
Most lightboxy things require you to include a few JS scripts and CSS files, then add something to the links you want to be boxed. In greybox’s case its the ’rel="gb_pageset[NAME]"’ part.
You will need to read the docs for your chosen box displayer though.
Ramsay