$20 REWARD: Sepating graphics from thumbnail to full size?

lyljim

Joined: 2005-05-23
Posts: 3
Posted: Mon, 2005-05-23 21:37

Hi folks.
What an awesome script!

I'm at the brainstorming stage if trying to figure out how best to do this.

"This" being finding a way to somehow move the thumbnails and full size pics into different directories, for purpose of password protecting the full size pics.

As I see it now, a gallery has two formats of an image, both saved in the same directory?

Example:
/albums/album01/lg76.thumb.jpg
and
/albums/album01/lg76.sized.jpg

In order for me to set up htaccess password protection for full size pics, it seems to me the best way would be for the script to write the "full sized" pics to a subdirectory, like:

/albums/album01/supersizeme/lg76.sized.jpg

Anyone know of a clever way to do this?

$20 will be paid to the one with the best and easiest to implement method of doing this.

Thanks,
Jim

 
khsjr1970

Joined: 2004-04-24
Posts: 271
Posted: Mon, 2005-05-23 23:30

You did not list the version of Gallery you are trying to implement this with. This would affect how someone tackles this project.

lastly, paid support is found http://gallery.menalto.com/modules.php?op=modload&name=GalleryPaidSupport&file=index there. what you are asking would take some extensive work that I do not think will come from this forum.

Gallery has opted for the waterwaterking feature to accomdate security.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Tue, 2005-05-24 01:18
 
fryfrog

Joined: 2002-10-30
Posts: 3236
Posted: Tue, 2005-05-24 19:12

You might want to experiment with G2 to see if it meets your needs and what might help it meet your needs. If it is something that would be used by others, or perhaps something that is easy to do... it might be included. You might even be able to convince a dev to do this for some $$$ :)

 
lyljim

Joined: 2005-05-23
Posts: 3
Posted: Fri, 2005-05-27 22:43
floridave wrote:
http://gallery.menalto.com/index.php?name=PNphpBB2&file=viewtopic&p=117731#117731
is that clever enough for you?
paypal is good

Using G1.5 at the moment and I considered this at one point as well, though doesn't really fit into the needs of my client.

I'm thinking there must be a mod_rewrite trick possible, to force the images to a separate directory or some such.

Any mod_rewrite experts out the a potential idea on this?

Thanks,
jim

 
roi

Joined: 2004-02-12
Posts: 65
Posted: Sun, 2005-05-29 17:54
lyljim wrote:
floridave wrote:
http://gallery.menalto.com/index.php?name=PNphpBB2&file=viewtopic&p=117731#117731
is that clever enough for you?
paypal is good

Using G1.5 at the moment and I considered this at one point as well, though doesn't really fit into the needs of my client.

I'm thinking there must be a mod_rewrite trick possible, to force the images to a separate directory or some such.

Any mod_rewrite experts out the a potential idea on this?

Thanks,
jim

Hello there,

Though I do not have a code for you, but I had a similar issue with having some files on a directly but only some files I wanted to protect some free for the world to see....so after some hard digging from the internet, I found a way using .htaccess to simply write rules on which files to be protected and which not. So that saves you having to move things else where.

Its possible, just look up .htaccess rewrite rules... i have example below.....

<Files "headlines_bycat.shtml">
order deny,allow
allow from all
satisfy any
</Files>
<Files "cat_index_9.shtml">
order deny,allow
allow from all
satisfy any
</Files>

the files headlines_bycat.shtml and cat_index_9.shtml are excluded from being protected.

hope this helps :P

 
lyljim

Joined: 2005-05-23
Posts: 3
Posted: Sat, 2005-06-04 00:09

Hi Journeyman.
That's a good note. Actually considered it as well, though when working with hundreds of pics. that one doesn't do the trick I'm afraid.

Oh well. I have an altogether different solution in simply creating multiple Galleries within one site. Messy but appears to accomplish most of our goals.

Thanks,
Jim
http://tvc.net

 
fryfrog

Joined: 2002-10-30
Posts: 3236
Posted: Sat, 2005-06-04 04:20

You may want to give G2 a try. It will do what your goal requires right out of the box.

Since G2 can store the image BELOW the http root, all image requests are via php scripts so they obey permissions. This means that you can simply use normal permissions systems to prevent anyone you like from being able to view the full sized (sized or thumb) too.

It even goes one step farther in that you can also choose to auto-matically watermark ONLY hotlinked images OR even prevent hotlinking altogether.

Lots of gallery 1.5 installs vs. one G2 install.... mmmm.... I vote G2!