WordPress.org

Ready to get started?Download WordPress

Forums

jQuery Colorbox
support for video? html? (8 posts)

  1. deepwhitesound
    Member
    Posted 3 years ago #

    i can't find any documentation saying whether this plugin supports video or html or flash elements... any idea ?

  2. techotronic
    Member
    Plugin Author

    Posted 3 years ago #

    Hi,
    my plugin does not support that out of the box, but the Colorbox Library that I include does:
    http://colorpowered.com/colorbox/

    Cheers,
    Arne

  3. Jack
    Member
    Posted 3 years ago #

    It looks so good, can't you make it work for video and flash as well? :( The instructions on the colorbox site are too complicated for me I'm afraid.

  4. techotronic
    Member
    Plugin Author

    Posted 3 years ago #

    Hi,
    opening videos/HTML/other stuff in the colorbox from text links works in the current version, does this solve your problems?
    Cheers,
    Arne

  5. Devin Walker
    Member
    Posted 3 years ago #

    Hi techotronic,

    How do I get youtube videos to display in a colorbox similar to how the example works on the site? I'm trying:

    <a href="http://www.youtube.com/watch?v=CRI7oz5xt8uM&feature=player_embedded" title=""><img src="/wp-content/themes/theme/images/video.jpg" alt="Design" class="alignleft"/></a>

    But this is simply opening a blank colorbox with nothing. I'd love to use this plugin because it's got a lot of great options but need video too. Thanks!

  6. techotronic
    Member
    Plugin Author

    Posted 3 years ago #

    Hi,
    is the colorbox really small?
    Is it possible that you didn't set the width and height for the colorbox for links? Those are separate from the width and height for the colorbox for images:
    http://www.techotronic.de/plugins/jquery-colorbox/opening-links-colorbox/
    Cheers,
    Arne

  7. mskogly
    Member
    Posted 3 years ago #

    I tested the youtube example on http://pappmaskin.no/2011/06/test-colorbox/ and im getting the same result as dlocc, a blank colorbox.

  8. techotronic
    Member
    Plugin Author

    Posted 3 years ago #

    Hi mskogly,

    the Youtube video is not opened in a Colorbox because in 4.0, only text links or links to pictures are opened in a colorbox.
    I changed that in 4.0.1 which leads to all links from images being opened in a Colorbox. (see your own ticket )

    The text link opens a small, blank colorbox because you didn't set the width and height for the colorbox for links as explained here:
    http://www.techotronic.de/plugins/jquery-colorbox/opening-links-colorbox/

    If you take a look at your HTML source, you'll see:

    var colorboxLinkHeight = false;
    var colorboxLinkWidth = false;

    which should not be set to false but to a value like 400.

    Cheers,
    Arne

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic