Problems adding embedded video to wordpress posts?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Sarah_Jayne
    Now with more Jayne
    • Dec 2002
    • 40077

    #1

    Problems adding embedded video to wordpress posts?

    I haven't used embedded video on my blogs before but I just tried to do it with two of the sponsors that offer it. Whenever I copy the code into the html editing area and then hit 'update' the embedded part of the code vanishes.

    What am I doing wrong?
  • Sarah_Jayne
    Now with more Jayne
    • Dec 2002
    • 40077

    #2
    nobody uses embedded video on their blogs?

    Comment

    • Grapesoda
      So Fucking Banned
      • Jul 2003
      • 46238

      #3
      works okay for me from youtube

      Comment

      • MikeB
        Confirmed User
        • Feb 2002
        • 2012

        #4
        You can use this plugin:

        http://www.viper007bond.com/wordpres...deo-quicktags/


        You can do it without the plugin. You'll have to disable the visual editor when writing.

        Comment

        • Sarah_Jayne
          Now with more Jayne
          • Dec 2002
          • 40077

          #5
          ah...okay so the editor is messing it up....thanks for the plugin

          Comment

          • donnie
            Confirmed User
            • Jan 2003
            • 1630

            #6
            Originally posted by Sarah_MaxCash
            ah...okay so the editor is messing it up....thanks for the plugin
            Disabling editor want help. There is a piece of code you need to hack in order to imbed videos.
            This only goes for the new versions of WP. I am not sure how it?s with the older versions?

            Comment

            • Sarah_Jayne
              Now with more Jayne
              • Dec 2002
              • 40077

              #7
              I don't use the very newest because I don't like it...I use the last version of the previous one (if that makes any sense).

              Comment

              • donnie
                Confirmed User
                • Jan 2003
                • 1630

                #8
                Originally posted by Sarah_MaxCash
                I don't use the very newest because I don't like it...I use the last version of the previous one (if that makes any sense).
                OK, I am not sure if disabling editor would do it. If it's still not working and you don't want to use plugin, I can show you what you need to change in the code.

                Comment

                • starpimps
                  Confirmed User
                  • Sep 2006
                  • 6954

                  #9
                  yeah sarah the last version screwed up the vide embeds, wordpress 2.1 is okay with it but you cannot edit the post or the video will disappear again...disabling the visual editor should do the trick as said before in with your version of wordpress
                  Teen Porn Models / Solo Girls

                  Comment

                  • tenderobject
                    Need Designs? 312352846
                    • Dec 2004
                    • 11688

                    #10
                    i did have roblem embedding flv in 1.5.2 wp. any plugins doesn;t work dunno why thats why i just make the flv iframed so it would work.


                    NEED DESIGNS?!?

                    Comment

                    • fusionx
                      Confirmed User
                      • Nov 2003
                      • 4618

                      #11
                      Originally posted by donnie
                      OK, I am not sure if disabling editor would do it. If it's still not working and you don't want to use plugin, I can show you what you need to change in the code.
                      I'd appreciate it if you could post that. I need to modify about 60 installations on a new blog network

                      Comment

                      • donnie
                        Confirmed User
                        • Jan 2003
                        • 1630

                        #12
                        WP uses filters and you can read about it here:

                        http://codex.wordpress.org/Filters

                        To embed videos you need to make this change:

                        add_filter('content_save_pre', 'wp_filter_post_kses');
                        to
                        remove_filter('content_save_pre', 'wp_filter_post_kses');

                        You do this in kses.php

                        BUT there is a security risk in doing this. Read more at the URL above...

                        Comment

                        • donnie
                          Confirmed User
                          • Jan 2003
                          • 1630

                          #13
                          What I posted above will simply make WP post all tags you want to post and not remove them. If you are the only one using the WP install there is no problem turning filter off. If you are using WPMU and you are letting other people sign up and create blogs I wouldn't recommend doing it

                          Comment

                          • Sarah_Jayne
                            Now with more Jayne
                            • Dec 2002
                            • 40077

                            #14
                            does that plugin do that for me?

                            Comment

                            • donnie
                              Confirmed User
                              • Jan 2003
                              • 1630

                              #15
                              Originally posted by Sarah_MaxCash
                              does that plugin do that for me?
                              What plugin do you want to use?? I haven't found any good plugin for embedding videos but I haven't really been looking. Plugin will probably solve the problem. It probably won?t turn filters off but plugins usually work somehow

                              Comment

                              • Sarah_Jayne
                                Now with more Jayne
                                • Dec 2002
                                • 40077

                                #16
                                Somebody earlier in the thread linked to
                                http://www.viper007bond.com/wordpres...deo-quicktags/

                                Comment

                                • fusionx
                                  Confirmed User
                                  • Nov 2003
                                  • 4618

                                  #17
                                  Thanks Donnie!

                                  Originally posted by donnie
                                  WP uses filters and you can read about it here:

                                  http://codex.wordpress.org/Filters

                                  To embed videos you need to make this change:

                                  add_filter('content_save_pre', 'wp_filter_post_kses');
                                  to
                                  remove_filter('content_save_pre', 'wp_filter_post_kses');

                                  You do this in kses.php

                                  BUT there is a security risk in doing this. Read more at the URL above...

                                  Comment

                                  • donnie
                                    Confirmed User
                                    • Jan 2003
                                    • 1630

                                    #18
                                    Originally posted by Sarah_MaxCash
                                    Somebody earlier in the thread linked to
                                    http://www.viper007bond.com/wordpres...deo-quicktags/
                                    You want to use videos from your own/sponsor host right??

                                    That plugin will only play videos from Youtube, Myspace, googlevideo...

                                    I am pretty sure you can't use your own files with it. But i could be wrong...

                                    Comment

                                    • ucv.karl
                                      Confirmed User
                                      • Jul 2006
                                      • 498

                                      #19
                                      It works fine for us.

                                      http://blog.upperclassvideo.com/?p=172

                                      Perhaps we're doing something different that what you are trying to accomplish.

                                      (we're using the 'old' version 1.x wordpress)

                                      Also, when you are entering direct html, (I believe wp) modifies/alters the contents to make sure that it's valid html. Therefore, you're Rss feed and blog will be valid html. (But, I could be wrong about this)
                                      It's better when you can Switch.
                                      ICQ: 263079754

                                      Comment

                                      • donnie
                                        Confirmed User
                                        • Jan 2003
                                        • 1630

                                        #20
                                        Originally posted by ucv.karl
                                        It works fine for us.

                                        http://blog.upperclassvideo.com/?p=172

                                        Perhaps we're doing something different that what you are trying to accomplish.

                                        (we're using the 'old' version 1.x wordpress)

                                        Also, when you are entering direct html, (I believe wp) modifies/alters the contents to make sure that it's valid html. Therefore, you're Rss feed and blog will be valid html. (But, I could be wrong about this)
                                        I believe it works fine with older versions but not with the new one. It has something to do with security issues when embedding videos. I have only read about this because it didn't work for me and I had to find a solution. But I am not a coder and I don?t really know why it sometimes works and sometimes it doesn?t

                                        Comment

                                        • Sarah_Jayne
                                          Now with more Jayne
                                          • Dec 2002
                                          • 40077

                                          #21
                                          Originally posted by donnie
                                          You want to use videos from your own/sponsor host right??

                                          That plugin will only play videos from Youtube, Myspace, googlevideo...

                                          I am pretty sure you can't use your own files with it. But i could be wrong...
                                          embedded videos that sponsors offer..not actual video files

                                          Comment

                                          • donnie
                                            Confirmed User
                                            • Jan 2003
                                            • 1630

                                            #22
                                            Originally posted by Sarah_MaxCash
                                            embedded videos that sponsors offer..not actual video files
                                            I am not the right person to answer this question because I am not a coder or something like that. If you want to use your own player for .flv files you will need to change those lines inside the code. And the plugin posted above want help you. Maybe somebody more qualified can help you with an easier solution I don't even use spnsor videos. We only use our own files on our blogs...

                                            Comment

                                            Working...