Closed (fixed)
Project:
Shadowbox
Version:
6.x-4.2
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
24 May 2011 at 20:59 UTC
Updated:
3 Aug 2011 at 21:21 UTC
Hello everybody!
I have successfully installed the shadowbox module and (nearly) everything is working.
Pictures are handled automatically and also a combination of the video module, views and shadowbox is doing fine.
BUT now I'm trying to open a YouTube video as a hyperlink. The shadowbox is playing the video as I want it to but also a second tab is opening (youtub.com).
What I'm doing wrong?
(sry for my bad english)
Thank you for your help and greets from Austria!
Comments
Comment #1
manfer commentedI suppose youtub.com is a typographic error.
Can you provide a link to see the problem?
Comment #2
tchibo commentedShure!
http://tinyurl.com/3lkolm7
Klick on the herlink "Test"
Greets
Comment #3
manfer commentedYour problem comes from a javascript code that force external links to be opened in a new tab.
I'm not sure if it is exactly External New Tab
If it can be configured to exclude some links, you should exclude youtube links.
Comment #4
manfer commentedYes confirmed it is that one and it does not have a way to exclude links, only to exclude paths. The feature you would need is to exclude links not paths, so in the path were your youtube links reside, the rest of external links are opened in new tabs if that is what you want.
Your solution is to disable that module or hack it. For example you can hack its external.js file from:
to:
(I can't highlight this code because php tag does not show the pattern correctly)
But the problem will arise again when you include any other external link you don't want to be opened in a new tab: a vimeo video, an external flash video, ....
Comment #5
tchibo commentedThank you sooo much!
Now it works! Thank you!!!
Comment #6
manfer commented