Active
Project:
Node Images
Component:
User interface
Priority:
Minor
Category:
Feature request
Assigned:
Unassigned
Reporter:
Anonymous (not verified)
Created:
6 Feb 2007 at 16:52 UTC
Updated:
30 Jan 2018 at 19:13 UTC
A very minor request
Would it be possible to use a lightbox instead of a javascript popup?
Just wondering. Otherwise, very helpful mod, will look to add to my 'must-have mod's' list
Thanks,
txcrew
Comments
Comment #1
soflete commentedWell, I've just added this modification to the module for a project I'm working on. First I modified theme_node_images_view function:
I included the js and the css and modified the link element. Then, of course, I added the lightbox library files to the Node Image module's folder. I don't know if this is the cleanest way to do it, but it worked fine for me.
Comment #2
ray007 commentedI'm about to do something similar to use thickbox.
What would make all lives a lot easier:
extract the creating of the a-tag and the img-tag into a theme-able function, then everybody could care just about the presentation of 1 tumbnail and not about the html-structure to present the thumbs.
Comment #3
mad-admin commentedAs a small improvement to soflete's nice piece of code, I added the node title to the lightbox links so that you can move backwards and forwards between all images of the node without closing the lightbox:
I also found it necessary to copy the images directory from the lightbox module across to the subdirectory within the node image module's directory (soflete called it wpmod).
The Node Image + Lightbox combo is so good that I am abandoning IMCE.
--
Andy
Comment #4
ray007 commentedAt http://drupal.org/node/139349#comment-248708 I've posted a patch that would also have fit here.
Comment #5
subspaceeddy commentedJust to let you know, I've implemented this patch along with many others and uploaded a new module here: http://drupal.org/node/150904.
These are the things incorporated:
* H3rnand3z & ray007 ('please help with thickbox modification' - http://drupal.org/node/139349)
* mad-admin & soflete ('Integrate with lightbox' - http://drupal.org/node/116515)
* Vallenwood ('Highly Enhanced Thumbnail generation - supersedes "Keep fixed thumnail size" - http://drupal.org/node/147538)
* terrybritton ('Altering the image gallery layout.' - http://drupal.org/node/135572 - *you will need his css file*)
* subspaceeddy ('div not closed in theme_node_images_gallery($element)' - http://drupal.org/node/145220)
* also further modifications by subspaceeddy to switch between lightbox, thickbox and default, and an ability to alter position of node body on 'Imaqe Gallery' page.