Including the photos was easy. It's just a database field. I used the Logo Links mod as a guide, and works fine.
I have 2 urls -- one to my link (the full image) and one to the thumbnail. I really don't need that, since I place the thumbnails in the same place relative to the main photo for ease.
What I have been trying to do, from the admin screen, is upload a photo, have a thumbnail generated, and the height/width inserted into the database. The thing that has held me up is selecting the Unix file location for the file, since I don't want them all in one directory -- or if they all get uploaded to one directory, I'd like them automatically moved to the appropriate subdirectory on validation (for housekeeping reasons).
Now GD can grab the ht/width and I have a great little script program that uses ImageMagik to make thumbnails, but I've not been able to integrate them all. I really should.
The upload script is basically using CGI.pm and that is now included in the basic perl install. You can grab 2 or 3 different examples of ucing cgi.pm from cgi-resources in the image upload area.
If anyone is seriously interested in doing the mod, I'll give the specs, and and will be able to try it out on a fully working site.
There are some great things out there, but I don't like 'hacks' and would like to see this as a full blown mod that could be easily ported to the SQL version.
I have to prioritize my mods, since I don't have a local unix box, I do everything via telnet, and it's a lot slower for debugging.
I would start with adding this feature to the admin.cgi routines, since they will have to be added there eventually, at they will be out of site until debugged.
The URL field and Thumbnail field should be upload [browse] boxes. You should be allowed to pick the file from your disk, and the upload location (from a pick-box for security).
On my site, I'd like to upload the main image, and generate the thumbnail in a 'thumbnail' directory off the subdir that the main image is stored in. This allows images to be called by:
servername/filepath/image
and the thumbnails by:
servername/filepath/thumbnails/image
And works great for templates and portability.
I've carefully thought this out, and gotten all the puzzle part, but haven't put them together.
I realize mods take time, but I'm somewhat discouraged by the recent announcement to charge for mods, when the ideas and help to generate them is often freely offered.
Anyway.... this is a start, let me know
I have 2 urls -- one to my link (the full image) and one to the thumbnail. I really don't need that, since I place the thumbnails in the same place relative to the main photo for ease.
What I have been trying to do, from the admin screen, is upload a photo, have a thumbnail generated, and the height/width inserted into the database. The thing that has held me up is selecting the Unix file location for the file, since I don't want them all in one directory -- or if they all get uploaded to one directory, I'd like them automatically moved to the appropriate subdirectory on validation (for housekeeping reasons).
Now GD can grab the ht/width and I have a great little script program that uses ImageMagik to make thumbnails, but I've not been able to integrate them all. I really should.
The upload script is basically using CGI.pm and that is now included in the basic perl install. You can grab 2 or 3 different examples of ucing cgi.pm from cgi-resources in the image upload area.
If anyone is seriously interested in doing the mod, I'll give the specs, and and will be able to try it out on a fully working site.
There are some great things out there, but I don't like 'hacks' and would like to see this as a full blown mod that could be easily ported to the SQL version.
I have to prioritize my mods, since I don't have a local unix box, I do everything via telnet, and it's a lot slower for debugging.
I would start with adding this feature to the admin.cgi routines, since they will have to be added there eventually, at they will be out of site until debugged.
The URL field and Thumbnail field should be upload [browse] boxes. You should be allowed to pick the file from your disk, and the upload location (from a pick-box for security).
On my site, I'd like to upload the main image, and generate the thumbnail in a 'thumbnail' directory off the subdir that the main image is stored in. This allows images to be called by:
servername/filepath/image
and the thumbnails by:
servername/filepath/thumbnails/image
And works great for templates and portability.
I've carefully thought this out, and gotten all the puzzle part, but haven't put them together.
I realize mods take time, but I'm somewhat discouraged by the recent announcement to charge for mods, when the ideas and help to generate them is often freely offered.
Anyway.... this is a start, let me know