Layers in vimeo and zome image plugins

Permalink
Hi,

I have a page with both vimeo and zoom image. My problem is that vimeo always gets on top of everything else, see attached image. I tried to add z-index to vimeo and zoom image but it didn't work or I didn't do it right.

Is there a known workaround to this issue?

Best regards, David

PS. I have filed an issue on vimeo on this:http://www.concrete5.org/marketplace/addons/vimeo/bug_tracker/vimeo...

1 Attachment

 
mario replied on at Permalink Reply 1 Attachment
mario
yeah, i've run into this before on hybrid projects. it's irritating.

Flash content generally sits on top of any regular content regardless of z-index. In order to stop this behavior you need to change the wmode parameter in flash to opaque or transparent.

Adobe's description:
http://kb2.adobe.com/cps/155/tn_15523.html...

Here's the long explanation with some caveats:

http://www.quantumslip.com/archives/2006/09/flash_wmode_scr.html...

You may need to make a custom template and/or replace the vimeo player view.php file in packages-->vimeo-->blocks-->vimeo with the attached file (rename the extension to php).

Make sure that you back up your original file just in case.

I'm not sure if it'll work because the vimeo embed code is a little wacky. If that doesn't work try popping the wmode modification directly into the object tag instead of being a parameter.

I usually insert flash content using swfobject so it's been a long while since I've modified object/embed tags. I've also not inserted vimeo content yet. I'll sign up for an account later and see if the fix works.

P.S. I've also corrected a typo in the original view.php by spelling the videoHeight round echo correctly.

mario
sjoa replied on at Permalink Reply
Thanks for your fix Mario, it works great!
/David
chuong replied on at Permalink Reply
out of curiosity, since I've been slammed and haven't had a chance to test it, did the new view.php work or did you tweak it out yourself?

mario -aka chuong (logged into c5 under my bosses account, lol)
sjoa replied on at Permalink Reply
It worked without tweaking!
/David
mario replied on at Permalink Reply
mario
for the update :)
jGRUBBS replied on at Permalink Reply
"You may need to make a custom template and/or replace the vimeo player view.php file in packages-->vimeo-->blocks-->vimeo with the attached file (rename the extension to php)."

I think this may help me but I'm not sure. The problem is I want my flash buttons to play over a vimeo video. Check the problem:http://thehallbrothers.com/index3.html...

Any ideas?
mario replied on at Permalink Reply
mario
If you ftp into your root directory, you'll see a folder called packages. start from there. ;)

I'd try setting both of your players wmod to opaque and set your z-index in your css of your personal flash div to be higher than the vimeo player div.
jGRUBBS replied on at Permalink Reply
I figured out my problem. Apparently, when layering multiple FLASH elements in an HTML document the layer position of the FLASH elements with regard to each other is determined by the order it appears in the HTML code–meaning, whatever FLASH element appears last will appear in the topmost layer. For my problem, just switched the occurrence of my buttons with the vimeo video and, voila, SOLVED. Again thanks Argie for your help, I hope this helps others better understand layering FLASH.
mario replied on at Permalink Reply
mario
glad you were able to figure it out. :)
dekelly replied on at Permalink Reply
dekelly
Hi mario,

I have a similar problem where the zoomed image slips in underneath the top nav but only in FF and Safari on windows and mac. IE7 is ok. I changed the nav z-index in view.css to 0 which fixes it but then the drop down gets hidden behind the slideshow so z-index has to be higher than 0. Is there a fix by changing something in view.php for zoom image?
Appreciate your help.
dekelly replied on at Permalink Reply 1 Attachment
dekelly
see attached
mario replied on at Permalink Reply
mario
1) Even though IE7 is working, it's probably not working in a way that's going to deploy well along with FF and Safari. IE 7 and it's previous incarnations have a bug that misinterprets the z-index order:

http://therealcrisp.xs4all.nl/meuk/IE-zindexbug.html...

IE creates it's own nested z-indexed elements starting at zero for relative positioned elements. :(

My advice is to get it working in FF and Safari and then roll out the "hack" for IE which is to explicitly state the z-index and position properties (or don't position them at all) for the elements containing parent(s).

2) Drop downs - this problem is probably made worse when combined with the drop down effects that roll out more z-index layers.

so, try positioning your zoomed content using position:relative on its' parent to create a new z-index order for IE and make it high enough so it will cover the drop down (if this is what you want to do).

p.s. i couldn't view your example. there's some db error for the attachment.

good luck!