To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.publishOpen lugnet.publish in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Publishing / 1512
Subject: 
Re: Announcing Brickshelf.com Gallery for everyone!
Newsgroups: 
lugnet.publish
Date: 
Sat, 12 Feb 2000 20:31:08 GMT
Reply-To: 
{lpieniazek@}stopspam{novera.com}
Viewed: 
1625 times
  
Kevin, what drives the order of images in a particular folder? Right
now  it seems to be alpha.

It looks like images themselves are all assigned a unique numeric key,
with a record of the folder they are in... because an image URL page
seems to be of the form:

http://www.brickshelf.com/cgi-bin/gallery.cgi?i=786

(that's Fredrik's great Lemans)

while folders have the form:

http://www.brickshelf.com/cgi-bin/gallery.cgi?f=100

suggesting that they as well have unique numeric keys and you are
keeping what images go in what folders and what their names are, etc,
elsewhere.

Given that, is it possible to:
- specify image order within a folder other than by using the name?
- supply a prev and next URL on each image page?

or is that very very hard. Both seem like they'd be nice enhancements
(the second more so than the first)

Finally, it says beta, I assume that if something goes awry you may have
to turn off access but should be able to rebuild without requiring
everyone to reupload everything, right?


Kevin Loch wrote:

In lugnet.announce.brickshelf, Kevin Loch writes:
After seeing how popular the gallery section is at Brickshelf, I wondered
how other people could display their work.  The solution is to allow
users to create accounts and upload it themselves!


--
Larry Pieniazek - lpieniazek@mercator.com - http://my.voyager.net/lar
http://www.mercator.com. Mercator, the e-business transformation company
fund Lugnet(tm): http://www.ebates.com/ ref: lar, 1/2 $$ to lugnet.

Note: this is a family forum!


Subject: 
Re: Announcing Brickshelf.com Gallery for everyone!
Newsgroups: 
lugnet.publish
Date: 
Sun, 13 Feb 2000 00:28:15 GMT
Viewed: 
1418 times
  
In lugnet.publish, Larry Pieniazek writes:
Kevin, what drives the order of images in a particular folder? Right
now  it seems to be alpha.

True.


suggesting that they as well have unique numeric keys and you are
keeping what images go in what folders and what their names are, etc,
elsewhere.

True, the site runs off a database but...

The files are stored in a directory structure of

/gallery/username/folder/folder/image.jpg

which is why you can access the images directly using that path.

Given that, is it possible to:
- specify image order within a folder other than by using the name?

If the user wants to specify an arbitrary order, I would need to add
a sort_order field to the files table.  That's a bit of work but not
impossible.

- supply a prev and next URL on each image page?

That is easy and is very high on the priority list.


Finally, it says beta, I assume that if something goes awry you may have
to turn off access but should be able to rebuild without requiring
everyone to reupload everything, right?


It depends on what goes awry... If the database get's hosed, I could restore
a recent backup and force a "reload" command in each folder (which syncs
the db to the files, just as when you upload new files).
(I'm not storing all the images in one folder
with names like x983347473crffeedf.jpg if that's what you mean).

KL


©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR