First of all.. Lightbox is a great module, Love it and using it on my personal website ^________^
I know someone posted a similar issue but I can't seem to get it right. I'm using IMCE imce-5.x-1.2 with TinyMCE and Lightbox2 5.x-2.5, but for some reason even after giving a special class to the image tag
lightbox is triggered but displays the image of the img tag instead of displaying the image on the anchor tag. The class was given by TinyMCE which can be set to use CSS classes from the theme.
<a href="/durpfile/u1/great_whiteshark_0.jpg"><img src="/durpfile/u1/great_whiteshark_1.jpg" class="lefty" alt="A great white shark swimming" title="White Shark" align="left" height="142" width="200" /></a>
On the other hand giving rel=lightbox on the surrounding anchor text works.
Did I miss something here? Because I made the assumption that using special class on the img tag is suppose to trigger lightbox and display the image on anchor which is not an image node.
You can see what I mean at http://demo.idebagus.com/page/great-white-shark
Thanks in advanced and sorry if my english doesn't make much sense. ^________^
Comment | File | Size | Author |
---|---|---|---|
#8 | lightbox2_250618.patch | 3.53 KB | stella |
Comments
Comment #1
stella CreditAttribution: stella commentedHi,
First off, the url to your site that you provided doesn't work.
As to your query. I can't be sure of your configuration without seeing your site. However, the html image link code you provided above looks like it should work provided you have entered the
lefty
class name in the list of "custom image trigger classes" on the lightbox2 automatic settings configuration page (admin/settings/lightbox2/automatic).If this information doesn't help, then please send me a working link to your site and I'll take a closer look.
Cheers,
Stella
Comment #2
ass45sin CreditAttribution: ass45sin commentedHi Stella,
Thanks for the prompt reply. Seems like the subdomain is not propagating properly, give me some more time to provide you with a working link.
Anyway, I have entered the lefty class as the custom image trigger classes. That's why puzzles me.
-=EDIT=-
<script type="text/javascript">Drupal.extend({ settings: { "lightbox2": { "rtl": false, "file_path": "/(\\w\\w/)durpfile", "base_path": "/", "default_image": "/sites/all/modules/lightbox2/images/brokenimage.jpg", "display_image_size": "preview", "overlay_opacity": "0.4", "use_alt_layout": 0, "disable_zoom": 0, "force_show_nav": 0, "image_node_sizes": "(\\.thumbnail)", "trigger_image_classes": "img.image-img_assist_custom,img.thumbnail, img.image-thumbnail,img.lefty", "group_images": 1, "disable_for_gallery_lists": 1, "disable_for_acidfree_gallery_lists": true, "node_link_text": "View Image Details", "node_link_target": 0, "image_count": "Image !current of !total", "lite_press_x_close": "press \x3ca href=\"#\" onclick=\"hideLightbox(); return false;\"\x3e\x3ckbd\x3ex\x3c/kbd\x3e\x3c/a\x3e to close" } } });</script>
-=EDIT=-
If it's not much to ask, you could add demo.idebagus.com and point it to 76.74.146.46 on your host file. But I'm trying to fix it at the moment. I'll get back to you asap.
Anyway thanks again.
Regards
Edwin Rene
Comment #3
ass45sin CreditAttribution: ass45sin commentedHi Stella,
If you're using opendns.com as you DNS servers it the link should be working by now.
-=EDIT=-
Terribly sorry, something is definitely wrong with the name server propagation
I'll try and set it up on a different server.
Thanks,
Ed
Comment #4
stella CreditAttribution: stella commentedI've tried adding it to my hosts file but unfortunately it doesn't seem to work. Is the IP address above correct?
In the meantime, the lightbox code has changed substantially in the last week (added slideshow support). Is there any chance you could upgrade to the latest dev version? It should be stable. If you do, don't forget to run update.php and ensure your settings are still correct after the upgrade. It would just make it easier for me to debug.
Cheers,
Stella
Comment #5
ass45sin CreditAttribution: ass45sin commentedHi Stella,
Yes the IP address is correct. It's 76.74.146.46 demo.idebagus.com. Damn this is getting wierd.
Anyway I've added another subdomain so the following URL should work too
http://sandbox.idebagus.com/page/great-white-shark.
Nice ^___^ I'll try it out then, and get back to you with the result.
Thanks again.
Ed
Comment #6
stella CreditAttribution: stella commentedHmmm I'm afraid that one doesn't work for me either... I can try from another network later on. However, I'll try and replicate your setup using the settings I can see in comment #2 above in the meantime.
Cheers,
Stella
Comment #7
ass45sin CreditAttribution: ass45sin commentedFound the problem with the DNS hiccup and fixed it.. so you might be able to see it within the next 24 hours or maybe less.
I've also added this page with the 5.x-2.x-dev version. here, and apparently it has the same effect of displaying the image on the img tag instead of the image on the anchor tag.
On a side note, I've implement slideshow on the sample gallery and it works very well. ^_____^
Thanks to all involved in developing this wonderful module
Regards
Ed
Comment #8
stella CreditAttribution: stella commentedHi,
The attached patch should fix the issue for the 5.x-2.x-dev version. Alternatively you can use the next dev release (available in the next 12 hours). The next dev release also contains html content support (i.e. non-image links), so there's an additional benefit to upgrading. :)
Cheers,
Stella
Comment #9
ass45sin CreditAttribution: ass45sin commentedHi Stella,
That's great ^________^
Thank you very much.
Regards
Ed
Comment #10
ass45sin CreditAttribution: ass45sin commentedHi Stella,
By the way since this is already solved would you mind if I create a book page with ------Lightbox2 as the parent or somewhere else in the How to section, explaining Lightbox2 + TinyMCE | FCK Editor and get them working together? Seems like more then a couple of people needs help on this one ^____^ although they read thoroughly they don't need any help. Well those who doesn't know CSS might also get some help out of this.
Anyway I'd be more then happy to do it.
Regards
Ed
Comment #11
stella CreditAttribution: stella commentedSure go ahead, sounds like a great idea - though maybe make it a child of the Lightbox2 - Howto add a lightbox to your images and other content handbook page instead.
Cheers,
Stella
Comment #12
ass45sin CreditAttribution: ass45sin commentedDone, you may want to preview / edit. English is not my mother tongue. ^_________^
Thanks again Stella.
Regards,
Ed
Comment #13
stella CreditAttribution: stella commentedThat's great, thanks! I tweaked the text a little but didn't change the meaning.
Thanks again
Cheers,
Stella
Comment #14
stella CreditAttribution: stella commentedReleased in Lightbox2 6.x-1.6 and 5.x-2.6.
Cheers,
Stella
Comment #15
Anonymous (not verified) CreditAttribution: Anonymous commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #16
gor_yo CreditAttribution: gor_yo commentedI dis have the same issue. This helped me a lot.