Closed (fixed)
Project:
Shadowbox
Version:
5.x-2.2
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 Mar 2009 at 17:26 UTC
Updated:
20 Aug 2009 at 10:44 UTC
Hello,
I've followed all the instructions and searched the forum, but I can't find the solution. Shadowbox is partially working, but there are 2 problems:
You can see what I'm talking about here: http://mytestanswers.com/
I've tried both codes below, but they return the same result:
<a href="/files/video/LSAT-FPT-A2/LFPT-A2-01.mov" title="LSAT Sample Video" rel="shadowbox"><img src="/files/images/videoscreenshot.png"></a>
<a href="/files/video/LSAT-FPT-A2/LFPT-A2-01.mov" title="LSAT Sample Video" rel="shadowbox;width=650;height=500;options={overlayOpacity:1,resizeDuration:0.2};"><img src="/files/images/videoscreenshot.png"></a>
I'm using Shadowbox 2.0, btw. I've read the known issue with Quicktime - perhaps this is it in the "flesh". Still, I'd love for this to work and wanted to see if anyone had any suggestions.
Thanks,
Jim
Comments
Comment #1
psynaptic commentedLooks like you have moved on to using lightbox2. Shall I close this issue?
Comment #2
jimmb commentedHi psynaptic,
Thanks for the response. We did try getting it to work with Lightbox2, but that was unsuccessful as well.
So at this point the site is back to being set for Shadowbox. We just need it to work when a user clicks the mock video image on the frontpage. But the problem is still there, so any help is much appreciated!
Jim
Comment #3
psynaptic commentedCan you try setting the filename to all lowercase letters?
Comment #4
jimmb commentedSure, I just changed the filename to all lowercase letters ("lfpt-g-03.mov"). It did not appear to help though...
Jim
Comment #5
psynaptic commentedYour site is using thickbox now.
Comment #6
jimmb commentedThickbox is only there for Ubercart (and actually there are no product images, so theoretically it shouldn't be called at all).
Both Thickbox and Shadowbox are enabled in the modules area, but the code for that frontpage image says rel="shadowbox".
After enabling the Shadowbox module and configuring it, I was under the impression that adding rel="shadowbox" to the image tag would be enough to activate it...
Thanks,
Jim
Comment #7
psynaptic commentedThis is in the head section:
Nothing from Shadowbox is getting added to the page.
You don't specifically need Thickbox for Ubercart. You can use either Lightbox2 or Shadowbox in place of Thickbox.
Can you enable Shadowbox properly so we can try and find the solution?
Comment #8
jimmb commentedpsynaptic,
I really appreciate your help with this! As far as I can tell, though, Shadowbox is installed correctly. Going down the list from "INSTALL.txt":
1. Follow the usual module installation procedure [2].
Have done this.
2. Download the Shadowbox 2.0 Full distribution [3].
Have done.
3. Extract the download, rename the shadowbox-2.0 directory to just 'shadowbox' and place it inside the shadowbox module directory.
Done.
4. Visit the status page [4] to check Shadowbox is installed correctly.
At /admin/logs/status, it says: "Shadowbox - Installed correctly"
5. Visit the settings page [5] to review the global settings.
At /admin/settings/shadowbox everything should be set up correctly as well. There are a lot of settings, though, so I would be happy to give you a login account if you'd like look for yourself.
Thanks again,
Jim
Comment #9
psynaptic commentedLooks like you might have something in the "Page specific activation settings" making it not appear. Can you check that?
Comment #10
jimmb commentedInteresting, it was set up like this:
"Enable on only the listed pages.": selected
"Pages:"
<front>But I just changed it to:
"Enable on every page except the listed pages.": selected
and nothing in the "Pages:" field
It's still not working for me though...
Jim
Comment #11
psynaptic commentedHave you got the Global kill-switch checked?
The code in shadowbox.module to add the CSS and JS files in within
shadowbox_construct_header()and this is called withinshadowbox_menu($may_cache). Can you do some debugging and see if they are getting called? Try doing a dsm('TEST') aboveshadowbox_construct_header()if you have devel.module installed. This should show if that code is getting run.Can you turn off ALL caching too?
Comment #12
jimmb commentedCurrently the Global kill-switch is unchecked. Previously, though, I tried checking it, but neither state had any effect.
Caching is also turned off on the site.
As for the debugging, unfortunately I'm not yet a programmer and don't know enough to do what you mentioned. I asked a co-worker, but he wants to charge for the time and I'm not sure the client will want to pay extra for it. I was trying to figure this out mainly because I'm the project manager and wanted it to work.... So I'm not sure if, short of you practically holding my hand through this (which I doubt you have time to do), I'll be able to get much farther anytime soon.
In any case, thanks for your attempts to help - very appreciated and a good example for other module creators/maintainers!
Jim
Comment #13
psynaptic commentedPlease make sure Global kill-switch is enabled. I have renamed this in the dev release as it was very confusing for people. It is supposed to be checked/on for Shadowbox to be enabled.
Do this and I will have another look at your site.
Comment #14
jimmb commentedGreat, thanks for the further attention!
I have just checked the box next to "Global kill-switch" and saved changes.
Jim
Comment #15
psynaptic commentedOk, can you edit shadowbox.module and replace:
with:
Comment #16
jimmb commentedHello, I actually couldn't find that code in "shadowbox.module" (and I looked quite thoroughly). I'm using this version:
$Id: shadowbox.module,v 1.5.2.24.2.8 2008/09/20 10:06:17 psynaptic Exp $
One strange thing I noticed is that now when I click on the video image, it downloads the video rather than playing it in the browser. When I checked the "Global kill-switch" box last night, I tried it right afterward and the video was still playing in the browser. But today somehow that's changed.
For an experiment, I added the first given code, and then the replacement code to the file. In both cases, it didn't seem to have any effect (i.e. the video just downloaded to my desktop).
Thanks,
Jim
Comment #17
psynaptic commentedSeems like you are using an older version of the module. Can you install the latest dev release? Ideally from cvs checkout:
cvs co -d shadowbox -r DRUPAL-5--2 contributions/modules/shadowboxComment #18
jimmb commentedI don't know how to use CVS, but I'll need the latest dev version for Drupal 5. I looked on the /project/shadowbox page and only see one for D6. Is there a URL I can download the latest D5 version from?
Thanks,
Jim
Comment #19
psynaptic commentedI have turned on the dev snapshot for 5.x now. It might take a while to appear. Let me know what other issues you face.
Comment #20
jimmb commentedGreat, I have downloaded the 5.x-2.x-dev version and uploaded it to /sites/all/modules.
I'm not, however, seeing any difference. It's strange - clicking on the image continues to download the file now rather than play it....
Jim
Comment #21
psynaptic commentedI can see from your JS settings that you have not enabled some media options:
"extensions_img": [ ], "extensions_swf": [ ], "extensions_flv": [ ], "extensions_qt": [ "mov" ], "extensions_wmp": [ ], "extensions_qtwmp": [ "avi", "mpg", "mpeg" ], "extensions_iframe": [ "asp", "aspx", "cgi", "cfm", "htm", "html", "pdf", "pl", "php", "php3", "php4", "php5", "phtml", "rb", "rhtml", "shtml", "txt", "vbs" ]For now, please enable every option under Supported Media.
Comment #22
psynaptic commentedYour file is an .m4v. Can you transcode to a supported option?
Comment #23
psynaptic commentedYou don't need to enable the other Supported Media options. I did a test and changed the extension of your movie to .mov and it works. Well, it doesn't find the file because it doesn't exist but the link does invoke Shadowbox.
Comment #24
jimmb commentedOkay, I have changed the filename and updated the link. Now the .mov is playing again in the browser, but I'm still not seeing it in Shadowbox.
Thanks,
Jim
Comment #25
psynaptic commentedYou need to reinstall Shadowbox 2.0 into the shadowbox/shadowbox dir.
http://mytestanswers.com/sites/all/modules/shadowbox/shadowbox/build/lan... is not found.
Comment #26
jimmb commentedGerat, I have done that.
It's definitely getting closer - now clicking the image activates the Shadowbox "framework". It begins loading the .mov, but the video never starts playing, it just spins.
Thanks,
Jim
Comment #27
psynaptic commentedClosed to clear queue. Any further developments, feel free to reopen this issue. Patches welcome!