Advertisement:

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

Offline .ABM.

  • SMF Hero
  • ******
  • Posts: 1,950
  • Gender: Male
  • C.A.B.J
Re: Simple Audio Video Embedder 1.0.9 (Oct 4) 50+ Video Sites supported!
« Reply #280 on: October 04, 2010, 11:45:24 PM »
You just post a link from of those sites inside a post and it will auto embed

Thanks  ;D

Offline KensonPlays

  • SMF Hero
  • ******
  • Posts: 4,306
    • @Kenson_Plays on Twitter
Re: Simple Audio Video Embedder 1.0.9 (Oct 4) 50+ Video Sites supported!
« Reply #281 on: October 05, 2010, 10:16:03 AM »
no problem buraaq!

Offline DaleM

  • Semi-Newbie
  • *
  • Posts: 24
  • Gender: Male
Re: Simple Audio Video Embedder 1.0.9 (Oct 4) 50+ Video Sites supported!
« Reply #282 on: October 05, 2010, 02:13:18 PM »
Minor suggestion: I'd like to see the sites sorted alphabetically when on the Settings page. As more and more sites are added, it may become difficult to find which ones you have available. I simply added an "ORDER BY title" in the MediaProSettings function:
Code: [Select]
SELECT
  id, title, website, enabled
FROM {$db_prefix}mediapro_sites
ORDER BY title

There are also Halo 3/ODST videos at the Bungie.net site that I posted yesterday, and their link is slightly different (fileID instead of fid). I modifed the regexmatch and embedcode for Bungie.net as follows:

Code: (regexmatch field) [Select]
http://www.bungie.net/Silverlight/bungiemediaplayer/embed.aspx\?(fid|fileId)=([0-9]*)
Code: (embedcode field) [Select]
<iframe src="http://www.bungie.net/Silverlight/bungiemediaplayer/embed.aspx?$1=$2" scrolling="no" style="padding:0;margin:0;border:0;" width="640" height="360" ></iframe>
Both of these links should embed correctly after the update to the Bungie.net record:

http://www.bungie.net/Silverlight/bungiemediaplayer/embed.aspx?fid=2197750
http://www.bungie.net/Silverlight/bungiemediaplayer/embed.aspx?fileId=93759352


Thanks again. And I'll post any additional sites that I add so you may consider them for future releases.

Offline DaleM

  • Semi-Newbie
  • *
  • Posts: 24
  • Gender: Male
Re: Simple Audio Video Embedder 1.0.9 (Oct 4) 50+ Video Sites supported!
« Reply #283 on: October 05, 2010, 06:02:33 PM »
SQL insert statements below for 3 more sites. id (auto-increment field) not included. Table name assumes the prefix is "smf_" - so change accordingly.

All 3 are gaming related sites. And you may want to double-check my regular expressions. They work, but not 100% sure they are optimal. :)

Code: [Select]

INSERT INTO smf_mediapro_sites (title, enabled, website, regexmatch, embedcode, processregex, height, width) VALUES ('G4tv', 0, 'http://www.g4tv.com', 'http://g4tv.com/videos/([0-9]*)/([a-zA-Z0-9_\\-]*)/', '<object classId="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="480" height="418" id="VideoPlayerLg$1"><param name="movie" value="http://g4tv.com/lv3/$1" /><param name="allowScriptAccess" value="always" /><param name="allowFullScreen" value="true" /><embed src="http://g4tv.com/lv3/$1" type="application/x-shockwave-flash" name="VideoPlayer" width="480" height="382" allowScriptAccess="always" allowFullScreen="true" /></object>', NULL, 0, 0);

INSERT INTO smf_mediapro_sites (title, enabled, website, regexmatch, embedcode, processregex, height, width) VALUES ('IGN', 0, 'http://www.ign.com', 'http://www.ign.com/videos/([0-9]*)/([0-9]*)/([0-9]*)/([a-zA-Z0-9_=\\-\\?]*)', '<object id="vid" class="ign-videoplayer" width="480" height="270" data="http://media.ign.com/ev/prod/embed.swf" type="application/x-shockwave-flash"><param name="movie" value="http://media.ign.com/ev/prod/embed.swf" /><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="bgcolor" value="#000000" /><param name="flashvars" value="url=http://www.ign.com/videos/$1/$2/$3/$4"/></object>', NULL, 0, 0);

INSERT INTO smf_mediapro_sites (title, enabled, website, regexmatch, embedcode, processregex, height, width) VALUES ('Joystiq', 0, 'http://www.joystiq.com', 'http://www.joystiq.com/video/([a-zA-Z0-9]*)', '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="437" height="266" id="viddler"><param name="movie" value="http://www.viddler.com/simple/$1" /><param name="allowScriptAccess" value="always" /><param name="allowFullScreen" value="true" /><param name="flashvars" value="fake=1"/><embed src="http://www.viddler.com/simple/$1" width="437" height="266" type="application/x-shockwave-flash" allowScriptAccess="always" allowFullScreen="true" flashvars="fake=1" name="viddler" ></embed></object>', NULL, 0, 0);



Online vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 21,618
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Simple Audio Video Embedder 1.0.9 (Oct 4) 50+ Video Sites supported!
« Reply #284 on: October 05, 2010, 06:04:06 PM »
Awesome thanks so much will get these added along with your other ideas
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 BlownShovel

  • Semi-Newbie
  • *
  • Posts: 24
Re: Simple Audio Video Embedder 1.0.9 (Oct 4) 50+ Video Sites supported!
« Reply #285 on: October 05, 2010, 06:44:20 PM »
Mr. vbgamer45, I am VERY thankful for this mod! :D

I just have one question/recommendation... is there a tag I can use  to disable a video from being embedded? For example, I wanted to list a bunch of youtube videos without them being embedded, but still have the latest video in the list embedded.

I would also recommend having the auto-embed function turn off when using the [ url ] tag.

Thanks again for your work! :)

Mod works great..  too well as we would like to disable Signature video embedding.  We asked folks to use #ws at the end of the URL but since that bug is now fixed..   Is there disable preview tag?  Or possibly a Mod to not embed signatures?

Thanks

Offline DaleM

  • Semi-Newbie
  • *
  • Posts: 24
  • Gender: Male
Re: Simple Audio Video Embedder 1.0.9 (Oct 4) 50+ Video Sites supported!
« Reply #286 on: October 06, 2010, 09:18:05 AM »
I don't want you to take this as a complaint, vbgamer. I'm really liking this mod and this is just a general question for you or anyone:

I'd like for users to be able to post "embed" type code, not just the URL. I don't see any mods that do that, so I assume it is not very easily implemented.

Is it a security issue (even though it would be validated against an entry in the database)? Or something to do with the way SMF rewrites URL strings? Or something else?

If a URL can be checked to ensure it is valid, then modified into embed code - what prevents embed code to be checked/validated?

Thanks for any insight.  :)

Offline 青山 素子

  • Server Team
  • SMF Super Hero
  • *
  • Posts: 17,072
  • 戦場ヶ原、蕩れ!
    • srvrguy on GitHub
    • @motokochan on Twitter
    • Nekomusume Moe
Re: Simple Audio Video Embedder 1.0.9 (Oct 4) 50+ Video Sites supported!
« Reply #287 on: October 06, 2010, 11:10:34 AM »
Is it a security issue (even though it would be validated against an entry in the database)? Or something to do with the way SMF rewrites URL strings? Or something else?

If a URL can be checked to ensure it is valid, then modified into embed code - what prevents embed code to be checked/validated?

Security issue. Because embed/object tags can have different parameters or even different line breaks, it's much more difficult to assure it is valid versus a URL which is a single line with a somewhat more consistent format. If you're too loose at checking the embed code, someone can potentially slip something in that is undesirable. If you're too strict in checking the code, it may not work if someone makes even a small, benign change.
Motoko-chan
Director, Simple Machines

Note: Unless otherwise stated, my posts are not representative of any official position or opinion of Simple Machines.


Online vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 21,618
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Simple Audio Video Embedder 1.0.9 (Oct 4) 50+ Video Sites supported!
« Reply #288 on: October 06, 2010, 11:34:55 AM »
Mr. vbgamer45, I am VERY thankful for this mod! :D

I just have one question/recommendation... is there a tag I can use  to disable a video from being embedded? For example, I wanted to list a bunch of youtube videos without them being embedded, but still have the latest video in the list embedded.

I would also recommend having the auto-embed function turn off when using the [ url ] tag.

Thanks again for your work! :)

Mod works great..  too well as we would like to disable Signature video embedding.  We asked folks to use #ws at the end of the URL but since that bug is now fixed..   Is there disable preview tag?  Or possibly a Mod to not embed signatures?

Thanks
You might be able to use the nobbc tag but not sure if it will 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

Offline DaleM

  • Semi-Newbie
  • *
  • Posts: 24
  • Gender: Male
Re: Simple Audio Video Embedder 1.0.9 (Oct 4) 50+ Video Sites supported!
« Reply #289 on: October 06, 2010, 11:42:05 AM »
If you're too loose at checking the embed code, someone can potentially slip something in that is undesirable. If you're too strict in checking the code, it may not work if someone makes even a small, benign change.

Makes perfect sense. Thanks for the clarification.

Offline DaleM

  • Semi-Newbie
  • *
  • Posts: 24
  • Gender: Male
Re: Simple Audio Video Embedder 1.0.9 (Oct 4) 50+ Video Sites supported!
« Reply #290 on: October 06, 2010, 11:02:24 PM »
Entry for JibJab (URL for testing - http://sendables.jibjab.com/view/fDGoIUKpcAROeoLG)
Code: [Select]
INSERT INTO smf_mediapro_sites (title, enabled, website, regexmatch, embedcode, processregex, height, width) VALUES ('JibJab', 0, 'http://www.jibjab.com', 'http://sendables.jibjab.com/view/([A-Za-z0-9]*)', '<object id="A64060" quality="high" data="http://aka.zero.jibjab.com/client/zero/ClientZero_EmbedViewer.swf?external_make_id=$1" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent" height="319" width="425"><param name="wmode" value="transparent"></param><param name="movie" value="http://aka.zero.jibjab.com/client/zero/ClientZero_EmbedViewer.swf?external_make_id=$1"></param><param name="scaleMode" value="showAll"></param><param name="quality" value="high"></param><param name="allowNetworking" value="all"></param><param name="allowFullScreen" value="true" /><param name="FlashVars" value="external_make_id=$1"></param><param name="allowScriptAccess" value="always"></param></object>', NULL, 0, 0);

Offline BlownShovel

  • Semi-Newbie
  • *
  • Posts: 24
Re: Simple Audio Video Embedder 1.0.9 (Oct 4) 50+ Video Sites supported!
« Reply #291 on: October 07, 2010, 08:16:23 PM »
Mr. vbgamer45, I am VERY thankful for this mod! :D

I just have one question/recommendation... is there a tag I can use  to disable a video from being embedded? For example, I wanted to list a bunch of youtube videos without them being embedded, but still have the latest video in the list embedded.

I would also recommend having the auto-embed function turn off when using the [ url ] tag.

Thanks again for your work! :)

Mod works great..  too well as we would like to disable Signature video embedding.  We asked folks to use #ws at the end of the URL but since that bug is now fixed..   Is there disable preview tag?  Or possibly a Mod to not embed signatures?

Thanks
You might be able to use the nobbc tag but not sure if it will work.

No luck.  After the video link it will clear the link.  Before it will show but the hot link (url) is no longer valid.

Online vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 21,618
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Simple Audio Video Embedder 1.0.9 (Oct 4) 50+ Video Sites supported!
« Reply #292 on: October 07, 2010, 08:23:09 PM »
You can try like #wzx or something random that would throw it off.
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 Zerito

  • Newbie
  • *
  • Posts: 2
Re: Simple Audio Video Embedder 1.0.9 (Oct 4) 50+ Video Sites supported!
« Reply #293 on: October 13, 2010, 05:29:55 PM »
somes videos of MegaVideo got this estructure:
hxxp:www.megavideo.com/?d=HNEOW33U [nonactive]
with ?d    .. when put a video, dont show in post

Offline brocoli

  • Newbie
  • *
  • Posts: 4
Re: Simple Audio Video Embedder 1.0.9 (Oct 4) 50+ Video Sites supported!
« Reply #294 on: October 14, 2010, 10:28:40 AM »
Is it possible to add an option so that it only scans for links inside a new "embed" bbcode tag? (i.e., not a tag that would translate into html embed code, just a way to let members specify which links should be embedded and which shouldn't.)

Offline searchgr

  • Sophist Member
  • *****
  • Posts: 1,247
Re: Simple Audio Video Embedder 1.0.9 (Oct 4) 50+ Video Sites supported!
« Reply #295 on: October 20, 2010, 06:32:23 PM »
why this video don't show in post?

http://www.youtube.com/watch?v=9yhZBgi5NOg&feature=player_embedded#!

Can the latest version play it?

Offline 青山 素子

  • Server Team
  • SMF Super Hero
  • *
  • Posts: 17,072
  • 戦場ヶ原、蕩れ!
    • srvrguy on GitHub
    • @motokochan on Twitter
    • Nekomusume Moe
Re: Simple Audio Video Embedder 1.0.9 (Oct 4) 50+ Video Sites supported!
« Reply #296 on: October 20, 2010, 08:43:34 PM »
searchgr, remove everything from &feature and past.
Motoko-chan
Director, Simple Machines

Note: Unless otherwise stated, my posts are not representative of any official position or opinion of Simple Machines.


Offline goforit

  • Semi-Newbie
  • *
  • Posts: 80
Re: Simple Audio Video Embedder 1.0.9 (Oct 4) 50+ Video Sites supported!
« Reply #297 on: October 21, 2010, 09:19:10 PM »
hi, thank you for this mod, it works great ...however please could you add a feature to include video clips from this site ... i wanted to add this video to my site but it will not show.


http://video.foxbusiness.com/v/4229486/dierks-bentley-performs-senor-tales-of-yankee-power/

Offline supadupajack

  • Semi-Newbie
  • *
  • Posts: 12
Re: Simple Audio Video Embedder 1.0.9 (Oct 4) 50+ Video Sites supported!
« Reply #298 on: November 04, 2010, 01:49:45 AM »
I have tried without success to install your mod on our SMF 2.0 RC3 board.
I manually parsed the files and made all modifications per the instructions and pushed files to the server yet I am still unable to find it in the admin.

I did find these two errors in the error log:

Any suggestions would be greatly appreciated.

Undefined index: mediapro_settings
Sources/Admin.php
Line: 239

Undefined index: mediapro_settings
Admin.php
Line: 232

Thanks!

Online vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 21,618
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Simple Audio Video Embedder 1.0.9 (Oct 4) 50+ Video Sites supported!
« Reply #299 on: November 04, 2010, 10:32:45 AM »
Sounds like you are missing a language string copy the text from themes/default/languages/modifications.english.php to themes/default/languages/modifications.youlanguage.php
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