Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Gallery - plugin under develpment

(Page 1 of 3)
> >
Quote Reply
Gallery - plugin under develpment
Hi,

I'm curently working on a new plugin, which lets users manage "image uploads" for their listings.

This saves having *loads* of image fields on your link add page

Basically, the idea is:

1) They submit their link
2) They then upload images for their links, via gallery.cgi
3) The plugin has an option, so you can set the max number of images allowed per link
4) The images are thumbnailed
5) You can then show the thumbnailed images on the detailed page, and link to the full image

Any suggestions are welcome, before I get too far with it =)

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Gallery - plugin under develpment In reply to
Suggestions:

1) If possible (and not too complicated), please make a feature so users can password protect their gallery/images and only the users they give their password to can view the photos.

2) Phptps open in a new small window without the url showing in the address bar and so that the users cannot right click and save the photos on their computer.

3) Impelement Lightbox

4) Set max upload size and also a good warning message or a popup message that tells them how big a file is allowed.

5) Possibility to select any image as the main image and the rest gallery images. The main image thumbnail can then possibly can be shown in the category pages as the linking photo, next to the link description, etc.,

Thanks
Quote Reply
Re: [socrates] Gallery - plugin under develpment In reply to
Hi,

Thanks for the suggestions Smile

Quote:
1) If possible (and not too complicated), please make a feature so users can password protect their gallery/images and only the users they give their password to can view the photos.

Yeah, thats quite a cool idea - I'll probably add that in towards the end though.

Quote:
2) Phptps open in a new small window without the url showing in the address bar and so that the users cannot right click and save the photos on their computer.

Phptps = photos 'I'm guessing? Tongue

Mmm... not sure about that - I was thinking more along the lines of having Lightbox setup, so that they click the image - and it opens in the same page (i.e the gallery page). Not much point having new windows popping up =) Also, the "no save" could only really be done with a "no right click" bit of javascript - so thats easy to put into the gallery.html template Smile

Quote:
3) Impelement Lightbox

See above.

Quote:
4) Set max upload size and also a good warning message or a popup message that tells them how big a file is allowed.

Ya, the upload system uses GT::SQL::File, so will allow the max_file_size feature to be used. It will just be set on the "Gallery" table, which is where the images are stored. I'll probably add a link to this page, so its easier for users to edit the size =)

Quote:
5) Possibility to select any image as the main image and the rest gallery images. The main image thumbnail can then possibly can be shown in the category pages as the linking photo, next to the link description, etc.,

I like that idea :)


So far, I'm at the stage that the tables are being created via the plugin correctly - and now I'm working on the admin upload function.

Once I've got the basic upload function done, I'm gonna get onto the thumbnailing of the images - which will be the next big(ish) step.

I'll keep you posted.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Gallery - plugin under develpment In reply to
Will it require the imagemagik (spelling) module? or can this be bypassed if they images don't need to be resized?
Quote Reply
Re: [Alba] Gallery - plugin under develpment In reply to
Hi,

Ya, afraid so.

I *may* make a GD module one too, if thats any help?

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Alba] Gallery - plugin under develpment In reply to
Hi,

Heres an example of the image upload / manager, so far :)

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!

Last edited by:

Andy: Mar 22, 2008, 4:10 AM
Quote Reply
Re: [Andy] Gallery - plugin under develpment In reply to
Hi Andy,
would be great to use this script without the need of a link.
Just like a user gallery.

Thanks
Matthias

Matthias
gpaed.de
Quote Reply
Re: [Matthias70] Gallery - plugin under develpment In reply to
Hi,

Well, you kinda could do that =)

All you would do, is have a "link" that the user creates (i.e a "gallery"), and then they add the images via gallery.cgi - which will then get shown on detailed.html (or viewgallery.cgi?ID=xxxx)

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Gallery - plugin under develpment In reply to
Andy wrote:
Hi,

Well, you kinda could do that =)

All you would do, is have a "link" that the user creates (i.e a "gallery"), and then they add the images via gallery.cgi - which will then get shown on detailed.html (or viewgallery.cgi?ID=xxxx)

Cheers


That sounds great ;-)
Does the user have an option to add images to a category named "images" and all its subcats
For example: There are the subcats "holiday", "car", "flower" and so on in the cat "images"
When a users adds an image he should decide to which category his image belongs.

Thanks
Matthias

Matthias
gpaed.de

Last edited by:

Matthias70: Mar 22, 2008, 6:33 AM
Quote Reply
Re: [Andy] Gallery - plugin under develpment In reply to
Quote:
I *may* make a GD module one too
Is this a more common module?
Quote Reply
Re: [Alba] Gallery - plugin under develpment In reply to
Alba wrote:
Quote:
I *may* make a GD module one too
Is this a more common module?
Hi,

Yup, thats more common than Image::Magick.

Easiest way to see if its installed, is using this test script:

Code:
#!/usr/local/bin/perl


use strict;
use CGI::Carp qw(fatalsToBrowser);
use GD;


print "Content-Type: text/html \n\n";
print "looks ok";

If its installed, then it should work :) (with the version I'll make for GD =))

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Matthias70] Gallery - plugin under develpment In reply to
Matthias70 wrote:
Does the user have an option to add images to a category named "images" and all its subcats
For example: There are the subcats "holiday", "car", "flower" and so on in the cat "images"
When a users adds an image he should decide to which category his image belongs.

Nah, its just a basic upload system.

demo1.jpg is what the user sees, on gallery_view.cgi?LinkID=1234
admin-demo.jpg is what linkowners see, when they are managing the images associated with their link

The main idea of this plugin, was for Classified sites, which want users to be able to upload images Smile

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Gallery - plugin under develpment In reply to
Hi,

I'm just putting the final touches to the Documentation now, and then I'll get it uploaded to the Members Area on our site (while I write up the product page =))

Anyone who has the ULTRA Package PRO, will be able to download it. Feedback is much welcome :)

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [socrates] Gallery - plugin under develpment In reply to
Hi,

Version 1.0 is now available from the Members Area on our site. The plugin is called "GalleryManager"

I'm just writing up the product page on our site, and will then put a proper announcment on the GT forum :)

If anyone who tries it has any feedback, please let me know.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Gallery - plugin under develpment In reply to
Hi,

I've put the product page up now, and also linked to a demo of the plugin in action :)

http://www.ultranerds.com/...GalleryManager_L246/

Please let me know if you've got any comments / feedback.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Matthias70] Gallery - plugin under develpment In reply to
Hi,

Ok, I've put together a GD version now to: http://www.ultranerds.com/...lleryManagerGD_L247/

It requires GD and Image::Resize

Again, this is part of the ULTRA PRO Package.

I'll get a real thread posted in a bit, after some food Smile

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Gallery - plugin under develpment In reply to
Hi Andy,

I test your script (GalleryManagerGD) and I have some problems.

1) The images are not downloaded.
Error message for small-2-000190.jpg : ERROR: Invalid filename, (...)

2) It is not possible to indicate the size of the image.

3) It is possible to indicate the folder of remote loading of the images?

4) It would be possible to check that the fields Image is indicated?
If not, script gives an error message :
Error: Exception 435: unable to open image `2': No such file or directory

5) How to avoid the use of spaces in the name of file?
You think, that it is possible to correct these problems?

Thanks,

Mick
Quote Reply
Re: [Andy] Gallery - plugin under develpment In reply to
Quote:
Anyone who has the ULTRA Package PRO, will be able to download it. Feedback is much welcome :)
Ah, bummer! Shocked I thought it was going to be in the ultra package.
Quote Reply
Re: [socrates] Gallery - plugin under develpment In reply to
socrates wrote:
Quote:
Anyone who has the ULTRA Package PRO, will be able to download it. Feedback is much welcome :)
Ah, bummer! Shocked I thought it was going to be in the ultra package.
Hi,

Nah, sorry. It took too long to write, to warrent putting in the ULTRA Package. I've got a set time limit when writing a plugin, and unless I've already agreed, then it goes into the PRO package.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Oyo] Gallery - plugin under develpment In reply to
Hi,

Quote:
1) The images are not downloaded.
Error message for small-2-000190.jpg : ERROR: Invalid filename, (...)

Do you have an example, where I can see this? (email or PM me the details)

Quote:
2) It is not possible to indicate the size of the image.

You can, but you have to do it via the GLinks database field editor:

http://www.yoursite.com/cgi-bin/links/admin/admin.cgi?db=Gallery&do=editor_columns&modify=Image

(just edit the above URL to your site :))

Quote:
3) It is possible to indicate the folder of remote loading of the images?

Mmm.. I guess you could change the file_save_in and file_save_url fields (in the URL I just gave you) - but I'm not 100% sure it it will all work fine with everything else then.

Quote:
4) It would be possible to check that the fields Image is indicated?
If not, script gives an error message :
Error: Exception 435: unable to open image `2': No such file or directory

Not sure what you mean?

Quote:
5) How to avoid the use of spaces in the name of file?
You think, that it is possible to correct these problems?

Does it allow spaces? It shouldn't do - the regex should stop spaces being allowed.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Gallery - plugin under develpment In reply to
Hi,

I've just uploaded a new version of GalleryManager and GalleryManagerGD .

This has a bit in the Readme, linking you to the "Edit Gallery" table page (so you can change the url/path/file size settings), and also added a link to the side menu- so you can edit the max number of images a user can upload.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Gallery - plugin under develpment In reply to
Hi Andy,

Thank you for your answer. Smile
I also tested on your site and the problem is identical :
http://gossamerlinks.com/.../content/gallery.cgi

1) Invalid filename, (...)
screen capture : error_filename.gif

4) Error: Exception 435
screen capture : error_exception_435.gif

2) In fact, I wanted to speak about Image::Size.

But, I think that I found the solution : in GalleryManagerGD.pm, line 28 and 29
$small_width
$small_height

An idea ?

Thanks,

Mick
Quote Reply
Re: [Oyo] Gallery - plugin under develpment In reply to
Hi,

Can you send (PM, or email) the images you are trying to upload, so I can give it a go?

Quote:
2) In fact, I wanted to speak about Image::Size.

But, I think that I found the solution : in GalleryManagerGD.pm, line 28 and 29
$small_width
$small_height

Are you referring to the size of the thumbnails? I could put that in as a plugin option (will have to do it after my roast dinner though =)). I'll also try and get those other bugs fixed up (I tested it on 20+ images, and all of them worked fine, so I'm not sure why its not working for you :/)

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Oyo] Gallery - plugin under develpment In reply to
Oh, another question - what browser are you using? Could be a browser issue.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Gallery - plugin under develpment In reply to
Thank you for your answer.

In fact, your idea is correct.

For me, on your site :
1) with IE7: ERROR: Invalid filename, D:\Documents and Settings\. \ 2-000190.jpg
2) No problem with Firefox.

For my site with Firefox :

Code:
Can't locate auto/Image/Size/jpegsize.al (...) at /../admin/Image/Size.pm line 213


It seems that for my site, the problem is with GD. Frown

Mick
> >