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

  1. NightZambri
    Posted 2 years 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:


    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:


    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?



  2. NightZambri
    Posted 2 years 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?


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Viper's Video Quicktags
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic