Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #5643

    csatterwhite
    Participant

    Currently the “Add lightbox to YouTube and Vimeo video links by default.”, works perfectly for urls formatted like:

    https://vimeo.com/123456

    I need the Lightbox to work for urls formatted like:

    http://player.vimeo.com/video/123456

    Simple reason so I can launch fullscreen videos within the lightbox, or have the videos fill up the available width and height of the screen inside the lightbox.

    I found this:

    
    preg_match_all('/<a(.*?)href=(?:\'|")((?:(?:http|https):\/\/)?(?:www\.)?((youtube\.com\/watch\?v=[a-z0-9_\-]+)|(vimeo\.com\/[0-9]{8,})))(?:\'|")(.*?)>/i', $content, $links);
    
    

    If this bit of code is in fact controlling that functionality, can you guys show me how to update so it loads this version:

    http://player.vimeo.com/video/123456

    Or is there another way to achieve what I’m looking to do?

    #5926

    vojkanbg
    Participant

    And how to launch automatically YouTube videos?

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.