• [MOD] Media sites v1.11.1 (2010-12-22) 5 0 5 1
Currently:  

Author Topic: [MOD] Media sites v1.11.1 (2010-12-22)  (Read 350908 times)

0 Members and 1 Guest are viewing this topic.

Offline waynenort

  • Newbie
  • *
  • Posts: 21
    • View Profile
Re: [MOD] Media sites v1.5.6 (2009-06-20)
« Reply #105 on: August 26, 2009, 02:54:32 PM »
Media site mod works perfect along with disabling the video upload (eg youtube) for registered users thanks to the forum link V@no kindly provided in my last post.

I'm trying to get the website called http://www.playsportstv.com to play their videos in this mod as well. This is one embed that playsportstv.com provide to put the player and .flv on a website:
Code: [Select]
<object width="480" height="411" id="delve_player718925o" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"><param name="movie" value="http://assets.delvenetworks.com/player/loader.swf"/><param name="wmode" value="window"/><param name="allowScriptAccess" value="always"/><param name="allowFullScreen" value="true"/><param name="flashvars" value="playerForm=55b3958c3abb4c7ca117adf1f1962024&mediaId=cdfd4e5d31f543cb9f5e324e74275fac"/><embed src="http://assets.delvenetworks.com/player/loader.swf" name="delve_player718925e" wmode="window" width="480" height="411" allowScriptAccess="always" allowFullScreen="true" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer" flashvars="playerForm=55b3958c3abb4c7ca117adf1f1962024&mediaId=cdfd4e5d31f543cb9f5e324e74275fac"></embed></object><p><a href="http://www.playsportstv.com//basketball/basketball-dribbling_keep-away-drill">Basketball Dribbling: Keep Away Drill</a></p>>
This is in the browser line:
Code: [Select]
http://www.playsportstv.com/basketball#basketball-dribbling_keep-away-drill
So this is how I adapted it to the 4images Media Site mod. The playsports url uploads to my website and plays the video.

edit: Unfortunately it plays only the first video in basketball menu no matter which basketball playsports url is uploaded and thumbnail doesn't display.  :oops:

V@no: Heeeeelp.....


Thanks, Wayne
 
Step1: Create playsports.html
Code: [Select]
<object
  width="{if image_width}{image_width}{endif image_width}{ifno image_width}480{endifno image_width}"
  height="{if image_height}{image_height}{endif image_height}{ifno image_height}411{endifno image_height}"
>
  <param name="movie" value="http://assets.delvenetworks.com/player/loader.swf" />
  <param name="allowFullScreen" value="true" />
  <param name="AllowScriptAccess" VALUE="always" />
  <param name="bgcolor" value="#000000" />
  <param name="flashVars" value="i={media_id}&amp;playerForm=55b3958c3abb4c7ca117adf1f1962024&mediaId=e726e57866a64833ad01459b5a4d14b9" />

  <embed
    src="http://assets.delvenetworks.com/player/loader.swf"
    type="application/x-shockwave-flash"
    width="{if image_width}{image_width}{endif image_width}{ifno image_width}480{endifno image_width}"
    height="{if image_height}{image_height}{endif image_height}{ifno image_height}411{endifno image_height}"
    allowFullScreen="true"
    AllowScriptAccess="always"
    bgcolor="#000000"
    flashVars="i={media_id}&amp;playerForm=55b3958c3abb4c7ca117adf1f1962024&mediaId=e726e57866a64833ad01459b5a4d14b9"
  ></embed>
</object>

Step2(a): media_sites.php change
Find
Code: [Select]
$media_sites = array(and insert below
Code: [Select]
 "playsports"  => array("#^http://(www\.)?playsportstv\.com/(.*)#i",
                            4,
                            "http://assets.delvenetworks.com/player/loader.swf",
                            null,
                            MEDIA_BBCODE_YES,
                            "http://www.playsportstv.com",
                            "", //works
                    ), //no autoplay

Step2(b): media_sites.php change
Find  
Code: [Select]
// BEGIN MEDIA CUSTOM FUNCTIONSand insert below
Code: [Select]
//playsportstv.com
function media_sites_custom_playsports($url, $match, $key, $val, $thumb = 0)
{
  $return = media_sites_common($url, $match, $key, $val);
  if ($thumb)
  {
    $patern = '#<link rel="videothumbnail" href="([^"]+)" type="([^"]*)"\s*/>#im';
    if ($result = media_sites_fetch($match[1], $patern, array(1, 2)))
    {
      $return['thumb'] = $result[0][1];
    }
  }
  return $return;
}
and in the ACP Valid file extensions I inserted playsports,

Thanks, Wayne
« Last Edit: August 26, 2009, 11:58:23 PM by waynenort »

Offline Sebas Bonito

  • Sr. Member
  • ****
  • Posts: 271
  • Sebas Bonito
    • View Profile
Re: [MOD] Media sites v1.5.6 (2009-06-20)
« Reply #106 on: August 26, 2009, 03:16:27 PM »
Has anyone an idea for mtv german's videosection?

Offline live@ct

  • Sr. Member
  • ****
  • Posts: 348
    • View Profile
Re: [MOD] Media sites v1.5.6 (2009-06-20)
« Reply #107 on: September 14, 2009, 07:09:07 PM »
How can I specified the size of the video?

I want the default size to use for the video category 500 pixels, other size for the coments like 300 pixels width and for other description and additional fields 200 pixels width

thanks for your help
« Last Edit: September 14, 2009, 07:20:53 PM by live@ct »
Existen 10 tipos de personas, los que entienden el codigo binario y los que no.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] Media sites v1.5.6 (2009-06-20)
« Reply #108 on: September 15, 2009, 01:46:46 AM »
you can specify the default sizes for comments in media_sites.php:
define("MEDIA_BBCODE_WIDTH"380); //force use this width in comments; 0 = use default
define("MEDIA_BBCODE_MAX_WIDTH"500); //use this max width in comments; if width specified in the url but it smaller then this number, the url width will be used otherwise this number will be used; 0 = use default
define("MEDIA_BBCODE_HEIGHT"250); //force use this height in comments; 0 = use default
define("MEDIA_BBCODE_MAX_HEIGHT"500); //use this max height in comments; 0 = use default

the default size in details page can be changed in media templates. As of descriptions (it also can be used in details page) you can specify the width/height in the url itself, see Tweak 3
« Last Edit: September 15, 2009, 03:16:26 AM by V@no »
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] Media sites v1.5.7 (2009-10-13)
« Reply #109 on: October 13, 2009, 04:45:47 PM »
just very quick update: fixed rutube.ru

Redownload media_sites.zip package (attached to first post) or

In includes/media_sites.php find:
    "media_id_hash" => $match[3],
    
"media_dl" => "http://video.rutube.ru/".$match[3],


Replace it with:
    "media_id_hash" => $match[4],
    
"media_dl" => "http://video.rutube.ru/".$match[4],
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Kaliha

  • Newbie
  • *
  • Posts: 21
    • View Profile
Re: [MOD] Media sites v1.5.7 (2009-10-13)
« Reply #110 on: October 14, 2009, 07:01:34 PM »
thnx for this update, RuTube is work fine. I have one question :how can I use the standard preview, but not automatically generated? I used highslide slide show, and preview for mediasites is not work correctly. This is my site trainpix.org.ua, first image (video) for example.
Sorry for my english, i use google translate )

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] Media sites v1.5.8 (2009-10-14)
« Reply #111 on: October 15, 2009, 02:43:28 AM »
Fixed auto thumbnail on upload for rutube.ru

Either re-download attached to the first post media_sites_v1.5.8.zip

or

in includes/media_sites.php
find:
Code: [Select]
   $patern = '#<DIV class="player" id="pid"><IMG src="([^"]+)" border=0 alt="[^"]*"></DIV>#im';
    if ($result = media_sites_fetch($match[1], $patern, array(1)))
    {
      $return['thumb'] = $result[0][1];

Replace with:
Code: [Select]
   $patern = '#image=([a-z0-9%.]+'.preg_quote($match[4], "#").'[^&]+)&#i';
    if ($result = media_sites_fetch($match[1], $patern, array(1)))
    {
      $return['thumb'] = urldecode($result[0][1]);

@Kaliha:
Sorry, didn't understand your question, but I hope v1.5.8 is what you've asked for :)
« Last Edit: October 15, 2009, 03:28:10 AM by V@no »
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline AKIN

  • Full Member
  • ***
  • Posts: 121
    • View Profile
    • Resim
Re: [MOD] Media sites v1.5.8 (2009-10-14)
« Reply #112 on: October 17, 2009, 04:14:08 PM »
hi.
very nice mod. thans V@no.
www.izlesene.com and http://video.mynet.com/ how do add ?

izlesene.com embed codes...
hi.
very nice mod. thans V@no.
www.izlesene.com and http://video.mynet.com/ how do add ?

video.mynet.com embed codes...
Quote
<embed src='http://video.mynet.com/gagarino/Canli-yayinda-birbirlerine-girdiler/386916.swf'   type='application/x-shockwave-flash' wmode='transparent' allowfullscreen='true'width='400' height='334'></embed>


<embed src='http://video.mynet.com/ismvdo/Kedini-yikildigi-an/385268.swf'   type='application/x-shockwave-flash' wmode='transparent' allowfullscreen='true'width='400' height='334'></embed>



video.mynet.com embed codes...
Quote
<embed src='http://video.mynet.com/gagarino/Canli-yayinda-birbirlerine-girdiler/386916.swf'   type='application/x-shockwave-flash' wmode='transparent' allowfullscreen='true'width='400' height='334'></embed>


<embed src='http://video.mynet.com/ismvdo/Kedini-yikildigi-an/385268.swf'   type='application/x-shockwave-flash' wmode='transparent' allowfullscreen='true'width='400' height='334'></embed>


Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] Media sites v1.6 (2009-10-17)
« Reply #113 on: October 18, 2009, 03:42:35 AM »
Updated to v1.6:
Quote from: Change log for v1.6
- Added: izlesene.com (no autoplay)
- Added: video.mynet.com
- Added: videos.onsmash.com
- Added: gametrailers.com
- Added: gamespot.com
- Fixed: break.com auto thumbnails didn't work
- Fixed: MEDIA_THUMB constant was ignored

To upgrade re-do Step 1 and Step 4
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline e3lan

  • Newbie
  • *
  • Posts: 15
    • View Profile
Re: [MOD] Media sites v1.6 (2009-10-17)
« Reply #114 on: November 04, 2009, 04:42:37 PM »
How do I add two links ?
xxx: salloumixxx:  
and
xxx: niceq8i. tv/videos/1095/

Thanks  :D


Offline e3lan

  • Newbie
  • *
  • Posts: 15
    • View Profile
Re: [MOD] Media sites v1.6 (2009-10-17)
« Reply #115 on: November 14, 2009, 02:18:02 AM »
very nice mod
salloumi.com

how do add ?


Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] Media sites v1.6 (2009-10-17)
« Reply #116 on: November 14, 2009, 02:26:41 AM »
very nice mod
salloumi.com

how do add ?

No clue. I'm getting this message when trying access the site:
Quote
Salloumi is unavailable in UNITED STATES
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline e3lan

  • Newbie
  • *
  • Posts: 15
    • View Profile
Re: [MOD] Media sites v1.6 (2009-10-17)
« Reply #117 on: November 14, 2009, 03:32:43 PM »
Thank you, Sir, and I hope to solve the problem   :cry:

Offline Sebas Bonito

  • Sr. Member
  • ****
  • Posts: 271
  • Sebas Bonito
    • View Profile
Re: [MOD] Media sites v1.6 (2009-10-17)
« Reply #118 on: November 23, 2009, 03:02:19 PM »
Take a look. Would be nice to assamble this into this mod  :)

http://www.youtube.com/direct

Offline jacktheblack

  • Pre-Newbie
  • Posts: 2
    • View Profile
Re: [MOD] Media sites v1.6 (2009-10-17)
« Reply #119 on: November 27, 2009, 11:10:00 AM »
really appreciate it man. This is what I want and looking for :)