Advertisement:

Author Topic: Simple Audio Video Embedder  (Read 787828 times)

Offline Bigguy

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 12,512
  • Gender: Male
  • Be nice, or else....
    • smfbigguy on GitHub
    • Whats Ur Beef
Re: Simple Audio Video Embedder
« Reply #2860 on: February 13, 2018, 09:52:57 AM »
If you installed other mods after installing this one, then the code has probably changed in the files and the mod can't find what to uninstall. That's why it errors out.

Offline Jeff B

  • Full Member
  • ***
  • Posts: 405
Re: Simple Audio Video Embedder
« Reply #2861 on: February 13, 2018, 10:13:48 AM »
Yea, I'm sure that is what it is. Problem is I am so dyslexic that doing a manual removal is more than a challenge. :-\

Offline Bigguy

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 12,512
  • Gender: Male
  • Be nice, or else....
    • smfbigguy on GitHub
    • Whats Ur Beef
Re: Simple Audio Video Embedder
« Reply #2862 on: February 13, 2018, 10:26:59 AM »
If you could try to uninstall the mods in order you might be able to get it that way. Depending on how many mods you installed after this one.

Offline Jeff B

  • Full Member
  • ***
  • Posts: 405
Re: Simple Audio Video Embedder
« Reply #2863 on: February 13, 2018, 10:39:44 AM »
I put my bigboy pants on and dove into it.  I was able to uninstall the old version successfully and get the new version installed.   Still not sure what the deal was with initial uninstall.  It was almost like the uninstaller was for the wrong version of the install.  All the code blocks were there as they should have been, but there must have been subtle differences that would not let the uninstall "find them"

Anyhow, all is good.  Thanks for the inspiration!

Offline Jeff B

  • Full Member
  • ***
  • Posts: 405
Re: Simple Audio Video Embedder
« Reply #2864 on: February 13, 2018, 10:52:26 AM »
Is there away to edit @media screen  size for the disable link so it only disables for smaller devices?

Offline vbgamer45

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 20,019
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Simple Audio Video Embedder
« Reply #2865 on: February 13, 2018, 11:25:54 AM »
Not at the moment it is based on the user agent that's how the system does the checks
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

Offline butch2k

  • Full Member
  • ***
  • Posts: 416
  • Gender: Male
    • @butch2k on Twitter
    • Planète Roliste
Re: Simple Audio Video Embedder
« Reply #2866 on: February 13, 2018, 02:33:27 PM »
Is there away to edit @media screen  size for the disable link so it only disables for smaller devices?
I can't see how it would be possible right now as there is no wrapping div around the embedded videos. Hence you can't easily target the videos through media queries.
vbgamer45 It might be interesting to add a wrapping div in an update  ;)

Offline butch2k

  • Full Member
  • ***
  • Posts: 416
  • Gender: Male
    • @butch2k on Twitter
    • Planète Roliste
Re: Simple Audio Video Embedder
« Reply #2867 on: February 13, 2018, 02:38:57 PM »
vbgamer45 here is the updated embedding code for facebook (replacing v5 version)

Code: [Select]
<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-video" data-href="https://www.facebook.com/facebook/videos/$5/" data-width="500" data-show-text="false"  data-allowfullscreen="1"><blockquote cite="https://www.facebook.com/facebook/videos/$5/" class="fb-xfbml-parse-ignore"><a href="https://www.facebook.com/facebook/videos/$5/">s</a></blockquote></div>
They simplified the integration html code a bit and upped the js version to 2.12.

Offline vbgamer45

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 20,019
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Simple Audio Video Embedder
« Reply #2868 on: February 13, 2018, 02:39:46 PM »
Yeah it could be done. I think maybe as an option

That's butch2k will get it added.
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

Offline SaltedWeb

  • Sr. Member
  • ****
  • Posts: 854
  • Gender: Male
  • The Tired One
Re: Simple Audio Video Embedder
« Reply #2869 on: February 13, 2018, 06:03:45 PM »
Yea, I'm sure that is what it is. Problem is I am so dyslexic that doing a manual removal is more than a challenge. :-\
I am a little late to answer but there is a nice mod called Sortable Packages (and Installed Time)
Which helps one see the order mods were installed, I found it very handy and now use when ever I need to remove a
mode it is built right in to the package areas so very handy.   https://custom.simplemachines.org/mods/index.php?mod=2323
Knowing your limitations makes you human, exceeding these limitations makes you worthy of being human.

Offline vbgamer45

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 20,019
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Simple Audio Video Embedder
« Reply #2870 on: February 13, 2018, 08:46:34 PM »
Can you please add

https://www.bandcamp.com
Example: http://superfunk12.bandcamp.com/album/spice-of-life
Example: http://superfunk12.bandcamp.com/track/brightness

https://www.reverbnation.com
Example: https://www.reverbnation.com/themotiveproject/song/12433163-fire

https://www.denoiz.com
Example: https://www.denoiz.com/track/5/one-shot

Thanks
I looked into those

reverbnation.com two step process to embed can't do it easily. Requires artist id which is not in the url

denoiz.com doesn't seen to have many songs???

bandcamp.com I can't find any embed code.
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

Offline SMFHacks.com Team

  • Jr. Member
  • **
  • Posts: 345
    • smfhacks on Facebook
    • @smfhacks on Twitter
    • SMFHacks.com
Re: Simple Audio Video Embedder
« Reply #2871 on: February 13, 2018, 11:34:13 PM »
New update!
4.4
+Added option to include a div around all embeds with a custom classname for you to style control via css/javascript
+Updated facebook v5 embed code thanks to butch2k
Disclaimer: SMFHacks.com Team is not affiliated with the SMF Team or the SimpleMachines NPO.

http://ForumRankings.net - Get Forum Ranked!
SMFHacks.com -  Paid Modifications for SMF
Latest Mods:
Community Suite
Newsletter Pro SMF Gallery Pro SMF Classifieds SMF Store

Offline Aleksi "Lex" Kilpinen

  • Support Specialist
  • SMF Super Hero
  • *
  • Posts: 16,710
  • Gender: Male
  • Don't worry, I'm n00b friendly
    • Aleksi.Kilpinen on Facebook
    • aleksi-kilpinen on LinkedIn
Re: Simple Audio Video Embedder
« Reply #2872 on: February 13, 2018, 11:48:06 PM »
bandcamp.com I can't find any embed code.
Bandcamp does offer embeds, but because I believe it doesn't allow it automatically for all contents - it could be tricky. ( Haven't been on Bandcamp for ages though, so I may be wrong too - would love to see Bandcamp working though, so ...

https://ylivallanorjat.bandcamp.com/

Under the cover pic, if you click Share / Embed you will get either a link, or one of 3 different player embeds from Bandcamp, with some further customization options. The "Standard" would be like this

Code: [Select]
<iframe style="border: 0; width: 100%; height: 120px;" src="https://bandcamp.com/EmbeddedPlayer/album=3979777004/size=large/bgcol=ffffff/linkcol=0687f5/tracklist=false/artwork=small/transparent=true/" seamless><a href="http://ylivallanorjat.bandcamp.com/album/systeemin-ratas-ep-2014">Systeemin Ratas - EP 2014 by Ylivallan Orjat</a></iframe>

( P.S. I know the band in question personally, so that's why I am using them as an example. :P Apologies everyone. )
A Finnish Support Specialist
 Happily running multiple SMF 2.0 installations.

"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum.
 Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

Offline aegersz

  • Sophist Member
  • *****
  • Posts: 1,331
  • Gender: Male
  • "mods" junkie
    • dopetalk
Re: Simple Audio Video Embedder
« Reply #2873 on: February 14, 2018, 12:34:38 AM »
I put my bigboy pants on and dove into it

sorry no tech help here but that's the best line i have heard all day  :) ... 'ataboy ! and it all worked out for ya.
Linux CentOS VPS running SMF 2.0 with 140+ mods installed (the full h/w and s/w can be seen at http://forum.drugs-and-users.org/index.php/topic,3301)

Offline CreativeITWorld.com

  • Semi-Newbie
  • *
  • Posts: 14
Re: Simple Audio Video Embedder
« Reply #2874 on: February 14, 2018, 02:12:10 AM »
New update!
4.4
+Added option to include a div around all embeds with a custom classname for you to style control via css/javascript

Thank you. I was skipping the majority of updates due to being tired of manually editing the mod code before upload.

Now it's just the simple one-off edit of index.css

Code: [Select]
/* Styles for Simple Audio Video Embedder
---------------------------------------------------- */
.embedsave { text-align: center; }

Offline vbgamer45

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 20,019
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Simple Audio Video Embedder
« Reply #2875 on: February 14, 2018, 02:13:23 AM »
Glad this update has helped you!
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

Offline yameth

  • Semi-Newbie
  • *
  • Posts: 73
  • Gender: Male
    • Noiz.gr
Re: Simple Audio Video Embedder
« Reply #2876 on: February 14, 2018, 01:23:35 PM »
I looked into those

reverbnation.com two step process to embed can't do it easily. Requires artist id which is not in the url

denoiz.com doesn't seen to have many songs???

bandcamp.com I can't find any embed code.
Ok, thanks anyway.
SMF 2.0.11, EZPortal, Ad Management, SMF Articles, Simple Audio Video Embedder, SMF Trader System, SMF Packs SEO

Offline butch2k

  • Full Member
  • ***
  • Posts: 416
  • Gender: Male
    • @butch2k on Twitter
    • Planète Roliste
Re: Simple Audio Video Embedder
« Reply #2877 on: February 14, 2018, 04:10:25 PM »
I took a look at reverbnation and denoiz and tinkered a bit with the urls and embed codes...

For reverbnation the artist ID is not necessary it works with artist name as well.
Code: [Select]
URL
https://www.reverbnation.com/themotiveproject/song/12433163-fire

Embed Code to put as iframe src:
https://www.reverbnation.com/widget_code/html_widget/themotiveproject?widget_id=55&pwc[song_ids]=12433163

For denoiz
Code: [Select]
URL:
https://www.denoiz.com/track/6/mine-in-my-dreams
Embed code:
<iframe width="100%" height="140" frameborder="no" scrolling="no" src="https://www.denoiz.com/embed.php?id=6/mine-in-my-dreams"></iframe>
« Last Edit: February 14, 2018, 04:33:19 PM by butch2k »

Offline vbgamer45

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 20,019
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Simple Audio Video Embedder
« Reply #2878 on: February 14, 2018, 04:39:42 PM »
Will have a look butch2k  denoiz for me looked too small to add not much content on their site
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

Offline butch2k

  • Full Member
  • ***
  • Posts: 416
  • Gender: Male
    • @butch2k on Twitter
    • Planète Roliste
Re: Simple Audio Video Embedder
« Reply #2879 on: February 14, 2018, 04:51:09 PM »
Will have a look butch2k  denoiz for me looked too small to add not much content on their site
Agreed ! I did it mostly for the challenge of doing it ;D not sure it will be that much useful.