GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Problems adding embedded video to wordpress posts? (https://gfy.com/showthread.php?t=730252)

Sarah_Jayne 05-04-2007 07:42 AM

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 05-04-2007 08:47 AM

nobody uses embedded video on their blogs?

Grapesoda 05-04-2007 08:48 AM

works okay for me from youtube

MikeB 05-04-2007 08:58 AM

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.

Sarah_Jayne 05-04-2007 09:14 AM

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

donnie 05-04-2007 09:20 AM

Quote:

Originally Posted by Sarah_MaxCash (Post 12371255)
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?

Sarah_Jayne 05-04-2007 10:05 AM

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).

donnie 05-04-2007 10:56 AM

Quote:

Originally Posted by Sarah_MaxCash (Post 12371557)
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.

starpimps 05-04-2007 11:08 AM

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

tenderobject 05-04-2007 11:11 AM

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.

fusionx 05-04-2007 11:25 AM

Quote:

Originally Posted by donnie (Post 12371937)
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 :(

donnie 05-04-2007 11:33 AM

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...

donnie 05-04-2007 11:36 AM

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

Sarah_Jayne 05-04-2007 11:57 AM

does that plugin do that for me?

donnie 05-04-2007 12:14 PM

Quote:

Originally Posted by Sarah_MaxCash (Post 12372379)
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 :)

Sarah_Jayne 05-04-2007 12:17 PM

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

fusionx 05-04-2007 12:21 PM

Thanks Donnie! :thumbsup

Quote:

Originally Posted by donnie (Post 12372178)
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...


donnie 05-04-2007 12:21 PM

Quote:

Originally Posted by Sarah_MaxCash (Post 12372482)
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...

ucv.karl 05-04-2007 12:21 PM

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)

donnie 05-04-2007 12:39 PM

Quote:

Originally Posted by ucv.karl (Post 12372516)
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 :)

Sarah_Jayne 05-04-2007 12:51 PM

Quote:

Originally Posted by donnie (Post 12372512)
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

donnie 05-04-2007 01:18 PM

Quote:

Originally Posted by Sarah_MaxCash (Post 12372697)
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...


All times are GMT -7. The time now is 02:48 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123