Announcement

Collapse
No announcement yet.

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

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • [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 :

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

    from:

    http://www.youtube.com/watch?v=XXXXXXXXXXX

    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:

    http://www.youtube.com/v/Riauw5UTnW8

    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 16th Feb '10, 7:24pm.

  • #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 - Full / Mobile
    Vote for your favorite feature requests and the bugs you want to see fixed.

    Comment


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

      Comment


      • #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


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

          Bill


          Originally posted by Wayne Luke View Post
          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


          • #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*
            -
            *PM - Add ability to reply to originator only*
            - Add Admin ability to auto-subscribe users to specific channel(s)
            - Highlight the correct navigation tab when you are on a custom page
            - "Quick Route" Interface...
            - Allow to use custom icons for individual forums

            Comment


            • #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


              • #8
                Originally posted by mikemurphy View Post
                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 - Full / Mobile
                Vote for your favorite feature requests and the bugs you want to see fixed.

                Comment


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

                  Comment


                  • #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


                    • #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 10th Jul '11, 9:17pm.

                      Comment


                      • #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...
                        X