Is there an updated version of the shortcode.php file after all the customization? Would be nice.
My personal opinion: for a portfolio theme, there should be a much more elegant and powerful way of adding galleries. I have no problems paying $20 or $30 extra for the theme, because that saves me hours of adding image URLs manually, and I am sure all of those participating in this thread will agree.
That shortcode.php hacking isn't good, because although it works, it's of no use to those who use the standard theme.
Just my 0.02.
Helmar
PS. In the age of Web 2.0 and AJAX, creating and managing galleries should be point and click, drag and drop. :)
PPS. The other problem with this shortcode is that the lightbox brings up the thumbnail (smaller version) rather than the large one which would have to be specified in the fancy_images tag itself. That's cumbersome. A better solution needs to be found here. The foundation is good, but the final execution lacking.
EDIT:
1. Instead of going bonkers with the counter == 3 stuff, just do use PHP's modulus (%) function:
if ($sidebar == '') { if ($counter == 2 || ($counter+1)%3 == 0 ) { $last = 'last'; } }
else { if ($counter == 1 || ($counter+1)%2 == 0) { $last = 'last'; } $col = 'one_half'; }
Works on a no-siderbar thing for me.
The other thing I suggest those who use galleries from digital cameras who have a sequenced number is to install the exec-php plugin and rather than listing each image on its own, just do this, obviously with your paramaters.
[fancy_images]
[exec]
// put all your filenames in here, as uploaded to Wordpress via the Media Upload.
$image_set=array('IMG_2915.jpg','IMG_3176.jpg','IMG_2820.jpg','IMG_2821.jpg','IMG_2835.jpg','IMG_2836.jpg','IMG_2847.jpg','IMG_2849.jpg','IMG_2852.jpg','IMG_2856.jpg','IMG_2858.jpg','IMG_2859.jpg','IMG_2860.jpg','IMG_2861.jpg','IMG_2868.jpg','IMG_2870.jpg','IMG_2871.jpg','IMG_2872.jpg','IMG_2877.jpg','IMG_2891.jpg','IMG_2892.jpg','IMG_2893.jpg','IMG_2894.jpg','IMG_2896.jpg','IMG_2903.jpg','IMG_2933.jpg','IMG_2961.jpg','IMG_2997.jpg','IMG_3084.jpg','IMG_3125.jpg','IMG_3142.jpg','IMG_3170.jpg','IMG_3180.jpg','IMG_2869.jpg','IMG_2901.jpg','IMG_2918.jpg','IMG_3101.jpg','IMG_3133.jpg');
// Loop through the array, spitting out the proper URL for fancy image treatment.
foreach($image_set as $k => $v) {
echo 'http://www.constellationhouse.co.za/wordpress/wp-content/uploads/2010/12/'.$v.'<br />';
}
[/exec]
[/fancy_images]
This is very plain and simple, I admit, but may help someone around here.