Using Lightbox2 and Image_caption at the same time...

itowler - July 23, 2008 - 13:47
Project:Image Caption
Version:6.x-2.2
Component:Miscellaneous
Category:support request
Priority:normal
Assigned:itowler
Status:closed
Description

I have a live site, that I would like to use lightbox2 and image caption on at the same time, on the same image. I would like to have the caption displayed under the picture giving a description, and telling the user they can click on the picture (and thus triggering lightbox2). Something is not working...and I am not sure what or why...

An example of what I am trying to do can be found at :
http://www.marylandsar.org/node/33

Here is an example of the html for the picture....

<a rel="lightbox[][Maryland SAR Presents a Check to the Maryland Archives]" href="/SAR-Images/GW_Archives.JPG"><img width="300" vspace="15" hspace="15" height="225" border="0" align="right" title="MDSSAR Presents Check to The Maryland State Archives. Click to enlarge" alt="Check presentation To Maryland Archives" src="/SAR-Images/GW_Archives.JPG" class="caption" /></a>

I think that part of the issue might be from the fact that the caption has become part of the "Link" used in lightbox but I am not sure.

Here is the "caption" portion of my themes css:
.caption{
background-color: #EFEFEF;
padding: 5px;
font-size: 0.5em;
text-align: center;
}

Any help would be great.

#1

stella - July 23, 2008 - 13:53

I'm confused as to what the problem is. On the url you provided, I can see a photograph and a caption underneath. When I click on the photograph or the caption the image appears in the lightbox. Is this not what you want?

Cheers,
Stella

#2

itowler - July 23, 2008 - 13:58

Stella,

The CSS values are not being applied to the caption area. The caption should be appearing in a grey box, in black text, in a smaller font size.

I do not want the caption to be the link, but the picture.

Also the caption should be appearing directly underneath the picture, and not offset like it is.... Like I mentioned I think this is because I have the "Class=caption" included as part of the link....but I am not sure how to do it without making it part of the link...

does that help explain?

Should I cross post this in the image_caption area?

#3

stella - July 23, 2008 - 14:35
Project:Lightbox2» Image Caption
Version:6.x-1.8»

Lightbox2 doesn't modify the class name or anything else on the image or link since this image isn't an automatically handled image - i.e. you've added the rel="lightbox....." bit to the link manually. All lightbox2 does in such cases is to add a click event to the anchor. I don't think this is an issue for lightbox2.

Moving to image caption queue.
itowler: please verify that the image caption version i've selected is correct.

Image caption maintainer: if you need more information from me, please let me know.

Cheers,
Stella

#4

itowler - July 23, 2008 - 14:42
Version:»

Stella,

thanks for the help...

you are right, I added the Rel=lightbox manually....

The version for the Image caption is actually 6.x-2.x I have updated it.

thanks.

ian

#5

davidwhthomas - November 14, 2008 - 09:18
Version:» 6.x-2.2
Status:active» fixed

#6

System Message - November 28, 2008 - 09:22
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.