Video bbcode for Facebook video needed to be changed

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ljianyih
    Member
    • Mar 2012
    • 73

    Video bbcode for Facebook video needed to be changed

    I've checked the video bbcode for Facebook video and it uses the old "http://www.facebook.com/v/VIDEOID" format (the embedding should be http://www.facebook.com/video/embed?video_id=VIDEOID).

    I've tried to use the old format which is "http://www.facebook.com/v/VIDEOID" wrapped with video bbcode, but the content went to a mess.

    Just to notify this problem and hope this issue can be fixed soon.
  • BirdOPrey5
    Senior Member
    • Jul 2008
    • 9613
    • 5.6.3

    #2
    Testing...

    Comment

    • BirdOPrey5
      Senior Member
      • Jul 2008
      • 9613
      • 5.6.3

      #3
      Can you paste in an example of a video URL that isn't working? A random one I found above seems to work.

      Comment

      • ljianyih
        Member
        • Mar 2012
        • 73

        #4
        Testing embedding a facebook video:

        Comment

        • ljianyih
          Member
          • Mar 2012
          • 73

          #5
          Ya it output the error just as shown above.

          The video url i've tested are:
          - https://www.facebook.com/video/video.php?v=128151914032540
          - http://www.facebook.com/v/128151914032540

          Comment

          • ljianyih
            Member
            • Mar 2012
            • 73

            #6
            Testing using another facebook video id (http://www.facebook.com/v/3869227628746):



            Testing using the default Facebook video embed url (http://www.facebook.com/video/embed?...869227628746):



            Testing using another Facebook video url (https://www.facebook.com/video/video.php?v=3869227628746):

            https://[COLOR=#262D35][FONT=Arial][...;3869227628746
            Last edited by ljianyih; Sat 2 Mar '13, 7:46pm.

            Comment

            • ljianyih
              Member
              • Mar 2012
              • 73

              #7
              I've tested using https://www.facebook.com/video/video.php?v=VIDEOID and it did work sometimes. Retest:

              (https://www.facebook.com/video/video.php?v=3869227628746):
              https://[COLOR=#262D35][FONT=Arial][...;3869227628746

              (https://www.facebook.com/video/video.php?v=3869234948929)
              https://[COLOR=#262D35][FONT=Arial][...;3869234948929

              (same again https://www.facebook.com/video/video...=3869234948929)
              Last edited by ljianyih; Sat 2 Mar '13, 7:53pm.

              Comment

              • ljianyih
                Member
                • Mar 2012
                • 73

                #8
                I think it has something to do with the url parsing, take note on the font size after you've clicked the "edit" button (same url but 2nd line has bigger font size than 1st one).

                Code:
                [video][COLOR=#262D35][FONT=Arial][SIZE=12px]https://www.facebook.com/video/video.php?v=[/SIZE][/FONT][/COLOR]3869234948929[/video]
                [video=facebook;3869234948929]https://www.facebook.com/video/video.php?v=3869234948929[/video]

                Comment

                • ljianyih
                  Member
                  • Mar 2012
                  • 73

                  #9
                  The one with the larger font size works and the provider will be automatically determined as Facebook with the vcode automatically fetched into the video tag (parsed successfully).

                  (I'm not sure how to get the smaller font size or the larger font size url text)

                  I think it's the problem with text encoding.

                  Comment

                  • IncWolf
                    Member
                    • Jul 2015
                    • 32
                    • 5.1.x

                    #10
                    Hello everyone.
                    I'm using 5.1.10 version for now and I can't play facebook videos with video-tag. For example:


                    Last edited by IncWolf; Sun 24 Jan '16, 5:26am.
                    I'm an Ukrainian developer, so I'm sorry for my bad English

                    Comment

                    • IncWolf
                      Member
                      • Jul 2015
                      • 32
                      • 5.1.x

                      #11
                      I'm sorry, that I up that topic again, but that question is very important for me. And, will the video-tag insert video from coub?
                      I'm an Ukrainian developer, so I'm sorry for my bad English

                      Comment

                      • Mark.B
                        vBulletin Support
                        • Feb 2004
                        • 24287
                        • 6.0.X

                        #12
                        It's https in the URL. It works if you put it in as http.
                        This is the report for it:


                        MARK.B
                        vBulletin Support
                        ------------
                        My Unofficial vBulletin 6.0.0 Demo: https://www.talknewsuk.com
                        My Unofficial vBulletin Cloud Demo: https://www.adminammo.com

                        Comment

                        • IncWolf
                          Member
                          • Jul 2015
                          • 32
                          • 5.1.x

                          #13
                          Mark.B yeah, but still that's not work with facebook video, as you can see in the previous message.
                          I'm an Ukrainian developer, so I'm sorry for my bad English

                          Comment

                          • josueinaki
                            Senior Member
                            • Sep 2015
                            • 199
                            • 5.1.x

                            #14
                            where is the definitions of bbcode? ( i mean, in templates)

                            Comment

                            • IncWolf
                              Member
                              • Jul 2015
                              • 32
                              • 5.1.x

                              #15
                              I just find how to solve that problem until it will be fixed.

                              In core/includes/xml/bbcode_video_vbulletin.xml change regex_url in facebook-block of code to:

                              Code:
                              [COLOR=#000000][FONT=Menlo]<[/FONT][/COLOR][COLOR=#000080][FONT=Menlo][B]url[/B][/FONT][/COLOR][COLOR=#000000][FONT=Menlo]>[/FONT][/COLOR][COLOR=#000000][FONT=Menlo]http://www.facebook.com[/FONT][/COLOR][COLOR=#000000][FONT=Menlo]</[/FONT][/COLOR][COLOR=#000080][FONT=Menlo][B]url[/B][/FONT][/COLOR][COLOR=#000000][FONT=Menlo]>[/FONT][/COLOR]
                              [COLOR=#000000][FONT=Menlo]<[/FONT][/COLOR][COLOR=#000080][FONT=Menlo][B]regex_url[/B][/FONT][/COLOR][COLOR=#000000][FONT=Menlo]>[/FONT][/COLOR][COLOR=#000000][FONT=Menlo]<![CDATA[[/FONT][/COLOR][B]https?:\/\/[/B][B][COLOR=#000000][FONT=Menlo](?:www\.)?[/FONT][/COLOR][/B][B]facebook\.com\/[a-zA-Z0-9.]+\/videos\/([0-9]+)[/B][COLOR=#000000][FONT=Menlo]]]>[/FONT][/COLOR][COLOR=#000000][FONT=Menlo]</[/FONT][/COLOR][COLOR=#000080][FONT=Menlo][B]regex_url[/B][/FONT][/COLOR][COLOR=#000000][FONT=Menlo]>[/FONT][/COLOR]
                              and for vimeo-video to:
                              Code:
                              [COLOR=#000000][FONT=Menlo]<[/FONT][/COLOR][COLOR=#000080][FONT=Menlo][B]url[/B][/FONT][/COLOR][COLOR=#000000][FONT=Menlo]>[/FONT][/COLOR][COLOR=#000000][FONT=Menlo]http://www.vimeo.com[/FONT][/COLOR][COLOR=#000000][FONT=Menlo]</[/FONT][/COLOR][COLOR=#000080][FONT=Menlo][B]url[/B][/FONT][/COLOR][COLOR=#000000][FONT=Menlo]>[/FONT][/COLOR]
                              [COLOR=#000000][FONT=Menlo]<[/FONT][/COLOR][COLOR=#000080][FONT=Menlo][B]regex_url[/B][/FONT][/COLOR][COLOR=#000000][FONT=Menlo]>[/FONT][/COLOR][COLOR=#000000][FONT=Menlo]<![CDATA[http[B]s?[/B]:\/\/(?:www\.)?vimeo\.com\/([0-9]+)]]>[/FONT][/COLOR][COLOR=#000000][FONT=Menlo]</[/FONT][/COLOR][COLOR=#000080][FONT=Menlo][B]regex_url[/B][/FONT][/COLOR][COLOR=#000000][FONT=Menlo]>[/FONT][/COLOR]
                              The same changes need to be done in the database in the bbcode_video table for the regex_url field
                              I'm an Ukrainian developer, so I'm sorry for my bad English

                              Comment

                              Related Topics

                              Collapse

                              Working...