Content last modified Monday 6 March 2017
hop to #bottom
Categories:
Author:
Current version:
0.3
About It:
Get it:
Rate it:
  • Helpful?
  • 1 Yes
  • 5 No
Flag it:

If you'd like to provide updated information and do not have access to directly edit, please contact the site admin; thanks!

directory_gallery

  • creates a JS-based gallery of all picture files found in a specified directory, with preloading and graceful degradation.
  • needs only 1 parameter: the directory containing the pics
  • Sort order is generated from the filenames.
    Caution: no extended sanity checking on filenames
  • Image descriptions are generated from the filenames
  • numerical selection list, definable via CSS class “gallery”

Tested with 4.0.4. and PHP5 only
Demo: link

Based on “Textpattern Gallery 1.21” by Max Ziebell and Jeremy Keith. Licensed under Creative Commons Attribution 2.5. Please drop me a note if you use this plugin on your site (just curious).

Feedback is appreciated. You may find some inelegant code since I’m no web developer but a C and assembler guy.

Update Nov 7: Version 0.3
– Includes the bugfix by Christophe Beyls.
– trailing slash bug fixed, e.g. “www.mydomain/gallery/” works
– image sorting by trailing numbers didn´t work properly
– extended error codes
Note: not yet thoroughly tested

Article Request Count:

Archived [?]: orphaned

Initially released:
2006-09-11
Posted here:
17 Sep 2006
Article modified:
20 Jan 2008

If there is a comment form at the Information URL, you may want to leave your comments/questions there for quicker feedback. Otherwise, comment away:

Your comment will NOT be submitted until you click the 'Submit' button on the next pageload.

Commented (10)

Lee:
I like this it’s nice and simple – thank you. Might I suggest that you remove repeating id’s so the html will validate and also the you mark the active link with an active class so it can be styled

Cheers, Lee
Could it be that this script requires PHP 5?
florian:
it doesn’t work :-/ i got some tag errors …
The issues should have been closed with version 0.2.
I´ve no inclination to support PHP4, though.
Got the text: No images found.

Got a pic in the direction: http://modul101.com/img/gall1/

called 01A-test.jpg

Can someone help me, please?
Posted a fix for the bug abovementioned, check it out on the Textpattern forum. Please hurry because the code will be available for 1 month only:

http://forum.textpattern.com/viewtopic.php?pid=127982#p127982

Finally here´s the update to 0.3, thanks Christophe. Couldn´t make it sooner since I was in hospital most of the time. I didn´t test it thoroughly, but it seems to work fine.
<br />
Have fun!
Lu

I want my website editors to define the directory for the images. Naturally I want to use a custom field for it, but it’s not really working.

I have this in my form template:

**

The custom field has the value of a directory with correct named images in.

What’s wrong? Any one?

the download site is down

chris:

does anyone have this plugin because the site is currently down

Subscribe to this article's comments RSS feed. [ ? ]   View Recent Comments across the site.

Would you care to write a comment?

You know you want to visit the Archives.

Browse

Categories


Articles

There are also tag clouds, 'cause those are fun.
Published with Textpattern