Simple Audio Video Embedder

Started by SMFHacks.com Team, August 09, 2010, 10:42:47 PM

Previous topic - Next topic

Tenebroso_MW


SimpleAudioVideoEmbedder4.4.zip

To avoid confusion, update the latest version on the MOD page. Thank you very much. Put Last Version:
4.3 thanks


vbgamer45

Yes always use the latest version when possible.
Community Suite for SMF - Take your forum to the next level built for 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

Tenebroso_MW

Excuse me for my poor English. Thank you.


vbgamer45

Community Suite for SMF - Take your forum to the next level built for 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

gevv

Please Signatures video link off settings

Thanks.
ElkArte is a modern, powerful community building forum software. https://www.elkarte.net/

vbgamer45

i tired to do that in the past did not work
Community Suite for SMF - Take your forum to the next level built for 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

gorbi


vbgamer45

Please post the exact link so I can review.
Community Suite for SMF - Take your forum to the next level built for 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


zorer

Hi! this mod is awesome, can i request support for?

-https://d.tube [nofollow] (you have the source code here too, https://github.com/dtube [nofollow])
-https://gfycat.com [nofollow]
-local/remote mp3 (ex: url://domain.com/music.mp3)
-ogm/ogv video (local/remote) is like webm, just adding a different extenson in your code and works (i tried and worked)
-gifv from imgur.com [nofollow]

Thanks!

vbgamer45

Will take a look at the end of the week.
Community Suite for SMF - Take your forum to the next level built for 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

gorbi


butch2k

Quote from: vbgamer45 on March 05, 2018, 02:34:28 PM
Will take a look at the end of the week.
Let me know if you manage to get something working with FB images as they introduced some kind of one use timestamp to prevent leeching... I fear it's not possible anymore to link them directly.


Article integration (@vbgamer45 i noticed that "Facebook" is for video ??? so i replaced it with articles on my install)

regexp

(http|https):\/\/(|(.+?).)facebook.com\/([\w\.\_]+)\/posts\/(\d+)(\/)?


Embed code

<div id="fb-root"></div><script>(function(d,s,id){var js, fjs = d.getElementsByTagName(s)[0];if (d.getElementById(id)) return;js = d.createElement(s); js.id = id;js.src = "//connect.facebook.net/fr_FR/sdk.js#xfbml=1&version=v2.12";fjs.parentNode.insertBefore(js, fjs);}(document, "script", "facebook-jssdk"));</script><div class="fb-post" data-href="https://www.facebook.com/$4/posts/$5/" data-width="500" data-show-text="true"></div>


Result in attachment.

butch2k

As far as i can tell getting the images out of a fb link requires using the graph API which in turn needs a fb access token...
You query with a post id (getting it is not simple as it depends on the way the provided links are formatted, it might require splitting at dots or underscores as far as i can tell) and a FB access token (private stuff and al), then get a json with img urls which are in turn embeddable, you can't directly embed with the one use cdn link.
Far from being easy  :-X

butch2k

US News Intégration as mentionned here: https://www.simplemachines.org/community/index.php?topic=531060.msg3964511#msg3964511

Site
http://www.usnews.com/

regex
htt(p|ps):\/\/www\.usnews\.com\/news\/features\/news-video\?([\w.=_&;]+?)videoId=(\d+)

Embed Code
<iframe width="590" height="332" src="http://launch.newsinc.com/?type=VideoPlayer/Single&widgetId=1&videoId=$3" frameborder="no" scrolling="no" noresize marginwidth="0" marginheight="0" allowfullscreen webkitallowfullscreen mozallowfullscreen></iframe>

SMFHacks.com Team

New update
4.5
+Added support for Facebook Posts thanks to butch2k
+Added support for USNews.com thanks to butch2k
+Added support for local remote ogm and ogv files
Disclaimer: SMFHacks.com Team is not affiliated with the SMF Team or the SimpleMachines NPO.
SMFHacks.com -  Paid Modifications for SMF
Latest Mods:
Community Suite
Newsletter Pro SMF Gallery Pro SMF Classifieds SMF Store

gorbi


vbgamer45

What he is saying embeding facebook pictures is very hard to do. It could be done but there is multiple steps
Community Suite for SMF - Take your forum to the next level built for 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

butch2k

Quote from: gorbi on March 08, 2018, 10:44:21 AM
@butch2k work?
it works for articles but not for pictures. I'm not even certain it's possible for pictures right now.
As far as I can tell you need to parse the given url, use the Id to make an Ajax request to get an object id you need to pass to a JavaScript code that will itself inject the image within the post through a second query... and at one point you need an access token which you get by another process.
I'll have a look but I can't promise anything as it looks very messy to say the least. 

gorbi

Mod Embed Facebook BBCode work excellent, but i want all in one mod.

Advertisement: