WordPress.org

Forums

Easy FancyBox
Swf files have all the same dimensions (6 posts)

  1. mitchbit
    Member
    Posted 3 years ago #

    I have been struggling for the past couple days trying to get my swf files to have a lightbox effect. I previously tried a plugin called wp-video-lightbox but that plugin didn't show the preloaders in my flash videos. I then moved to the Easy FancyBox plugin which shows my preloaders just fine but all my flash videos seem to have fixed ratios. I read in the FAQS that you give the linked flash a class name of fancybox-swf and set the dimensions in the brackets. That worked for the first flash movie but every proceeding swf after that kept the same dimensions as the first. I thought the solution might be to create a new class for every new flash added but I have no idea how to go about hard coding that into the plugin. I will leave a link to my site but because employers are currently reviewing my portfolio I am doing a work around and using both the wp-video-lightbox and the easy fancybox plugins. I'll paste the code I was using for the fancybox plugin when it kept all the same sized dimensions.

    Site: http://www.mitchbit.com/Flash
    Fancybox HTML:

    <a href="http://mitchbit.com/wp-content/uploads/2012/03/Activity4_3-Final.swf"><img src="http://mitchbit.com/wp-content/uploads/2012/03/CEWthumbnail.png" alt="CEW Interactive Video" /></a>
    
    <a href="http://mitchbit.com/wp-content/uploads/2012/03/DMT Banner.swf"><img src="http://mitchbit.com/wp-content/uploads/2012/03/DMTbanner.png" alt="DMT Banner" /></a>
    
    <a href="http://mitchbit.com/wp-content/uploads/2012/03/~PAF_map.swf"><img src="http://mitchbit.com/wp-content/uploads/2012/03/PAF-thumbnail.png" alt="PAF Map" /></a>

    http://wordpress.org/extend/plugins/easy-fancybox/

  2. RavanH
    Member
    Plugin Author

    Posted 3 years ago #

    hi,

    that effect of the first meta parameters between {} propagating to all the others is known. nothing i can do about it... creating a new class for every flash movie would indeed fix the issue, but you'll have to modify my plugin heavily to make it bind fancybox to these new classes.

    it seems the other lightbox uses the query parameters for size? not a bad idea, so it will go on the roadmap but I do not have any time short term to pick this up...

  3. RavanH
    Member
    Plugin Author

    Posted 3 years ago #

    Ah, hang on... I just thought of possibility:

    Disable the flash support in the FancyBox options and give your links each class="fancybox iframe {width:300px,height:200px}" where you change the size parameters for each one, of course...

  4. mitchbit
    Member
    Posted 3 years ago #

    I gave that method a try, but ended up with similar results. The flash movies then took on the iframe layout but any flash proceeding the first took the same dimensions. Damn, was hoping that would be the fix lol

  5. RavanH
    Member
    Plugin Author

    Posted 3 years ago #

    Bummer... I was hoping that too...

    I guess you'll have to wait for the next release and get fancyBox2 running on your site. It should have more flexibility in that respect.

  6. mitchbit
    Member
    Posted 3 years ago #

    Ah, no worries. I'll be looking forward to it's release! Thanks again for the help

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic