can you integrate it that i can open the original size picture with lightbox or thickbox ?
i think this is better then open the picture in a new window or something

CommentFileSizeAuthor
#20 Teaser setting4.43 KBeastcn
#20 thickbox view23.66 KBeastcn

Comments

Babalu’s picture

or jquery lightbox :)

Babalu’s picture

hmm nobody think thats a good idea ? :)

Babalu’s picture

i think thats a good thing for small pages (in the width) and original size pictures

Babalu’s picture

Title: Original Size Picture with lightbox or thickbox » Open Original Size Picture with lightbox or thickbox
zdean’s picture

I would be very interested to know how to show photos/albums in Lightbox2.

Can someone please share instructions for doing so...I tried using the "custom image trigger classes" feature in LB2 but can't seem to make it work.

thanks for any ideas!

kecinzer’s picture

Subscribing :).

tuoermin’s picture

If you want to integrate it with lightbox you should change the line 525 in photos.module file:

Original:

$output = l('<img alt="'.$t['title'].'" title="'.$t['des'].'" src="'._photos_file_create_url($t['p1']).'">','photos/image/'.$fid,array('class'=> 'imageview','html'=>true));

Changed:

$output = l('<img alt="'.$t['title'].'" title="'.$t['des'].'" src="'._photos_file_create_url($t['p1']).'">', $t['p2'], array('attributes' => array('class'=> 'imageview', 'rel' => 'lightbox[' . $t['pid'] .']'),'html'=>true));

The only trouble that remains is when albums have multiple pages. Lightbox's grouping images function works just for images on one page. You should thus close Lightbox, load next page and click on image to start viewing the next group of images.

Note to developer:
The l() function's $options array is not structured correctly and thus the attribute class="imageview" is not inserted to the image link.
The rel="lightbox[88]" attribute could be changed to something more generic, like rel="albumPhotos[88]", and then change Lightbox settings (Administration->Site configuration->Lightbox2->Automatic image handling->Custom Class Images).

eastcn’s picture

The l() function's $options array is not structured correctly and thus the attribute class="imageview" is not inserted to the image link.

thanks

judaz’s picture

Hi !

The nice workaround / fix that tuoermin described eralier in the post, doesnt work anymore, the script
seems to have been somewhat updated/upgraded to support flash 8/10 and some other issues.
Im using the latest beta 6.x-2.5-beta4.

There is a Thickbox directory within the module, but it doesnt say anywhere on how to apply / use the function.
Used the Trial & Error method to try to get the fix above to work with the new beta, but no dice.

If anyone have a minute or two, i would deeply appriciate any help that can be given.

Kinda Regards,
J

vako’s picture

I will second judaz's request. I hope we get a resolution or a fix soon.

raplom’s picture

Thanks for this tuoermin
Works with my setup:
Lightbox2 (6.x.1.9)
Album Photos (6.x.1.4-beta3)

marzoo’s picture

Hello,
First of all, sorry for my english... :s

I'm working with Album Photos (6.x.2.5-beta4)...

I try this with lightbox:
$output = l('<img alt="'.$t['title'].'" title="'.$t['des'].'" src="'._photos_file_create_url($t['p1']).'">', $t['p2'], array('attributes' => array('class'=> 'imageview', 'rel' => 'lightbox[' . $t['pid'] .']'),'html'=>true));

and this with thickbox

$output = l('<img alt="'.$t['title'].'" title="'.$t['des'].'" src="'._photos_file_create_url($t['p1']).'">', $t['p2'], array('attributes' => array('class'=> 'thickbox', ),'html'=>true));

Thickbox or lightbox are ok... but there's no image inside.
The path is wrong and i don't know why.
it gave me : /root/?q=sites/default/files....
instead of : /root/sites/default/files....

Someone can help me please ?

vako’s picture

Enable Clean URLs at: /admin/settings/clean-urls
and hopefully the problem will be fixed for you.

marzoo’s picture

Yes! Thank you !

I'm working on the localhost with easyphp, and this option is disable,
but on the web server all is ok!

eastcn’s picture

The next release will contain thickbox functionality, please view the demo: http://album.cmsns.com/node/8
thanks.

barroomhero’s picture

First, thanks for this module it's great!!!

I can't find in the album photo settings where i could activate thickbox in the previous message you said it will be a functionality but i can't see it!

thanks
cheers

radiofranky2009’s picture

I'm using 6.x-2.6-beta3 module and I was wondering if is possible when user click the image, the lightbox pops up instead need to click on the tiny pictures on lower side of the thumbnail?

Could you please show me where to modify in photo.module to replace "http://localhost/photos/image/439" with "http://localhost/photos/get/439/640x480/sites/default/files/photos/image..." which is pop up lightbox.

update: quick dirty way I did is use photo.css to resize the thinkbox from 20 x 20 to my size 100 x 100 and remove the move-over image

thanks

Fogg’s picture

how do I activate the thickbox in 2.6 ? It should be available, right?

kamydon’s picture

How can thickbox or lightbox be enabled with the new feature? I can't find the way.
Help is very appreciated.

Thanks

eastcn’s picture

StatusFileSize
new23.66 KB
new4.43 KB

@radiofranky2009
@Fogg
@kamydon

1, set the album: http://drupal.org/files/2010-04-24_094300.png

2, in Teaser view: http://drupal.org/files/2010-04-24_094151.png

nathaniel’s picture

Status: Active » Closed (fixed)