I am using Drupal 6.2 with the latest (today's) version of your shadowbox module and just cannot get it to work. I have followed the install instructions three times, including downloading your module and the shadowbox build stuff, tried two different themes in case that was the problem.
I have tried it with a story and a webform module, from a menu link, a link in a story and a link on a block. My links always work but no shadowbox ever appears. I have looked at the page source and verified that the .js files were being referenced and are there where the server can find them.
Finally, I tried using Firefox on Ubuntu and IE on Windows.
I'm sure I am doing something wrong, but I just don't know what else to try. Sure would appreciate any help.
Comments
Comment #1
psynaptic commentedDid you add
rel="shadowbox"to the links?Comment #2
psynaptic commentedAlso, don't post issues on my blog! I have deleted the comment you added there. Even when drupal.org is down I don't feel it's of any value to readers over there to post issues like this. This is the proper place for issues to be posted.
Now, even though you've written quite a lot in your post you still haven't given much useful information. What code are you using to trigger Shadowbox on your links? In what way is it not working? Describe the steps you have taken (in detail) to get it working.
Your post is from 4th June but the last version out for 6.x was on 13th May. Maybe you downloaded the 5.x version and tried to load it in 6.x?
Comment #3
psynaptic commentedComment #4
Anonymous (not verified) commentedI have the same issue. I've added rel="shadowbox" to all image links in my image_gallery, but shadowbox doesn't load on image click.
Tracing through the js code yields the following error:
Error: Shadowbox is not defined
Source File: http://www.example.com/site/sites/all/modules/shadowbox/shadowbox.js?S
Line: 39
Everything looks good in the html source:
<link type="text/css" rel="stylesheet" media="all" href="/site/sites/all/modules/shadowbox/shadowbox/build/css/shadowbox.css?S" />
<link type="text/css" rel="stylesheet" media="all" href="/site/sites/all/modules/shadowbox/shadowbox.css?S" />
<script type="text/javascript" src="/site/sites/all/modules/shadowbox/shadowbox/build/js/adapter/shadowbox-jquery.js?S"></script>
<script type="text/javascript" src="/site/sites/all/modules/shadowbox/shadowbox/build/js/shadowbox.js?S"></script>
<script type="text/javascript" src="/site/sites/all/modules/shadowbox/shadowbox.js?S"></script>
<script type="text/javascript">jQuery.extend(Drupal.settings, { "basePath": "/site/", "shadowbox": { "asset_url": "/site/sites/all/modules/shadowbox/shadowbox/", "loading_image": "images/loading.gif", "animation": true, "animation_sequence": "wh", "overlay_color": "#000", "overlay_opacity": 0.85, "overlay_listen": true, "resize_duration": 0.35, "fade_duration": 0.35, "display_nav": true, "flv_player": "flvplayer.swf", "background_image": "images/overlay-85.png", "autoplay_movies": true, "show_movie_controls": true, "continuous_galleries": false, "display_counter": true, "counter_type": "default", "viewport_padding": 20, "initial_height": 160, "initial_width": 320, "enable_keys": true, "keys_close": [ "c", "q", 27 ], "keys_previous": [ "p", 37 ], "keys_next": [ "n", 39 ], "handle_large_images": "resize", "handle_unsupported": "link", "extensions_img": [ "png", "jpg", "jpeg", "gif", "bmp" ], "extensions_qt": [ "dv", "mov", "moov", "movie", "mp4" ], "extensions_wmp": [ "asf", "wm", "wmv" ], "extensions_qtwmp": [ "avi", "mpg", "mpeg" ], "extensions_iframe": [ "asp", "aspx", "cgi", "cfm", "htm", "html", "pl", "php", "php3", "php4", "php5", "phtml", "rb", "rhtml", "shtml", "txt", "vbs" ] } });</script>
.
.
.
<a href="/site/photo/001-vintage" rel="shadowbox"><img src="http://www.example.com/site/sites/default/files/images/001-vintage.thumb..." alt="001-vintage" title="001-vintage" class="image image-thumbnail " width="100" height="100" /></a><h3><a href="/site/photo/001-vintage">001-vintage</a></h3></li>
Any suggestions?
Comment #5
psynaptic commentedUse the stable version?
Comment #6
Anonymous (not verified) commentedThere's a stable version for Drupal-6?
Comment #7
psynaptic commentedNope.
Comment #8
Anonymous (not verified) commentedAny other suggestions?
Comment #9
psynaptic commentedYou may be trying to use Shadowbox 2.0 rather than 1.0.
Comment #10
Anonymous (not verified) commentedNope. I downloaded shadowbox-1.0.tgz from http://freestylesystems.co.uk/files/shadowbox-1.0.tgz and extracted it to the drupal shadowbox module dir, renaming shadowbox-1.0/ to shadowbox/.
http://www.grabup.com/uploads/5686e69f6a28b131dbb4483c6adb7aa1.png
Keep the suggestions coming! We'll get there. :)
Comment #11
Anonymous (not verified) commentedOK, after installing Firebug I found that the shadowbox-1.0 distribution had improper permissions, thus shadowbox.js wasn't getting loaded. :(
But now I get two new errors in the console when clicking on an image that has rel="shadowbox[gallery]":
current_gallery[i] is undefined
[Break on this error] if(typeof Shadowbox=="undefined"){throw"...\{(\d+)\}/g,function(C,D){return A[D]})}
shadowbox.js?b (line 1)
current_gallery[current] is undefined
[Break on this error] if(typeof Shadowbox=="undefined"){throw"...\{(\d+)\}/g,function(C,D){return A[D]})}
shadowbox.js?b (line 1)
Any ideas?
So close! (hopefully :)
Comment #12
Anonymous (not verified) commentedOK, so I guess Shadowbox doesn't work on Drupal-6. Oh well. Too bad because there aren't any good slideshow modules for D6.
Comment #13
ledelboy commentedDid you try Lightbox2. I am very happy with it. Check this out
Comment #14
psynaptic commentedIt worked fine for me using Shadowbox 1.0 but I can't account for all environments. I do intend to upgrade the 5.x-2.0 version to Drupal 6. Just might take a couple of weeks as I'm swamped with client work at the moment.
I'd love it if someone would have a go at porting 5.x-2.0 to 6. Shouldn't be hard.
Comment #15
psynaptic commented