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

Gallery - plugin under develpment

(Page 2 of 3)
> > > >
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
> > > >