Lightbox using resize instead of full size.

volksman

Joined: 2005-07-22
Posts: 12
Posted: Mon, 2007-11-12 18:53

Using 3.0.2 is there any way to get Lightbox to show a resize of the image rather than the full thing? I have the perms on the album so that guests can't see full sizes and want to use an embedded image with lightbox to show the resize not the full size.

If its not via the web page interface is there a quick hack I can put in the code to do this? (Realizing that an upgrade will likely kill that mod).

 
capt_kirk

Joined: 2006-01-24
Posts: 492
Posted: Mon, 2007-11-12 19:39

Are you using <wpg2> tags or HTML for your lightbox links? The wpg2 tags should be getting resizes, just set the max size to equal to or less than the resize size. For HTML insertion via G2Image, I'm working on that for the next version.

Kirk
____________________________________
G2Image Documentation, G2Image Demo Page, My Family Website

 
volksman

Joined: 2005-07-22
Posts: 12
Posted: Mon, 2007-11-12 19:46

Hrm...I might be confused here then....

I use wpg2 tags. However on the G2Image options I have it set to "Thumbnail with Lightbox link to Full Size image". I don't see any other option that would link my thumbs to a resized image.

 
capt_kirk

Joined: 2006-01-24
Posts: 492
Posted: Mon, 2007-11-12 20:33

If you're inserting in G2Image with "Thumbnail with Lightbox link to Full Size image" you're using HTML, and there is not resize support there, yet. Next release. (If you look at the code view of a post, you can see that the thumbnail and link are in HTML instead of something like <wpg2>287</wpg2>.)

For now, you want to pick "WPG2 Tag" and then enable LightBox for WPG2 tags in the WPG2 -> Lightbox tab.

Kirk
____________________________________
G2Image Documentation, G2Image Demo Page, My Family Website

 
volksman

Joined: 2005-07-22
Posts: 12
Posted: Tue, 2007-11-13 14:23

Beauty! Got it. Thanks!

Now another issue though. When I am logged into the WP Dashboard the site renders fine (IE with lightbox). However if I'm not logged in the URL on the images changes to point to the Gallery and when I click on the thumb it brings me to a page with my template and a gallery page being rendered within.

I'm sure this must have something to do with the permissions on Gallery but I'm not sure what would cause it. The "Everybody" group has View Item and View Resized Item(s) as permissions is this not enough?

 
volksman

Joined: 2005-07-22
Posts: 12
Posted: Tue, 2007-11-13 14:27

Scratch that....Amazing what a night of good sleep will do for ones mental capacity... :)

It was a permissions issue. I reset the album to View all items and presto!

 
capt_kirk

Joined: 2006-01-24
Posts: 492
Posted: Tue, 2007-11-13 16:31

Great! Glad it's all working.

Kirk
____________________________________
G2Image Documentation, G2Image Demo Page, My Family Website

 
videosc

Joined: 2008-01-24
Posts: 9
Posted: Tue, 2008-02-05 23:09

I just wanted to thank you guys for this post and info. I just started using G2 with WP and had the same question about image sizes in Lightbox but this post answered it! Now on to my next forum search for how to include text and URL lnks at the bottom of Lightbox images.