Unfortunately, Youtube change the embed method !!! and not work with vb4 :(

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • YAHOME
    New Member
    • May 2008
    • 10

    [Forum] Unfortunately, Youtube change the embed method !!! and not work with vb4 :(

    Recently i noticed that links the videos on you tube had changed format and embed method

    so that any new link i put it from youtube to my forum don't work or embed .

    because the urls changed to :

    Enjoy the videos and music you love, upload original content, and share it all with friends, family, and the world on YouTube.


    from:

    Enjoy the videos and music you love, upload original content, and share it all with friends, family, and the world on YouTube.


    Like this search link:

    PHP Code:
    http://www.youtube.com/watch#playnext=1&playnext_from=TL&videos=ZSVFl_DhQFc&v=Riauw5UTnW8 
    and that's a direct link:

    PHP Code:
    http://www.youtube.com/watch#v=Riauw5UTnW8&feature=related 
    finally when insert to video code at vb 4

    http://www.youtube.com/watch#v=Riauw5UTnW8


    PHP Code:
    [video]http://www.youtube.com/watch#v=Riauw5UTnW8[/video] 
    Even when i click the embed button at the bottom of the video its give me embeder link like this:

    On June 12, 2009, a fortuitous orbit of the International Space Station (ISS) made it possible for an astronaut on board to capture Sarychev Volcano in the e...


    PHP Code:
    [video]http://www.youtube.com/v/Riauw5UTnW8[/video] 
    dont work too


    How come YouTube make this major change at there links i cant understand way they do this !!!!
    Last edited by YAHOME; Tue 16 Feb '10, 6:24pm.
  • Wayne Luke
    vBulletin Technical Support Lead
    • Aug 2000
    • 73981

    #2
    I haven't tested this but you can see if it works for you.

    Open the table bbcode_video in phpMyAdmin or another MySQL utility like HeidiSQL.

    Look at the record for Youtube.

    In the regex_url field change the data from:
    http:\/\/www\.youtube\.com\/watch\?.*v=([a-z0-9-_]+)

    to:
    http:\/\/www\.youtube\.com\/watch\#.*v=([a-z0-9-_]+)

    Save the record.
    Translations provided by Google.

    Wayne Luke
    The Rabid Badger - a vBulletin Cloud demonstration site.
    vBulletin 5 API

    Comment

    • YAHOME
      New Member
      • May 2008
      • 10

      #3
      Okay i will try my dear Wayne and test it and let you know what happen ... Thanks for fast reply

      Comment

      • YAHOME
        New Member
        • May 2008
        • 10

        #4
        yes its working now perfectly the embed video show and work fine

        thanks so much for your great support ...

        have nice day

        wish to you all the best

        Comment

        • trinity9
          New Member
          • Jul 2007
          • 1
          • 3.5.x

          #5
          Can anyone break this down a little more more a novice? I would appreciate it.

          Bill


          Originally posted by Wayne Luke
          I haven't tested this but you can see if it works for you.

          Open the table bbcode_video in phpMyAdmin or another MySQL utility like HeidiSQL.

          Look at the record for Youtube.

          In the regex_url field change the data from:
          http:\/\/www\.youtube\.com\/watch\?.*v=([a-z0-9-_]+)

          to:
          http:\/\/www\.youtube\.com\/watch\#.*v=([a-z0-9-_]+)

          Save the record.

          Comment

          • Trevor Hannant
            vBulletin Support
            • Aug 2002
            • 24326
            • 5.7.X

            #6
            In phpMyAdmin, click on the 'bbcode_video' table name in the left hand frame. This will bring up the entries for that table in the main frame.

            Click on the edit (pencil) icon next to 'youtube'.

            In the field 'regex_url', change the value there to:

            http:\/\/www\.youtube\.com\/watch\#.*v=([a-z0-9-_]+)

            Hit 'Go' and your changes will be saved
            Vote for:

            - Admin Settable Paid Subscription Reminder Timeframe (vB6)
            - Add Admin ability to auto-subscribe users to specific channel(s) (vB6)

            Comment

            • mikemurphy
              Member
              • May 2011
              • 66

              #7
              I'm a real noon when it comes to this stuff, but I need to know, where can I find phpMyAdmin?

              I need to fix the video issue as well.

              Comment

              • Wayne Luke
                vBulletin Technical Support Lead
                • Aug 2000
                • 73981

                #8
                Originally posted by mikemurphy
                I'm a real noon when it comes to this stuff, but I need to know, where can I find phpMyAdmin?

                I need to fix the video issue as well.
                You can make the changes in includes/xml/bbcode_video_vbulletin.xml using a text editor.

                Find the this line:
                Code:
                <regex_url><=!=[=C=D=A=T=A=[http:\/\/www\.youtube\.com\/watch\?.*v=([a-z0-9-_]+)]=]=></regex_url>
                Change to:
                Code:
                <regex_url><=!=[=C=D=A=T=A=[http:\/\/www\.youtube\.com\/watch\#.*v=([a-z0-9-_]+)]=]=></regex_url>
                Save and Upload that file to your server in the vBulletin_path/includes/xml/ directory.

                Then with your site in debug mode, go into the AdminCP go to Rebuild and select "Rebuild Video BB Codes".
                Translations provided by Google.

                Wayne Luke
                The Rabid Badger - a vBulletin Cloud demonstration site.
                vBulletin 5 API

                Comment

                • mikemurphy
                  Member
                  • May 2011
                  • 66

                  #9
                  Thanks. I'll give this a try in a bit to see if it works!
                  Last edited by mikemurphy; Fri 10 Jun '11, 2:58pm.

                  Comment

                  • worried
                    Senior Member
                    • Dec 2008
                    • 684
                    • 4.2.X

                    #10
                    4.1.4 works for me using the insert video button. It's wrapped with the video tags.

                    HTML Code:
                    [video=youtube;CVa7XZEqhek]http://www.youtube.com/watch?v=CVa7XZEqhek&amp;feature=mh_lolz&amp;list=WLA60183A1E5E88368[/video]

                    Comment

                    • aseapeople
                      New Member
                      • Jun 2011
                      • 25
                      • 4.1.x

                      #11
                      prevent watch on youtube function?

                      I changed ? to # in the php and includes file.

                      The only thing that worked to get the video up was to paste the code as shown above:

                      HTML Code:
                      [video=youtube;CVa7XZEqhek]http://www.youtube.com/watch?v=CVa7XZEqhek&amp;feature=mh_lolz&amp;list=WLA60183A1E5E88368[/video]
                      That seems pretty complex. However, it did work.

                      Is there any way to prevent the "watch on youtube" option on the video?
                      Last edited by aseapeople; Sun 10 Jul '11, 8:17pm.

                      Comment

                      • djbaxter
                        Senior Member
                        • Aug 2006
                        • 1418
                        • 4.2.5

                        #12
                        Will making this change break videos embedded using the old YouTube format?
                        Psychlinks Web Services Affordable Web Design & Site Management
                        Specializing in Small Businesses and vBulletin/Xenforo Forums

                        Comment

                        widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                        Working...