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

Gallery - plugin under develpment

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
Quote Reply
Re: [Oyo] Gallery - plugin under develpment In reply to
Hi,

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

Great, found the problem :)

Basically - the line:

Code:
my $Image = $IN->param('Image');

..get given back as this in FireFox:

Code:
imagename.gif

..but in IE, it gives it as:


Code:
C:\somewhere\imagename.gif

..thus the regex wasn't matching (as it was only designed to look at the filename itself, and not the whole path of the file being uploaded)

I'll get that fixed up in the distributed version.

Was there any other bugs that you can still see? (before I upload a new version =))

Quote:
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

Mmm.. looks like you may need to get Image::Size reinstalled - that should hopefully sort 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: [Oyo] Gallery - plugin under develpment In reply to
Hi,

I'm also going to work on the "Cleanup" function, similar to how the Thumb_Images plugin works (where it re-creates the smaller images, based on the uploaded image). This will be helpful if people decide to change the plugin dimensions, and need to re-create their thumbnails :)

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 Andy,

I found a solution for my site.
http://www.filesearching.com/....8.3/auto/Image/Size

I downloaded the file jpegsize.al on this site, in : /admin/auto/Image/Size/
That functions perfectly. Smile

But, I do not know if the file is up to date (February 14, 1995) .

You have which version ?

Thanks,

Mick

Last edited by:

Oyo: Mar 23, 2008, 7:59 AM
Quote Reply
Re: [Oyo] Gallery - plugin under develpment In reply to
Hi,

Oyo wrote:
Thank you Andy,

I found a solution for my site.
http://www.filesearching.com/....8.3/auto/Image/Size

I downloaded the file jpegsize.al on this site, in : /admin/auto/Image/Size/
That functions perfectly. Smile

But, I do not know if the file is up to date (February 14, 1995) .

You have which version ?

Cool, thats good then :) I wouldn't know what version I have without looking Angelic

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 > I'm also going to work on the "Cleanup" function (...)
Yes, it is an option really necessary. Smile

Mick
Quote Reply
Re: [Oyo] Gallery - plugin under develpment In reply to
Oyo wrote:
Andy > I'm also going to work on the "Cleanup" function (...)
Yes, it is an option really necessary. Smile

Mick
Hi,

That feature should now be in version 1.1 (GallerManager, and GallerManagerGD) - available from the Members Area.

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
It seems that it is the last version. Smile

I do not know if that is useful for you, but I used this software to open the file perl-Image-Size-3.01-1.fc5.noarch.rpm with Windows. http://www.7-zip.org/

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

Cool, so it all works fine for you now? :)

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
Oops ! the version is always 1 for GD.
I do not see the changes ?

Thanks,

Mick
Quote Reply
Re: [Oyo] Gallery - plugin under develpment In reply to
Sorry, not sure what you mean?

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
Oyo wrote:
Oops ! the version is always 1 for GD.
I do not see the changes ?

Thanks,

Mick
Hi,

Ah, I see what you mean now =)

I've re-uploaded, and should work this time. My FTP clients really starting to annoy me :/ (keeps saying its uploaded files, but it didn't Pirate)

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
No Andy problem.

The version GalleryManagerGD that I have just downloaded gives an error message :
Can't locate Image::Magick in @INC (@INC contains:

The script seems to seek Image:: Magick

An idea ?
Thanks,

Mick

Last edited by:

Oyo: Mar 23, 2008, 9:10 AM
Quote Reply
Re: [Oyo] Gallery - plugin under develpment In reply to
MMm.. where do you get that error? Admin function, or gallery.cgi ?

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
Oops! I excuse myself, it is me which caused certainly this error.
Now, that works for the remote loading of the images.

But, I have an error message for the function Cleanup :

Code:
Image::Resize->new(): file '2' does not exist at /admin/Plugins/GalleryManagerGD.pm line 203

An idea ?

Thanks,

Mick
Quote Reply
Re: [Andy] Gallery - plugin under develpment In reply to
  
I found the origin.

I had an empty entry in the Gallery table.

The script functions correctly now. Smile

A last question.

It is possible to make work the Cleanup function with SSH ?

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

Quote:
I found the origin.

I had an empty entry in the Gallery table.

The script functions correctly now. Smile

Great, was probably from before, where the images were not getting uploaded right :)

Quote:
It is possible to make work the Cleanup function with SSH ?

You can do it with:

perl /path/to/cgi-bin/admin/admin.cgi '?do=plugin&plugin=GalleryManagerGD&func=Cleanup'

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
   
There is perhaps the last bug.

1) For me, script do not take account of the value of Small_Image_Width and Small_Image_Height.
I placed the value on 80, but the images (thumbnail) are always of 150.

2) The Cleanup function only seems to regenerate the small-*.* images.
But, it seems not to delete stray thumbnail images, which could be taking up space on the site.

You confirm ?

Thank you for your patience.

Mick

Last edited by:

Oyo: Mar 23, 2008, 10:04 AM
Quote Reply
Re: [Oyo] Gallery - plugin under develpment In reply to
Hi,

Quote:
1) For me, script do not take account of the value of Small_Image_Width and Small_Image_Height.
I placed the value on 80, but the images (thumbnail) are always of 150.

Mm.. you sure? I just added some debugging information in, and it seemed to work fine (also checked an image that was made, and it had the right dimensions)

Quote:
2) The Cleanup function only seems to regenerate the small-*.* images.
But, it seems not to delete stray thumbnail images, which could be taking up space on the site.

Fixed.

I've also added in some code, so that when someone deletes an image from their gallery - it also deletes the ORIGINAL, instead of just leaving it on the server :)

The new version is available from our Members Area (its still named version 1.1 btw)

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
>> 2) The Cleanup function
Perfect adaptation ! Smile

Andy >> Mm.. you sure?
Yes, I confirm. But, if I modify the value directly in file GalleryManagerGD.pm, then the new value is used.

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

Quote:
Andy >> Mm.. you sure?
Yes, I confirm. But, if I modify the value directly in file GalleryManagerGD.pm, then the new value is used.

Not sure what you mean? Can you give an actual example/ screenshots? :)

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:
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

Hi Andy,
it seems that you finished this project.
What do you think, is it possible to extend this plugin into a small imagegallery?
1. In the glink installation should be a topcategory with subcategories, where users can upload their images?
2. Users should be able to decide in which subcategory an image is displayed.
3. And there should be a link to display all images of a user as well.

Thanks
Matthias

Matthias
gpaed.de
Quote Reply
Re: [Andy] Gallery - plugin under develpment In reply to
Andy >> Not sure what you mean?

In fact, the script does not seem to take into account the values of Small_Image_Width and Small_Image_Height which are indicated in Admin > Plugin > GalleryManagerGD > Settings.

But, if I modify the values directly in the GalleryManagerGD.pm file,

my $small_width = $PCFG->{Small_Image_Width} || 80;
my $small_height = $PCFG->{Small_Image_Height} || 80;

...the values are used by the script.

But, it is not very important for me. If I were to modify the values, I will publish the GalleryManagerGD.pm file.

Thanks,

Mick

Last edited by:

Oyo: Mar 23, 2008, 11:52 AM
Quote Reply
Re: [Oyo] Gallery - plugin under develpment In reply to
Oyo wrote:
Andy >> Not sure what you mean?

In fact, the script does not seem to take into account the values of Small_Image_Width and Small_Image_Height which are indicated in Admin > Plugin > GalleryManagerGD > Settings.

But, if I modify the values directly in the GalleryManagerGD.pm file,

my $small_width = $PCFG->{Small_Image_Width} || 80;
my $small_height = $PCFG->{Small_Image_Height} || 80;

...the values are used by the script.

But, it is not very important for me. If I were to modify the values, I will publish the GalleryManagerGD.pm file.

Thanks,

Mick

Mmm.. that is indeed very double checked the code, is its definatly accessing the right values:


Code:
use Links::Plugins;
my $PCFG = Links::Plugins->get_plugin_user_cfg('GalleryManagerGD');

my $small_width = $PCFG->{Small_Image_Width} || 150;
my $small_height = $PCFG->{Small_Image_Height} || 150;

I can't see any reason why it wouldn't work - especially if, as you say , you just manually edit the "150" numbers, then it works - so it can't be something further on in the plugin :(

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,

Quote:
it seems that you finished this project.

Yup, I think so :)

Quote:
What do you think, is it possible to extend this plugin into a small imagegallery?

Mmm... not sure.

Quote:
1. In the glink installation should be a topcategory with subcategories, where users can upload their images?
2. Users should be able to decide in which subcategory an image is displayed.
3. And there should be a link to display all images of a user as well.

Mmm.. personally, I think it would work better as:

1) A normal GLinks install - with a Photo field in the glinks_Links table
2) Then, have the link/detailed pages, goto gallery_view.cgi?ID=12345 (or show the gallery on the links detailed page)

The way you were suggesting, I don't think would work =)

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:

Mmm.. personally, I think it would work better as:

1) A normal GLinks install - with a Photo field in the glinks_Links table
2) Then, have the link/detailed pages, goto gallery_view.cgi?ID=12345 (or show the gallery on the links detailed page)

The way you were suggesting, I don't think would work =)

Cheers

O.K. but there are many things unclear and I have no clue where to start?.
1. There should be a thumbnail-function
2. The category and it's subcategories should have a different layout. Thumbnails should be displayed in three rows
3. There should be a field for keywords
4. There should be image search by keyword
5. This flash lightbox function would be nice too ;-)

A plugin that installs these features at once, would be great Angelic

Matthias

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

Sounds a bit complicated for what I'd want to take on right now :P (got 2 big jobs starting tomorrow, so don't really wanna undertake something quite as large as this :P)

Quote:
5. This flash lightbox function would be nice too ;-)

Lighbox is actually Javascript, not Flash 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
Andy wrote:
Hi,

Sounds a bit complicated for what I'd want to take on right now :P (got 2 big jobs starting tomorrow, so don't really wanna undertake something quite as large as this :P)

Quote:
5. This flash lightbox function would be nice too ;-)


Lighbox is actually Javascript, not Flash Smile

Cheers

Hi Andy,
I'm not in a hurry.
Perhaps you can work on this idea, when you have nothing to do Smile

Thanks
Matthias

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

Quote:
Hi Andy,
I'm not in a hurry.
Perhaps you can work on this idea, when you have nothing to do Smile

Sounds interested - but won't really be a plugin I think, as it would require a hell of a lot more changes, than just a plugin like this.

More like my ImageSQL, which is quite a few plugins, which turn GLinks into an Image Gallery (not cheap though, and not part of my packages =))

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 - Have you made it so the images for the corresponding link are deleted from the server, when a link is deleted?
Quote Reply
Re: [socrates] Gallery - plugin under develpment In reply to
socrates wrote:
Andy - Have you made it so the images for the corresponding link are deleted from the server, when a link is deleted?
Hi,

Yup, tat was added in version 1.1 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
Andy wrote:

Sounds interested - but won't really be a plugin I think, as it would require a hell of a lot more changes, than just a plugin like this.

I was afraid of something like this Crazy

Andy wrote:
More like my ImageSQL, which is quite a few plugins, which turn GLinks into an Image Gallery (not cheap though, and not part of my packages =))

ImageSQL is too big for what I need. Unsure

I just thought your GalleryManager could be modified.

Thanks
Matthias

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

Afraid what your asking is a bit too big for GalleryManager to do on its own =)

Sorry about that.

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,

There is a version for Link 2.2.0 ?

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

No specific version I'm afraid. However, you can back-work the tempaltes, and it will work fine (i.e change from the "luna" template set which comes with the plugin, to your templates)

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,

Thanks for your answer.

I will test and I will inform you.

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

The installation does not function.

I have the error message : Error running installation code: Cant read: /gallery/js/lightbox.js. Reason: No such file or directory at (eval 5) line 217.

An idea ?

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

I believe to understand.
It is necessary to modify "build_static_path" with "
build_root_path" in Install.pm ?

Thanks for your answer.

Mick

Quote Reply
Re: [MJ_] Gallery - plugin under develpment In reply to
MJ_ wrote:
Hi Andy,

I believe to understand.
It is necessary to modify "build_static_path" with "
build_root_path" in Install.pm ?

Thanks for your answer.

Mick
Ya, that should do it :) I forgot I used the "static" folder. You will also need to search & replace the build_static_path with build _root_path in gallery.cgi, and /admin/Plugins/GalleryManager.pm. hopefully that should do 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
Thank you Andy, that functions perfectly. Smile

Another question.

You think that it is possible to obtain the images available for a link (ID) in the format xml ?

For example : gallery_view.cgi?LinkID=<%ID%>;t=xml

An idea ?

Thanks,
Mick

Last edited by:

MJ_: Jan 11, 2009, 7:07 AM
Quote Reply
Re: [MJ_] Gallery - plugin under develpment In reply to
Hi,

Glad to hear it worked.

I'm not really sure about distributing it with XML features, but I could always do it as a custom job if you really want 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
Thanks, I sent an email to you.

Mick