Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Embedding Videos With An Iframe
Avatar
FidoSysop
Clearwater Florida
Member

VIP
sp_UserOfflineSmall Offline
Jul 29, 2012 - 3:48 pm

Another quick question.. smile

Been embedding a video here and there by clicking on the html button in the tinymce editor and pasting the videos share code copied to my clipboard. Works great the majority of the time, but some of the newer share embed codes uses an Iframe that SP don't like. Any way around this?

Thanks again.

  • Doc ~ An old Fidonet SysOp. Just hanging out in cyberspace keeping up with tech.
Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jul 29, 2012 - 3:59 pm

not really... iframes are a security risk and allowing your forum users to do so would not be pleasant for your site...

but wp and thus sp support oembeds... you just paste in the url to the video and it does all the embedding for you...

Avatar
FidoSysop
Clearwater Florida
Member

VIP
sp_UserOfflineSmall Offline
Jul 29, 2012 - 4:12 pm

That works for YouTube that i know of.

But this one from Fox news does not. Do i have to configure something else to set up oembeds?

http://video.insider.foxnews.c.....745612001/

  • Doc ~ An old Fidonet SysOp. Just hanging out in cyberspace keeping up with tech.
Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jul 29, 2012 - 4:26 pm

Sorry to say that is not one that WP supports (at least currently). Do they only have an iFrame option?

andy-signature.png
YELLOW
SWORDFISH
Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jul 29, 2012 - 4:48 pm

well, first a site, like foxnews, has to support oembeds too... then wp has a list or you can use hooks to add more... see: http://codex.wordpress.org/Embeds

you can embed videos - just not with iframes lest putting your server security at risk... do you really want any user who can post to use iframes??

Simple:Press Support wrote: >

Avatar
FidoSysop
Clearwater Florida
Member

VIP
sp_UserOfflineSmall Offline
Jul 29, 2012 - 5:44 pm

Hmmmm.. No that one just has a regular embed code, but tinymce strips it when saving. I ended up using Hanna Code Insert to make it play on the post, but that's a pita. Another disadvantage of Hanna is, in my forum feed instead of showing the video it shows the Hanna short code. NBC videos show in the feed, as well as YT.

I use Hanna for blog posts and it works great, also when saving a blog post and saving a post copy to the forum Hanna works good. But for a quickie forum post it's usually not worth the extra work, especially if I'm signed into the board with a non admin user acct.

Many including NBC and CBS work fine. It's some of those weird not so heard of site videos that usually wont embed. Some seem to embed fine but don't display when saving the post. I will start making a list of what works and what does not.

I didn't realize that an Iframe was insecure. eBay puts a sellers html and self hosted photos in an Iframe within the listing that loads from another server. They said it was a security enhancement. When i sold cars on EBM i self hosted my own photos, and 20+ 800x600 images would produce a double scroll bar in Firefox.

  • Doc ~ An old Fidonet SysOp. Just hanging out in cyberspace keeping up with tech.
Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jul 29, 2012 - 6:08 pm

its not that iframes themselves are insecure but you want control over what is loaded in the iframe... the wp oembed stuff will actually put an iframe in there but the content is fixed... in a forum post, with any user being able to post and thus able to enter an iframe, the user can put anything in the iframe including external sites that might contain malware... its a bit different on the front then in the wp backend where you have explicit control over who can make a post...

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 620
Members: 17365
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626