Closed (fixed)
Project:
Shadowbox
Version:
6.x-3.0
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
2 Sep 2009 at 09:38 UTC
Updated:
2 Oct 2009 at 00:00 UTC
Hi,
in the new version not work Auto image handling. Shadowbox works only if I add manually rel="shadowbox". I tried to disable the feature and enable it again. Someone has the same problem ?
Comments
Comment #1
EricD commentedYes, I'm having the same problem. The documentation to get this to work within Drupal is VERY poorly written.
I wish that I could figure out how to get it to work in Drupal 6.X... then I would re-write the instructions for those having the same issues as I. Too bad, it's seems like it might be a nice module. The "example" works great, but anything else just simply doesn't work.
I'm certain it has to do with the (rel="shadowbox") link but the instructions to use Shadowbox.setup are not clear.
If anyone is willing to help me, I'd be willing to re-write a set of instructions that are more specific than the "INSTALL.txt", "README.txt" and "TROUBLESHOOTING.txt" that come with the module.
Comment #2
shp commentedThe same problem... This feature is handled by script shadowbox_auto.js in the module's directory (script uses jQuery). I'v put shadowbox_auto.js code directly at the page end & drop original script - no changes. Then I tried
at the page end - the same result.
Clean JS:
- works!
So, it seems that there are some problems with jQuery method attr().
Comment #3
djs_core commentedOk,
and so we have a solution for normal users? ;) What to change in the module to make it functional? I tried to change shadowbox_auto.js according to your information:
But no change...
Comment #4
shp commentedIt seems that the problem is with
ready(). So, the dummy solution is not to use it (shadowbox_auto_dummy.js):!! But it will work only after the links appear in the DOM. So, you should execute this code at the page-end. The easiest way is to modify your page.tpl.php:
! But this solution is temporary and dummy ! The developer should examine this problem and use
hook_footer()better to insert js (or rewrite his js-script).Comment #5
djs_core commentedThank you very much! Dummy solution work ;) I hope that the problem the authors formally resolved as quickly ...
Comment #6
psynaptic commentedThanks guys:
http://drupal.org/cvs?commit=264304
Committed to DRUPAL-6--3