Announcement

Collapse
No announcement yet.

How to safely allow embedded YouTube videos?

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

  • #61
    Correct. That is why I do not recommend enabling HTML.

    Comment


    • #62
      how to have a dynamic video size ? for example I need 100% width according to the space given . But when I did that , the (width ) borders of the video were black , any suggestions ?

      Comment


      • #63
        I don't think you can use 100% width on embedded objects like that.

        Comment


        • #64
          Kind of a frivilous question, but would there be any way to have this "I agree" box collapse itself after you click "I AGREE"? Here's the BBCode replacement I'm using (works, that other one linked from another thread was messy and broken)

          Code:
          <table class="tborder" cellpadding="6" cellspacing="1" border="0" width="466">
          <tr><td class="smallfont"><strong>IMPORTANT NOTICE:</strong> No media files are hosted on these forums. By clicking the link below you agree to view content from an external website. We can not be held responsible for the suitability or legality of this material. If the video does not play, wait a minute or try again later. &nbsp; &nbsp; &nbsp; <a href="#" onclick="return toggle_collapse('{param}')">I AGREE</a></td></tr>
          <tbody id="collapseobj_{param}" style="display:none;"><tr><td class="alt1" align="center">
          <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></td></tr></tbody>
          </table>
          Thanks.
          Please install Prev/Next to nav menu mod and make it a little easier for everyone to browse your forum.

          Comment


          • #65
            Originally posted by Hummie View Post
            I put it in the other forum, but I'll ask here too. The wmv code they gave, I got to work in IE, but not in firefox. Any suggestions?
            4 months later I see this...

            The reason why it doesn't work in Firefox is because it requires Active X to display WMV of any type. I ran into this problem with the Radio/TV Add On at vb.org as I had visualization on IE but not FF, and I only use FF.

            You need to go here:

            http://www.iol.ie/~locka/mozilla/plugin.htm

            Download and Install this:

            http://img.photobucket.com/albums/v3..._666/busy1.gif

            Then restart browser and possibly restart pc.

            Then you will see WMV in Firefox

            Proof:

            http://smg.photobucket.com/albums/v3...rent=busy2.gif

            -----------------------------------------------

            As far as the discussion of BB Code, how to make it easier to post vids, and security.

            We used to use the AME hack. However the creator had some personal issues happen and could no longer support the product, so it wasn't being updated for new video types.

            We switched to this one and not only does it support like 30 diff types of vids, but you only need the URL link, AND you can choose which one's you want to work or not. So for example if you don't want porn tube, you deselect it in the Admin CP.

            Best mod for video embedding in posts, PLUS he's usually good about doing updates if he has a few requests built up:

            http://www.vbulletin.org/forum/showt...light=anymedia

            Comment


            • #66
              Originally posted by Jake Bunce View Post
              You can use the embed code on YouTube's site to make a BB code:

              Admin CP -> Custom BB Codes -> Add New BB Code

              Title - YouTube
              Tag - youtube
              Replacement:

              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>
              Example - [youtube]JFwCCL0Vh6U[/youtube]

              Description - Use the movie code from the YouTube URL in your browser. For example, http://youtube.com/watch?v=JFwCCL0Vh6U

              Hi, I new on this, I already do this in the admincp, but my embed codes doesnīt appears at the post, do I need to install a kind of software or something? I have the vbulletin 3.6.8 patch level 2, thanks for your answers

              Comment


              • #67
                You need to use the example code in your post, like this:

                [youtube]JFwCCL0Vh6U[/youtube]

                Comment


                • #68
                  If you're going to do it this way one thing to note is to tell everyone that can post this add on or bb code, not to use the feature or related parts of the code.

                  Look in between the = signs for the exact code. Cause sometimes you'll look at one video then another and it will say =feature&related and you don't want that part of the code and it won't work.

                  So stick with only the crazy ID of the videos with numbers, symbols, and letters for the vids.

                  Comment


                  • #69
                    hey guys thanks a lot, now I understand jeje itīs alive! itīs working! thanks a lot

                    Comment


                    • #70
                      i added the code and everything like the first reply said, but when I tried to add a video on my forum...nothing showed up except the text i typed under the vid

                      Comment


                      • #71
                        I used this, after a fashion. I didn't realize about the {param} part. This is where i was going wrong with making BB.
                        So, thanks.

                        Comment


                        • #72
                          I'm trying to make this work, but, sadly, all i see is a white box, i've set bbcode to yes on the database, but no joy.
                          I've even managed to utilise a symbol to select the tags for me.

                          Anyone else had this problem??

                          Originally posted by Jake Bunce View Post
                          You can use the embed code on YouTube's site to make a BB code:

                          Admin CP -> Custom BB Codes -> Add New BB Code

                          Title - YouTube
                          Tag - youtube
                          Replacement:

                          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>
                          Example - [youtube]JFwCCL0Vh6U[/youtube]

                          Description - Use the movie code from the YouTube URL in your browser. For example, http://youtube.com/watch?v=JFwCCL0Vh6U
                          http://scottishminis.com/forums/forum.php - for all things relating to the Scottish Mini scene
                          http://theifonly.com/forums/forum.php - for all things relating to golf
                          http://thebookjoint.com/forums/forum.php - for all things relating to books especially Jack Reacher

                          Comment


                          • #73
                            Make sure you are just using the video ID (the one with the numbers and letters) and no other part of the URL to the youtube page.
                            Kerry-Anne :)

                            Twitter Blog

                            www.peterska2.com www.worldnewszone.com www.popularusenetgroups.com www.superclickers.co.uk www.forumsforchrist.com www.browsergameplanet.com

                            Comment


                            • #74
                              Originally posted by Kerry-Anne View Post
                              Make sure you are just using the video ID (the one with the numbers and letters) and no other part of the URL to the youtube page.
                              Yes, i am doing that, for example:-
                              [youtube]4Xf9GzZQEBs[/youtube]
                              http://scottishminis.com/forums/forum.php - for all things relating to the Scottish Mini scene
                              http://theifonly.com/forums/forum.php - for all things relating to golf
                              http://thebookjoint.com/forums/forum.php - for all things relating to books especially Jack Reacher

                              Comment


                              • #75
                                Please provide a link to an affected post on your forum
                                Kerry-Anne :)

                                Twitter Blog

                                www.peterska2.com www.worldnewszone.com www.popularusenetgroups.com www.superclickers.co.uk www.forumsforchrist.com www.browsergameplanet.com

                                Comment

                                Related Topics

                                Collapse

                                Working...
                                X