Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hey guys,
I found a solution to this for Drupal 5, some nice code which enabled lightbox, but it doesn't work with Drupal 6 & I'm not clever enough to to update it. This is the first gallery module I could actually get working nicely & would love it to look that bit nicer. Thanks for the the grand module, it's been a lifesaver!
Cheers,
Nick,
Comment | File | Size | Author |
---|---|---|---|
#8 | nodeimages_lightbox_error_scr.jpg | 33.46 KB | cyc |
Comments
Comment #1
executex CreditAttribution: executex commentedThat's a good idea. Btw how far is the development for the 6.X?
Comment #2
GiorgosKHere is how to do it but I don't know how to create patches
Change this code
to this
install and enable thickbox and any NEW images you create will have thickbox behaviour
or just include next function into your template.php (in your active theme folder) and clean cache
NOTE: This implementation works ONLY for images that are presented as thumbnails
Comment #3
cincy_kid CreditAttribution: cincy_kid commentedThanks Giorgosk!
This fixes one bug for me. Now instead of clicking a thumbnail and getting 3 of 3 (when there's only 2 images), it just shows the thumbnail that I cliked on with no next and previous (which is better than before but would be great to have the correct version of next and previous).
But even if it couldn't accomplish that, what would REALLY be great is what the OP posted about the gallery. When I click on the image gallery link, I would love it to open in thickbox and work properly. I have tried using some of the code posted for the 5.x fixes but no luck.
Anyone want to tackle this one and put the finishing touches on this great module!
Comment #4
GiorgosKIf you only problem is making all the images as part of one gallery (image 1 of n)
then all you need is
rel="gallery-n"
I have not tested this but it should work
I did not understand the other part of you request ...
Comment #5
cincy_kid CreditAttribution: cincy_kid commentedHello Giorgosk and thank you again!
Your snippet allows my thumb images to have 1 of n with proper next and previous buttons, thats great!
The second part of my request was about the link that says: "View Photo Gallery". Currently if I click the link it takes me to a new page like www.mysite.com/node/112/image_gallery which is part of node_images. I was hoping if I click the link it will open up the entire gallery in Thickbox instead of taking me to a generic node_images gallery page.
Does that make sense?
Thanks again!
Comment #6
cincy_kid CreditAttribution: cincy_kid commentedStill been trying to figure this one out.
I have been trying to modify/use some code that was posted back in 2007 for 5.x
and he even posts a patch for the module but I was hoping to use some solution for 6.x and just use my trmplate.php file instead of hacking the module.
That thread is here: http://drupal.org/node/118040
Anyone else having any luck opening the image gallery in thickbox?
Comment #7
mgearr CreditAttribution: mgearr commentedGiorgosK, thank you! I took your code as the source and made the simple LightBox gallery from it. Here what I've got finally. Not yet finally maybe, but it works :)
P.S. Of course it didn't work in IE, so here's the more consistent solution. It tested in Firefox 3.0.5, Opera 9.64, IE 6 and Chrome 1.0.154.48. Chrome slightly distorts the page, but it's acceptable and I have no will to solve this issue.
So,
I've simply put it at the end of template.php
and the relative CSS part. I'm the simple guy, so it was put into theme's template.css as simple:
These all stupid CSS things took some hours out from my life :( I'd be glad to see any CSS corrections. The code itself looks fine at the first sight.
There are the things like /*\*//*/ and w\idth there in CSS. It's not misprint and it's ok. Welcome to IE world. it's explained at the links commented in the CSS title. Now we've got IE8 for more fun, so breathe steady and relax.
Comment #8
cyc CreditAttribution: cyc commented@mgearr (#7),
I'm using your solution to display node images in lightbox layer.
it works, but display is far from perfect (screenshot)
what should I do to get proper lightbox look?
Comment #9
cyc CreditAttribution: cyc commentedok, got it... in your code you have used lightbox_alt.css ;-)
Comment #10
asb CreditAttribution: asb commentedNo activity for >2 years. Closing.