Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Detailed Image Plug-in

Home: Plugins Support - Paid: Thumb_Images:

 

 


jag
Novice

Karma: -0 / +0

Sep 7, 2004, 10:00 AM

Post #1 of 13 (3067 views)
Shortcut

Send jag a wink
Detailed Image Plug-in Can't Post

Hi Andy,

I know you're nearly down under with all the work at the moment but I was wondering :
Would it be possible to modify the Thumb Images plug-in to make it into a Detailed Images plug-in so that I could add another image that would be down as the Detailed Image in the edit details for a link and then I can place it where I want on the detailed page.

By the way I've just installed the Build_Detailed plug-in and I hadn't thought of using the detailed pages system but with your plug-in the site has just acquired a great new function. Cheers.

Jag


Andy
Enthusiast

Karma: -1 / +7


Sep 7, 2004, 1:25 PM

Post #2 of 13 (3066 views)
Shortcut

Send Andy a wink
Re: [jag] Detailed Image Plug-in [In reply to] Can't Post

You can do that already =)

With your image field setup (in the plugin), set the image fields to something like;


Code
ImageField1,Screenshot1,DetailedImage2 ...etc


.. .and then just setup these additional fields in your LinksSQL admin panel, as you would normally.

Hope that helps.

Cheers
Andy
Programmer/Designer/LinksSQL Freak Cool

http://www.ultranerds.com
http://www.imagesql.com



jag
Novice

Karma: -0 / +0

Sep 7, 2004, 4:19 PM

Post #3 of 13 (3065 views)
Shortcut

Send jag a wink
Re: [Andy] Detailed Image Plug-in [In reply to] Can't Post

So I would have another field that would appear in the link's edit area ? and I would be able to upload a second image that would also be thumbnailed, but I suppose that it would have to be the same size as the first one ? or can I modify that somehow ?


I'd have Screenshot that was 150x111
And
DetailedImage that was 200x144

So Just by adding an extra name in the "ImageFields" I can create another image but how do I tell it that I want the second reduced to a different size.


Jag


(This post was edited by jag on Sep 7, 2004, 4:34 PM)


Andy
Enthusiast

Karma: -1 / +7


Sep 8, 2004, 12:27 AM

Post #4 of 13 (3059 views)
Shortcut

Send Andy a wink
Re: [jag] Detailed Image Plug-in [In reply to] Can't Post

Hi,


Quote
So I would have another field that would appear in the link's edit area ? and I would be able to upload a second image that would also be thumbnailed, but I suppose that it would have to be the same size as the first one ? or can I modify that somehow ?


Exactly. On a site I just setup, we have 20 image fields and counting. Thats the great thing about how LSQL works :)


Quote
I'd have Screenshot that was 150x111
And
DetailedImage that was 200x144


Ah... you can't have different sizes. I'll look at getting this featured added in (i.e in the field setup, you put in something like "FieldName::50x50,ImageField2::150,100" ... etc.

In terms of a hack, which version are you using? It should be possible to add in a couple of lines of code, so that it knows if its working on a specific image field, then it needs to thumnail to a different specification.

Cheers
Andy
Programmer/Designer/LinksSQL Freak Cool

http://www.ultranerds.com
http://www.imagesql.com


jag
Novice

Karma: -0 / +0

Sep 8, 2004, 7:35 AM

Post #5 of 13 (3058 views)
Shortcut

Send jag a wink
Re: [Andy] Detailed Image Plug-in [In reply to] Can't Post

I'm using the version 2.1, I think its the latest version.

Thanks, Jag


Andy
Enthusiast

Karma: -1 / +7


Sep 8, 2004, 8:04 AM

Post #6 of 13 (3057 views)
Shortcut

Send Andy a wink
Re: [jag] Detailed Image Plug-in [In reply to] Can't Post

Version 2.1 of Thumb_Images, or 2.1 of LinksSQL? (there are several versions :p 2.1.0, 2.1.1, 2.1.2 and 2.1.3.). I need both the LinksSQL version, and Thumb_Images version please :-)

Cheers
Andy
Programmer/Designer/LinksSQL Freak Cool

http://www.ultranerds.com
http://www.imagesql.com


jag
Novice

Karma: -0 / +0

Sep 8, 2004, 8:11 AM

Post #7 of 13 (3056 views)
Shortcut

Send jag a wink
Re: [Andy] Detailed Image Plug-in [In reply to] Can't Post

Sorry hard night, I'm using 2.2.0 of Links SQL and it says 2.1 (everywhere I can see) for Thumb Images.

Thanks, Jag


Andy
Enthusiast

Karma: -1 / +7


Sep 8, 2004, 8:32 AM

Post #8 of 13 (3054 views)
Shortcut

Send Andy a wink
Re: [jag] Detailed Image Plug-in [In reply to] Can't Post

Ok, cool. In Thumb_Images.pm, please all instances of;


Code
&do_shrink($ReadImage,$WriteImage,$ID);


..and replace with;


Code
&do_shrink($ReadImage,$WriteImage,$ID,$_);


Then, find the routine "do_shrink", and find;


Code
my $_GetDimensions     = $cfg->{'GetDimensions'};


...replace ADD BELOW the following;


Code
if ($_[3] eq 'FieldName') { $_PercentageSmaller = '100x50'; }


Obviously, you need to change "FieldName" to whatever the name of your field is, as well as the dimensions you want to use :)

It should then just work with a "Cleanup" being run.

Cheers
Andy
Programmer/Designer/LinksSQL Freak Cool

http://www.ultranerds.com
http://www.imagesql.com


jag
Novice

Karma: -0 / +0

Sep 8, 2004, 8:57 AM

Post #9 of 13 (3053 views)
Shortcut

Send jag a wink
Re: [Andy] Detailed Image Plug-in [In reply to] Can't Post

Andy Sorry I'm finding simple things difficult today :

I only found this once and replace it but was worried since you say all instances I may be missing something :

Code
 &do_shrink($ReadImage,$WriteImage,$ID);



Then :

Code
 my $_GetDimensions     = $cfg->{'GetDimensions'};


...replace ADD BELOW the following;


Code
 if ($_[3] eq 'FieldName') { $_PercentageSmaller = '100x50'; }



when you write "replace" I'm not sure whether to replace my $_GetDimensions = $cfg->{'GetDimensions'}; but I feel like I should keep it.
Finally where I see PercentageSmaller ='100x50' what does this do ?

Thanks, John


Andy
Enthusiast

Karma: -1 / +7


Sep 8, 2004, 9:27 AM

Post #10 of 13 (3052 views)
Shortcut

Send Andy a wink
Re: [jag] Detailed Image Plug-in [In reply to] Can't Post

Sorry, the first replacement varies.

The 3 variatations I could find were;


Code
&do_shrink($ReadImage,$WriteImage,$highest_id); 
&do_shrink($ReadImage,$WriteImage,$hit->{ID});
&do_shrink($ReadImage,$WriteImage,$_ID);


Just add ,$_ into all of these, so they look something like;


Code
&do_shrink($ReadImage,$WriteImage,$highest_id,$_); 
&do_shrink($ReadImage,$WriteImage,$hit->{ID},$_);
&do_shrink($ReadImage,$WriteImage,$_ID,$_);



Code
when you write "replace" I'm not sure whether to replace my $_GetDimensions = $cfg->{'GetDimensions'}; but I feel like I should keep it.  
Finally where I see PercentageSmaller ='100x50' what does this do ?


Sorry, I mean't "add" (i.e below the variable declerations).

Been a pretty busy day :/

Cheers
Andy
Programmer/Designer/LinksSQL Freak Cool

http://www.ultranerds.com
http://www.imagesql.com


jag
Novice

Karma: -0 / +0

Sep 8, 2004, 6:01 PM

Post #11 of 13 (3051 views)
Shortcut

Send jag a wink
Re: [Andy] Detailed Image Plug-in [In reply to] Can't Post

I have a problem in the admin area that the view or download links redirect to a new window with the admin panel homepage instead of redirecting to a new window with the image.

Also the second image is not being reduced in size it is the original size of 350K rather than 30K ?

Thanks, Jag


(This post was edited by jag on Sep 8, 2004, 6:19 PM)


Andy
Enthusiast

Karma: -1 / +7


Sep 8, 2004, 11:31 PM

Post #12 of 13 (3048 views)
Shortcut

Send Andy a wink
Re: [jag] Detailed Image Plug-in [In reply to] Can't Post

Afraid I can't do anything more to help unless I can have some kind of access to your installation. There is only a limit you can do in a forum :(

Cheers
Andy
Programmer/Designer/LinksSQL Freak Cool

http://www.ultranerds.com
http://www.imagesql.com


jag
Novice

Karma: -0 / +0

Sep 28, 2004, 2:26 AM

Post #13 of 13 (2682 views)
Shortcut

Send jag a wink
Re: [Andy] Detailed Image Plug-in [In reply to] Can't Post

Thanks Andy for looking into this on my system. Just in case someone does something as silly as I did : I actually forgot to add the second image's name to the field in the plug-in configuration page to indicate that I wanted it to be reduced, hence the image being uploaded was kept at the original size Blush.

John

 
 
 


Search for (options) Powered by Gossamer Forum v.1.2.4