News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

How to embed video in SMF forum? (not youtube video)

Started by thananit, January 03, 2015, 06:50:48 AM

Previous topic - Next topic

thananit

Hello,
I used a smf V2.0.9 and I installed the mod of Embed BBCode (edit files by manual and upload to hosting)
after that my forum can show only youtube's embed code VDO, it can not show VDO from other website's embed codes.
Example code is not work :
[embed=425,349]<iframe width='640' height='320' src='http://www.majortrailers.com/embed.php?tid=1606&w=640&h=320&sd=0' frameborder='0' allowfullscreen></iframe>[/embed]

Example youtube code, it's work:
[embed=425,349]<iframe width="560" height="315" src="//www.youtube.com/embed/XBPPHBu-WDs" frameborder="0" allowfullscreen></iframe>[/embed]

I need make my forum can use all embed videos.
Please suggest me,How to embed video in SMF forum? (not only youtube)

Thank you
Thananit

kat

Different sites use different methods. So, making a mod that does ALL vids is going to be problematic, especially as sites keep changing their codes.

Tried this?

http://custom.simplemachines.org/mods/index.php?mod=3034

thananit

Quote from: K@ on January 03, 2015, 07:10:17 AM
Different sites use different methods. So, making a mod that does ALL vids is going to be problematic, especially as sites keep changing their codes.

Tried this?

http://custom.simplemachines.org/mods/index.php?mod=3034

Now, I used this mod but not work for all embed VDO.

kat

I believe that I won't be far wrong, if I say that a mod, which can embed ANY vid, from ANY site, just ain't gonna happen. Ever.

Or, if such a mod ever does exist, it won't work for very long.

Even YouTube change their codes, occasionally.

Personally, I don't see the point in embedding. Why not just post a link to the vid's page?

FAR easier and WAY more reliable.

thananit

Please see an example codes and screenshot of my post; (It show only youtube VDO)

1. the embed code from other website
[embed=425,349]<iframe width='640' height='320' src='http://www.majortrailers.com/embed.php?tid=1606&w=640&h=320&sd=0' frameborder='0' allowfullscreen></iframe>[/embed]

2.the youtube embed
[embed=425,349]<iframe width="560" height="315" src="//www.youtube.com/embed/XBPPHBu-WDs" frameborder="0" allowfullscreen></iframe>[/embed]


Steve

My pet rock is not feeling well. I think it's stoned.

vbgamer45

Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

thananit

This mod support only links from provider's sites list.

vbgamer45

I have a lot. There is about 80 or so supported and do custom requests. There is no such thing as a universal embed mod that is secure.
If you allowed html code for all users to embed any video that would cause security issues.
Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Advertisement: