----------------- [ Tweaks ] -----------------Tweak 1You can turn on/ff default autoplay by changing in
includes/media_sites.php:
define("MEDIA_AUTOPLAY", 1); //autoplay videos by default?
Tweak 2You can override the default autoplay by adding into the media site URL query:
autoplay=1 (force enable autoplay) or
autoplay=0 (force disable autoplay)
i.e.
http://www.youtube.com/watch?v=L5EpJuK91zE&autoplay=0
Tweak 3You can specify width/height of the video by adding into media URL query
width=NN and
height=NN (the same way as in
Tweak 2)
Tweak 4Since version 1.4 you can use
[media]media site url[/media] BBCode tags in comments and image descriptions (example:
[media]http://www.youtube.com/watch?v=M-yGsP9PBrc[/media])
This feature is controlled in includes/media_sites.php by:
define("MEDIA_BBCODE", 1); //use media sites in bbcode?
To disable, replace 1 with 0
Also, each individual media site can be disabled or enabled in bbcode
MEDIA_BBCODE_YES with
MEDIA_BBCODE_NO in it's array description.
As an example this is array description for "liveleak" media site:
"liveleak" => array("#^http://(www.)?liveleak.com/view.*[?&]i=([^&]+)#i",
2,
"http://www.liveleak.com/e/{ID}",
null,
MEDIA_BBCODE_YES,
"",
),
Tweaks 1,2,3 also apply to BBCode.
----------------- [ Troubleshooting ] ------------------ 404 error thumbnails
If it shows you 404 error thumbnails instead of normal thumbnails, check Step 2.x, specifically Step 2.1 and Step 4
----------------- [ Version history ] -----------------v1.11.1 (2010-12-22) (re-do
Step 1)
- Fixed: thumbnails were not created when original image is smaller then max dimentions set in 4images
- Fixed: thumbnails were not created for rutube.ru
v1.11 (2010-07-14) (more info
here)
- CHANGED: thumbnail creation now using create_thumbnail() 4images function, not resize_image()
- ADDED: mp3upload.ca support
- ADDED: zippyshare support (audio only)
- REMOVED: myspacevideo support
v1.10 (2010-07-04) (more info
here)
- ADDED: {media_ext} and {media_ext_icon} tags can be used to display file extension icon
- ADDED: vevo.com support (no autoplay)
- ADDED: megavideo "download" type urls (d= instead of v= url query)
- FIXED: in some cases fetching thumbnail could fail and corrupt already retreved data of the video
- FIXED: rutube.ru thumbnail creation
v1.9 (2010-02-13) (more info
here)
- Fixed: wrong video or nothing showed after upload (added step 5.2)
- Added: work around if host disabled allow_url_fopen, which prevents downloading thumbnails
- Added: youtube playlist support
- Added: aniboom.com support
- Added: vimeo.com support
- Added: tm-tube.com support
v1.8 (2009-12-18) (more info
here)
- Added: googlewave (experimental, must have google wave account to view)
- Added: 220.ro (video links only!)
- Added: trilulilu.ro (video links only!)
- Added: funnyordie.com
- Added: dailyhaha.com (no autoplay)
- Added: megavideo.com (no autoplay)
v1.7 (2009-11-28) (more info
here)
- Added: smotri.com
- Added: collegehumor.com
v1.6 (2009-10-17) (more info
here)
- 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
v1.5.8 (2009-10-14) (more info
here)
- Fixed: rutube.ru auto thumbnail didn't work
v1.5.7 (2009-10-13) (more info
here)
- Fixed: rutube.ru didn't work
v1.5.6 (2009-06-20) (re-do
Step 1)
- Added: optional
Step 2.7- Changed: mod's constants now can be copied into includes/constants.php
- Changed: template tag {is_media_site} now contains the ID of media site. can be used to display icons: {if is_media_site}<img src="icons/{is_media_site}.gif">{endif is_media_site}
v1.5.5 (2009-06-12) (re-do
Step 1)
- Added: new template tag
{is_media_site} can be used as conditional tag i.e.
{if is_media_site}this is a media site{endif is_media_site}v1.5 (2009-03-21) (more info
here) (added
Step 5.1)
- Fixed: problem with RSS feed when media site was used in a comment
- Fixed: sometimes additional options in the URL didn't work (width/height/autoplay)
- Fixed: metacafe.com didn't obey autoplay url option
- Fixed: mtv.com didn't obey autoplay options
- Added: width/height limit for BBCode
- Added: addresses to media sites home page
- Added: control for autoplay in ACP
- Added: sevenload.com support
- Added: auto thumbnails for youtube, metacafe, stupidvideos, yahoovideo, myspacevideo, liveleak, spikedhumor, myvideo.de, rutube.ru, dailymotion.com, mtv.com
- Changed: dailymotion.com doesn't require address from <embed> anymore
- Changed: break.com doesn't require address from <embed> anymore
- Changed: hulu.com doesn't require address from <embed> anymore
v1.4 (2009-03-11) (more info
here) (added
Step 2.6 and
Step 5)
- Added fullscreen support for mtv.com
- Added ability use entire <embed> code to "upload" media sites
- Added bbcode support
v1.3 (2009-02-16)
- fixed spikedhumor.com
- added dailymotion.com (must use address from embed code)
- added mtv.com
- changed site list array to use "generic" (common) function to process most media sites.
v1.2 (2009-02-11)
- fixed unable use custom thumbnails (added
Step 2.4 and
Step 2.5)
- fixed myvideo.de
- added multilingual youtube support
- added rutube.ru
v1.1 (2009-02-02)
- added myvideo.de support
v1.0 (2009-02-01)
- first release (9 media sites supported)