How to safely allow embedded YouTube videos?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • feldon23
    Senior Member
    • Nov 2001
    • 11291
    • 3.7.x

    Originally posted by Suiram
    i can not place this "[youtube]xxxxxxx[/youtube]" in my forum or else it tries to load a movie (which doesn't exist)

    i thought using the code tags does not execute any kind of code. it just shows it as text (which is what i want)
    The tag you are looking for is [ noparse ] [ /noparse ].

    Use that around your [youtube]xxxxxxx[/youtube] tag and it will not render.

    Comment

    • feldon23
      Senior Member
      • Nov 2001
      • 11291
      • 3.7.x

      Originally posted by israfiel
      What code should I add in Replacement field (BB code) to put the whole url between [YOUTUBE][/YOUTUBE] ?

      for example:
      [YOUTUBE]UiyQGphHgGc[/YOUTUBE]

      BUT, I want to put the whole url

      The Big Fight: In the upcoming elections, with too many alliances being formed, the arithmetic could work either way and almost all political parties are ner...
      Sorry, but it is beyond the scope of bbCode to try to reverse engineer the videoID out of the Youtube URL. Teach your users how to copy everything after the v= and put it between [youtube]xxxxxx[/youtube] tags.

      Originally posted by israfiel
      Code:
      <object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/{param}"></param><embed src="http://www.youtube.com/v/{param}" type="application/x-shockwave-flash" width="425" height="350"></embed></object>
      Allowing your users to post full HTML is a major security vulnerability.

      Comment

      • CuseRich
        Senior Member
        • May 2009
        • 152

        I did the youtube code and uploaded the button that someone created on page 1 of this thread but the button doesn't show, only a bunch of text. How can I fix this?
        Attached Files

        Comment

        • Zachery
          Former vBulletin Support
          • Jul 2002
          • 59097

          The image is missing, i believe. Looks like firefox browser.

          Comment

          • CuseRich
            Senior Member
            • May 2009
            • 152

            Originally posted by Zachery
            The image is missing, i believe. Looks like firefox browser.
            I am using firefox. I'll look to see why the image isn't there. Thanks.

            Comment

            • KW802
              Senior Member
              • Jul 2003
              • 1165
              • 3.8.11

              Originally posted by CuseRich
              Originally posted by Zachery
              Originally posted by CuseRich
              I did the youtube code and uploaded the button that someone created on page 1 of this thread but the button doesn't show, only a bunch of text. How can I fix this?
              The image is missing, i believe. Looks like firefox browser.
              I am using firefox. I'll look to see why the image isn't there. Thanks.
              If you're using a custom style, check to see what editor path is defined for the style is versus where you put the image on your server (ACP => Styles & Templates => Style Manager => {your style} => Image Paths => Text Editor Controls Folder).
              [URL="http://coolscifi.com"]Cool Sci-Fi[/URL="http://coolscifi.com"] | [URL="http://awalkerbit.me"]Walking Dead[/URL="awalkerbit.me"]

              Comment

              • ots
                Member
                • Jun 2009
                • 35
                • 3.0.1

                very helpful thanks for the thread!!!

                Comment

                • glassjeg
                  New Member
                  • Jul 2009
                  • 21

                  I entered everything like it says at the beginning of this thread.When i go to my reply section of a thread nothing concerning youtube is at the top could someone tell me some things i might check.

                  Comment

                  • Clairey
                    New Member
                    • Aug 2009
                    • 1
                    • 3.8.x

                    Great thread, thanks!

                    Comment

                    • MRGTB
                      Senior Member
                      • May 2005
                      • 5454

                      Another uTube icon thats the same size as the default ones you use in the editor folder
                      Last edited by MRGTB; Fri 21 Aug '09, 3:08pm.

                      Comment

                      • MRGTB
                        Senior Member
                        • May 2005
                        • 5454

                        This code validates to XHTML via W3C

                        Code:
                        <table class="tborder" cellpadding="6" cellspacing="1" border="0" width="572"><tbody><tr><td style="text-align:center"><strong><a href="http://www.youtube.com/watch?v={param}" target="_blank">YouTube Video</a></strong></td></tr></tbody><tbody><tr><td class="alt1" align="center"><object width="560" height="340" type="application/x-shockwave-flash" data="http://www.youtube.com/v/{param}"><param name="movie" value="http://www.youtube.com/v/{param}" /><param name="wmode" value="transparent" /><em><strong>ERROR:</strong> If you can see this, then <a href="http://www.youtube.com/">YouTube</a> is down or you don't have Flash installed.</em></object></td></tr></tbody></table>
                        Use my image above also

                        Comment

                        • thintz
                          New Member
                          • Mar 2010
                          • 4
                          • 3.8.x

                          I believe I am following all of the steps correctly but when I add a video identifier it shows up like this, with one of teh brackets missplaced. HOW did I do that? If I move the bracket and drop this line in the post, it works great! Quick help me, I am about to get a knife and go play in traffic!


                          [YOUTUBE="BC-j1fAWcrY"][/YOUTUBE]

                          Here is a link to a thread on my forum where I tried using this and nothing shows because (I think) of the bracket moving.



                          Update: I have been all over this, redid the code (cut and paste) and have gone through everything I can think of the it still moves the barcket and adds the = for some reason. I am at a loss about why this is happening. Anyone have any ideas?
                          Last edited by thintz; Tue 23 Mar '10, 4:33am. Reason: add link

                          Comment

                          • Floris
                            Senior Member
                            • Dec 2001
                            • 37767

                            I use AME plugin from vBorg, you paste the URL to the video and it auto embeds it upon save. Can't get any more easier.

                            Comment

                            • feldon23
                              Senior Member
                              • Nov 2001
                              • 11291
                              • 3.7.x

                              Dumb question, but doesn't vB4 have a built-in Youtube add feature that pulls out the video ID for you? Or is that just in the CMS?

                              Comment

                              • Floris
                                Senior Member
                                • Dec 2001
                                • 37767

                                Originally posted by feldon23
                                Dumb question, but doesn't vB4 have a built-in Youtube add feature that pulls out the video ID for you? Or is that just in the CMS?

                                No, the default forum classic has an example page with embedded bbcode for youtube. So I assume the default forum comes with a youtube bbcode for embedding.

                                Comment

                                Related Topics

                                Collapse

                                Working...