Re: smd_gallery: super-flexible gallery generator

Ok, I gave it one last try with asy_wondertag as you recommended… But it does not render the gallery images,

Ah yeah, bogus info again, sorry I’m half asleep. I wonder if the <img> or <a> tags will render full server images if given file:// as a prefix. I have no idea, but you can try it if you like.

The tag simply doesn’t like directory=“http://…”

That may be your server setting. A number of hosters disable fopen_url and it’s equivalents in an effort to try and thwart security attacks. Often misguidedly, imo, but that’s another story.

Sounds like, until I get my act together with the directory option (i.e. find a host who has fopen_url enabled, or just ditch support for directories), the images tab is the easiest way to manage pics in this case. Set up a category called ‘gwar’ and dump all your pics in there.

What I want to do is present the thumbnail index, then, clicking on a thumbnail will bring up a page (no popup) with the full-size image, with next and previous navigation below.

I’m not sure any gallery script will handle that because it spans two pages. I messed about with conditionals and offsets and passing URLs around; I came close (very close) with smd_gallery but couldn’t quite get it to work (in fact I think I’ve uncovered some strangeness in the offset calculation but I’m not sure yet – if I find it’s a bug and fixing it helps in this case I’ll post this example as an extreme case of how mad you can get with smd_gallery!)

So I think if you want that sort of gallery you’ll probably have to resort to some PHP, pass the URL (or ID) of the image you want to display to the address bar, read it in and display it. Navigation will probably have to be done by hand as well, but that’s just my gut reaction. Someone else might be able to come up with a good way of doing it.

I’d suggest saving yourself some hassle and using a lightbox or similar gallery to “keep it all on one page” and navigate within the lightbox. Since you only want next/prev then it’s ideal, plus the thumbnails are always a click away behind the main image so your prospective visitors can jump around in the gallery as well.

Sorry it’s not exactly the answer you’d like. If I find a way of doing it neatly I’ll yell. In the meantime I’ll rebadge the smd_gallery description as something less glamorous so people don’t get their hopes up in future on the back of my half-assed coding! :-)

Re: smd_gallery: super-flexible gallery generator

Hey Stef, thanks so much for your thoughts…Yes, just like you have it on your site but I’m going to take your advice and try one of the pop-up options — hopefully something lightweight. I’ll update this thread when it’s up so you can see a couple shots of Gwar.

As you can see the second link is empty and it is causing me some problems. I see all the css styling for the link (background color, border), and of course no image.
What can I do to remove that?
I’m also getting validation output errors:

there is no attribute “alt”.
there is no attribute “height”.
there is no attribute “width”.

Re: smd_gallery: super-flexible gallery generator

Ha! That would be my fault. The example is wrong (stupid copy ‘n’ paste error that I messed up). The validator is right: take out the alt=, height= and width= from the <a> tag.

You may also find that fixes the CSS, although it is a side-effect of the way the {object} tag works. What it does is “hides” the other images by not putting anything inside the anchor. I suggest what you do is wrap the smd_gallery call with a div (or use wraptag / class attributes) then change your CSS so it targets the img inside the anchor. That way, you’ll only be applying the CSS rule if the img is present.

So something like:

<div class="thumbs">
<txp:smd_gallery blah blah />
</div>

.thumbs img {
width:100px;
background:#555;
...
}

Sorry about the bogus example in the help. I’ll fix that as soon as I can.