We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 2762
    • 1,198 Posts
    This is an auto-generated support/comment thread for Youtube.

    Use this forum to post any comments about this addition or any questions you have regarding its use.

    Brief Description:
    A simple small snippet to embed Youtube videos in MODx cms.
    Based on FlashVideo by Mark & Bugaev
    http://modxcms.com/forums/index.php/topic,1027.0.html

    Demo:
    http://www.tattoocms.it/MODx-TattooCMS-Tools/snippets/youtube-video-snippet.html
      Free MODx Graphic resources and Templates www.tattoocms.it
      -----------------------------------------------------

      MODx IT  www.modx.it
      -----------------------------------------------------

      bubuna.com - Web & Multimedia Design
      • 26435
      • 1,193 Posts
      How is this any different/simpler/better than copying the code from the youtube page from the "Embed:" text field and pasting that into a MODx document? That seems to be about as easy as it gets for adding video content. How has this snippet simplified that?

      -sD-
      Dr. Scotty Delicious, Scientist.
        Husband, Father, Brother, Son, Programmer, Atheist, Nurse, Friend, Lover, Fighter.
        All of the above... in no specific order.


        I send pointless little messages
        • 16885
        • 255 Posts
        Nice idea, but the HTML-code is extremely bad; by no means xHTML valid, which isn’t great for those who want to keep their page as valid as possible wink I personally use Greasemonkey to edit the YouTube embeds so they’re validly formed directly, without having to use any snippets or so.

        In case you’re interested, here is a demo code, which validates xHTML 1.0 perfectly;
        <object width="425" height="350" data="http://www.youtube.com/v/6gmP4nk0EOE" type="application/x-shockwave-flash"><a href="http://www.youtube.com/watch?v=6gmP4nk0EOE">undefined</a><param name="wmode" value="transparent"></param><em><strong>ERROR:</strong> If you can see this, then either <a href="http://www.youtube.com/">YouTube</a> is down or you don't have Flash installed.</em></object>
        
          • 2762
          • 1,198 Posts
          Quote from: Dr. at Feb 04, 2007, 01:33 PM

          How is this any different/simpler/better than copying the code from the youtube page from the "Embed:" text field and pasting that into a MODx document? That seems to be about as easy as it gets for adding video content. How has this snippet simplified that?

          -sD-
          Dr. Scotty Delicious, Scientist.
          I agree with you, but to embed a youtube code you need to switch to ’’code’’ from the richtext editor smiley and a lot of my clients should delete some html tags from the content grin

          ...and when they will change the text content should delete the youtube code (not visible in the richtext editor laugh)

          I’m using on a big website with a lot of youtube videos.
            Free MODx Graphic resources and Templates www.tattoocms.it
            -----------------------------------------------------

            MODx IT  www.modx.it
            -----------------------------------------------------

            bubuna.com - Web & Multimedia Design
            • 2762
            • 1,198 Posts
            Quote from: Leftblank at Feb 04, 2007, 01:51 PM

            Nice idea, but the HTML-code is extremely bad; by no means xHTML valid, which isn’t great for those who want to keep their page as valid as possible wink I personally use Greasemonkey to edit the YouTube embeds so they’re validly formed directly, without having to use any snippets or so.

            In case you’re interested, here is a demo code, which validates xHTML 1.0 perfectly;
            <object width="425" height="350" data="http://www.youtube.com/v/6gmP4nk0EOE" type="application/x-shockwave-flash"><a href="http://www.youtube.com/watch?v=6gmP4nk0EOE">undefined</a><param name="wmode" value="transparent"></param><em><strong>ERROR:</strong> If you can see this, then either <a href="http://www.youtube.com/">YouTube</a> is down or you don't have Flash installed.</em></object>
            


            Thanks Leftblank smiley I will update the snippet with your suggestion soon as possible wink
              Free MODx Graphic resources and Templates www.tattoocms.it
              -----------------------------------------------------

              MODx IT  www.modx.it
              -----------------------------------------------------

              bubuna.com - Web & Multimedia Design
              • 26435
              • 1,193 Posts
              Quote from: banzai at Feb 04, 2007, 02:08 PM

              I agree with you, but to embed a youtube code you need to switch to ’’code’’ from the richtext editor smiley and a lot of my clients should delete some html tags from the content grin

              ...and when they will change the text content should delete the youtube code (not visible in the richtext editor laugh)

              I’m using on a big website with a lot of youtube videos.

              Aha... I see. Very cool snippet banzai. Very cool indeed.

              -sD-
              Dr. Scotty Delicious, Scientist.
                Husband, Father, Brother, Son, Programmer, Atheist, Nurse, Friend, Lover, Fighter.
                All of the above... in no specific order.


                I send pointless little messages
                • 16885
                • 255 Posts
                Quote from: banzai at Feb 04, 2007, 02:10 PM

                Thanks Leftblank smiley I will update the snippet with your suggestion soon as possible wink
                It’s not HTML 4 Strict valid though, so you might want to add an option for that wink If I’m right you can make it valid by removing the </parameter> tag.
                  • 34162
                  • 1 Posts
                  hi guys are there any features to this snippet, like:

                  1. can i change video size?
                  2. can i remove the menu button in youtube player
                  3. can i thumbnail youtube vids in my page side by side like a gallery or all my vids?

                  anything else that can help me manage this content??

                  thanks for any help...
                    • 34162
                    • 1 Posts
                    Also I was hoping to have just 1 channel in the player, after the vid finishes, there is a bit of a coverflow type thing goes on and how do you make it just your channel?

                    is there a way to also embed playlists or vlogs?

                    thanks
                      • 34162
                      • 1 Posts
                      ah i found that to do this with youtube you have to create a custom player. is it possible to embed a custom player with the youtube snippet, or can you upgrade it do this? i’ve had to embed it the normal youtube way for the time being. thanks anyone that can help.