WordPress.org

Ready to get started?Download WordPress

Forums

Viper's Video Quicktags
Correct Youtube URL (2 posts)

  1. NightZambri
    Member
    Posted 1 year ago #

    Hello and thanks for the great support.

    After a few months using Viper's Video Quicktags, all the youtube URL's embedded in my website worked like this:

    http://www.youtube.com/watch?v=ZGkgLB34Yso&feature=youtu.be

    I have recently updated wordpress and also updated Viper's. After that, Viper's not detecting my old Youtube URL's and I have to insert them like this:

    http://youtu.be/ZGkgLB34Yso

    In the other format I get an error message "Invalid URL"

    I don't care using a different type of URL from now on but I have hundred of videos already embedded that won't be viewable with the new version of Viper's.

    So I had to downgrade and went back to the older version of Viper's.

    Is there any solution to use new ViperĀ“s and it detect my old Youtube URL's?

    Thanks.

    http://wordpress.org/extend/plugins/vipers-video-quicktags/

  2. NightZambri
    Member
    Posted 1 year ago #

    I think I found the text to be modified in the new version of Viper's to make it work with my old URLs.

    This code is in my actual Vipers Plugin (old version)

    // Parse the URL
    var PreviewID = jQuery("#vvq-previewurl").val().match(/http:\/\/www\.(www.youtube|youtube|[A-Za-z]{2}.youtube)\.com\/(watch\?v=|w\/\?v=)([\w-]+)(.*?)/);

    How could I add it to the newest Viper's version?

    Thanks!!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic