i have a foo/ directory and a foobar/ directory, and a barfoo/
directory in root/
for each directory in root, i'll put x or y or z amount of images in
each directory. then, have the php write 01.html with the correct
links to a) main image, b) thumb images and prev/fwd links.
we could have separate php files to handle the drawing of the new
sequenced .html files in each directory (probably best to pass
variables), because they're slightly different, or one to rule them
all (sounds like too much work).
then, the syntax would need to be sorted out (so index.html has a link
to foo/foo.php?=foo01) would work correctly and draw up 01.html with
the correct images, being that index.html would probably have to have
hardcoded variable-passing links. eh?
it's sweet, 'cause updating would be fast. upload and delete image
files. done. I mean, I know that you could go the database/XML route,
but sigh.
no one's thought of this? c'mon!
I'm thinking:
a) Genercised back/forward buttons:
page 01.html contains links to other pages in its respective "foo"
directory (with the same numbering sequence). The next page
link/button will go to the next page in sequence. The idea here is to
use a generic next/forward script that can be repurposed for all the
pages, without having to manually create hard-coded links. Smart eh?
🙂 OK, lazy, really. Then, of course, if there's nothing at the end of
the sequence, head on back to 01.html (Would it be easier to start the
naming convention with 00.html?)
b) pulling the right images at the right time.
There's a "main" image on page 01.html. it's called 01.png (or better,
01_unique_name.png). Now, there are three placeholders for three other
images; we want to get: 02.png, 03.png, 04.png and drop them in their
placeholders, so each of them link to 02.html, 03.html 04.html, etc.
Same with page 02.html, except this time, drop in 01.png, 03.png, etc.
You get? Same thing, make a genercised script, so that you simply drop
in 01.png or whatever image, and the script does the rest. make sense?
echo 'thanks';