News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Simple Audio Video Embedder

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

Previous topic - Next topic

Nymeria

Hielo y Fuego [nofollow] (Game of Thrones by HBO in Spanish).


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

opheliagrimm

Quote from: luuuciano on October 17, 2011, 02:27:04 PM
Some people pastes youtube links like this:
http://www.youtube.com/watch?feature=player_detailpage&v=2IIG-gHXw8c [nofollow]
and other versions (with video at the end)
Can be added something to have that kinds of videos working too?

I have the same problem, did you have a fix for this vbgamer?

I usually have to go and edit the person's link and replace with a short version which works fine (but is labour intensive)

Can your mod support those long youtube links?

Sorry if you answered before. Checked about 4 pages back and didn't see a response.

Also, bought your newsletterpro mod. Works great so far! good work

DaleM

The "YouTube Short URL" regexmatch needs a small tweak. Video id's with a dash (-) in them will not embed.

Currently, the dash is after the = sign:

http://[w\.]*youtu\.be/([a-zA-Z0-9&;+=-_]*)

Moving the dash to before the a-z will fix it:

http://[w\.]*youtu\.be/([-a-zA-Z0-9&;+=_]*)

vbgamer45

Thanks DaleM if you want to be part author let me know really appreciate all the help you give. The regex stuff I do not know a ton about but normally can piece stuff together.
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

vbgamer45

Minor bugfix update
2.0.4
!Fixed bug with - in video url in short youtube urls  thanks DaleM
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

WantSome

Yay, finally a mod that allows for sharing of youtube vids!

Thanks, vbgamer45!

Just one comment, in the settings area at the top it says my version is out of date but I'm pretty sure this is the latest version...

Your Version: 2.0.4 Latest Version: 2.0.3 Your Simple Audio Video Embedder version is not up to date!

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

WantSome

Hey vbgamer45

My users are already rejoicing over this mod, btw.  I did have a question about whether there was a disable-in-post function at all.  Something like this user mentioned a few pages back but I couldn't find an answer for it...

Quote from: jguerdon on October 18, 2011, 07:32:12 AM
First of all, thanks for this mod. I have one wish though: Would it be possible to add a way to intentionally prevent auto-embedding in a certain post? While in most cases one wants auto embedding (otherwise we wouldn't install the module), there are situations where it is not wished for. My idea would be to do it like this:


http://supported.video/url => embedded as it is plain text
[url=http://supported.video/url]link text[/url] => not embedded as user seems explicitely want a text link


Is this something that can be done?

Thanks
WS

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


WantSome

Spoke too soon:

After finding that adding the # worked I realised that suddenly NONE of the videos were embedded any more.  I uninstalled the mod and reinstalled it.  Now the videos embed but adding the # doesn't work.

Any advice?

DaleM

Quote from: vbgamer45 on November 17, 2011, 08:08:13 PM
Thanks DaleM if you want to be part author let me know really appreciate all the help you give. The regex stuff I do not know a ton about but normally can piece stuff together.

Thanks for the offer, but I better just stick to pointing out fixes.  :P If this doesn't scare you, I don't know what will: I just started learning how regex stuff works from your SAVE mod. So I'm less experienced than you are with it. I just search around for an answer when I run across an issue, then share the findings here.

Keep up the good work! Users of our forum appreciate how easy it is to embed videos.

vbgamer45

K, let me know if you change your mind. I do really appreciate the work saves me so much time so even more so when I manage all the mods that I have.
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

HunterP


Can you please add a more recent screenshot for the settings window?

!RFAN

Quote from: vbgamer45 on November 16, 2011, 09:24:09 AM
Need example links etc.

http://hulkshare.com/6krxezc522yy

Option 1

<!-- begin hulk embed -->
<link type="text/css" href="http://static1.hulkshare.com/js/jplayer.dark.2.css" rel="stylesheet" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
<script type="text/javascript" src="http://static1.hulkshare.com/js/jquery.jplayer.min.js"></script>
<script type="text/javascript">
 
  $(document).ready(function(){
    $("#jquery_jplayer_4486402").jPlayer({
      ready: function () {
        $(this).jPlayer("setMedia", {
          mp3: "http://hulkshare.com/ap-6krxezc522yy.mp3"
        });
      },
      swfPath: "http://static1.hulkshare.com/js",
      supplied: "mp3",
      cssSelectorAncestor: "#jp_interface_4486402"
    })
    .bind($.jPlayer.event.play, function() {
      $(this).jPlayer("pauseOthers");
    });
  });
 
</script>
<div id="jquery_jplayer_4486402" class="jp-jplayer"></div>
<div class="jp-audio">
  <div class="jp-type-single">
    <div id="jp_interface_4486402" class="jp-interface">
      <ul class="jp-controls">
        <li><a href="#" class="jp-play" tabindex="1">play</a></li>
        <li><a href="#" class="jp-pause" tabindex="1">pause</a></li>
      </ul>
      <div class="jp-progress">
        <div class="jp-seek-bar">
          <div class="jp-play-bar"></div>
        </div>
      </div>
<div class="jp-volume-string">volume</div>
<div class="jp-download-string" onclick="javascript:window.location='http://hulkshare.com/6krxezc522yy';"></div>
<div class="jp-file-string">High Notes - Tanhaee - HiGH NOTES.mp3</div>
      <div class="jp-volume-bar">
        <div class="jp-volume-bar-value"></div>
      </div>
      <div class="jp-current-time"></div>
      <div class="jp-duration"></div>
    </div>
  </div>
</div>
<!-- end hulk embed -->


Option 2

<object type='application/x-shockwave-flash' data='http://on.hulkcdn.com/static/embed.swf' height='24' width='290' id='4486402'><param name='movie' value='http://on.hulkcdn.com/static/embed.swf' /><param name='FlashVars' value='soundFile=http://hulkshare.com/ap-6krxezc522yy.mp3&titles=High Notes - Tanhaee - HiGH NOTES.mp3&skin=raven&dllink=http://www.hulkshare.com/6krxezc522yy'><param name='quality' value='high'><param name='menu' value='false'><param name='wmode' value='transparent'></object>


diks13

I use last version Simple Audio Video Embedder 2.0.4 in Google Chrome 15.0.874.120 has noticed that distance between a player and the text too big, has found out that all business in tag <object></object>  between them is empty! Has removed them in a file
AutoEmbedMediaProInstall2.php
AutoEmbedMediaProInstall.php

(68, 'Zippyshare', 'hxxp:www.zippyshare.com [nonactive]', 300,20, 'http://([A-Z0-9]*).zippyshare.com/v/([A-Z0-9]*)/file.html','" . '
<object></object><script type="text/javascript">var zippywww="$1";var zippyfile="$2";var zippydown="ffffff";var zippyfront="000000";var zippyback="ffffff";var zippylight="000000";var zippywidth=480;var zippyauto=false;var zippyvol=80;var zippydwnbtn = 1;</script><script type="text/javascript" src="hxxp:api.zippyshare.com/api/embed.js [nonactive]"></script>
' . "'),
   (69, 'Zippyshare 2', 'hxxp:www.zippyshare.com [nonactive]', 375,500, 'http://([A-Z0-9]*).zippyshare.com/view.jsp" . '\\' .'\\' . "?locale=([A-Z0-9]*)" . '\\' .'\\' . "&amp;key=([A-Z0-9]*)','" . '
<object></object><script type="text/javascript">var zippywww="$1";var zippyfile="$3";var zippydown="ffffff";var zippyfront="000000";var zippyback="ffffff";var zippylight="000000";var zippywidth=680;var zippyauto=false;var zippyvol=80;var zippydwnbtn = 1;</script><script type="text/javascript" src="hxxp:api.zippyshare.com/api/embed.js [nonactive]"></script>
' . "')
It became good.
Pay attention to this error.
Thanks.

!RFAN

facebook videos are not working with this mod.. maybe they have changed the link style

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

Advertisement: