"hard" link function improvement from "link album" module ?

phbc75

Joined: 2005-12-05
Posts: 8
Posted: Thu, 2006-01-26 17:34

Hello all,
First I would like to thank you for a great product.
I have been studying the way gallery works, and how the modules work. I haved installed the cvs version with the "link album" module by mindless. I have read a lot of posts regarding the link function. I noticed an interresting thing with this module and I thought to brought it to you developper team's attention.
I've been looking for a way to have an item in the gallery linked to another item (a photo item) in a way that the parameters of the original photo are preserved when clicking the linked item (watermark, maybe permissions...). A so called "hard" link.
My purpose is creating a favorite album feature using the user album to store the favorites, but as users bookmarks photos, they should not have the view of the original item or the resized files unmodified, with the way the link feature work actually the file that is copied to make the link doesn't have the derivative operations applied to it ( and is viewable without watermark for instance).
I noticed this module could be used to do such a thing. (although it is not part of it yet).
It looks like all there is to do is to change the album item to data item in the database fields (LinkItem, Filename, parentSequence, ...), I've tested it and seems to work (like a redirect actually, but that shouldn't be a problem), to link a photo instead of an album.
And I would very much like to see this implemented (by a mod in the module), I think I might do it myself, but do you guys have any suggestions, advice on a mod like this ? Is it feasible ? I'm quiet new to gallery...though actively studying it ;).

Best Regards,
phbc75

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Fri, 2006-01-27 05:21

Yup, that could work.. I've heard of a couple people taking linkitem module to add new ways of creating links.. one example was creating some "category" folders and some new code to add a "category" selector in edit-album.. picking a value here automatically creates a linkitem in the folder for that category. Just different ways to get linkitems created..