Hello,
first sorry for my bad english and thank you very much for this very nice module!
I tried to setup myvideo support for your modul but i need a little help with regex...
myvideo.inc
---
function video_filter_myvideo($video) {
video_filter_dimensions($video, 470, 406);
$video['source'] = substr(strstr($video['source'], '/watch/'), 7);
$output = '<object type="application/x-shockwave-flash" width="'.$video['width'].'" height="'.$video['height'].'" data="http://www.myvideo.de/movie/'.$video['source'].'"><param name="movie" value="http://www.myvideo.de/movie/'.$video['source'].'" /><param name="wmode" value="transparent" /><param name="quality" value="high" /></object>';
return $output;
}
---
video_filter.module
i changed the regex to this one, but now the other video platforms are broken.
if (preg_match_all('/\[video(\:(.+))\]/isU', $text, $matches_code)) {
can you help me please?
Greets Maik
Comments
Comment #1
fokkezb commentedHi Maik,
My filter does not allow me to acces MyVideo.de
Please send me the full URL of a MyVideo.de video page and I will add support.
Fokke
Comment #2
fokkezb commentedAlways forget to change state :)
Comment #3
fokkezb commentedNo response would mean no really urgent request I guess :)
Comment #4
catbyte commentedSorry, i'm was very busy the last time.
HPI Savage X 4.6 - Skatepark mit bösem Ende! - MyVideo
http://www.myvideo.de/movie/2947646
Thank you very much!!
Greets from Germany!
Comment #5
ash0815 commented##############################################################
## SNIPPED Description: Video support for MyVideo.de
##
## Files To Edit: [PathToModules]/video_filter/video_filter.codecs.inc
##
## Edit Level: Easy
##############################################################
## Before Adding This SNIPPET To Your File, You Should Back Up All Files Related To This SNIPPET
##############################################################
#
#-----[ OPEN ]------------------------------------------
#
[PathToModules]/video_filter/video_filter.codecs.inc#
#-----[ FIND ]------------------------------------------
#
#
#-----[ AFTER, ADD ]------------------------------------------
#
#
#-----[ FIND ]------------------------------------------
#
#
#-----[ AFTER, ADD ]------------------------------------------
#
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
Maybe somebody can optimise the code.
Vielleicht kann jemand den Code optimieren.
Greets from Germany / Grüße aus Deutschland.
Comment #6
ash0815@drupal.org commentedSee previous post.
Comment #7
blackdog commentedPlease roll a proper patch.
Comment #8
minnur commentedThis is a really old issue however this looks like a good candidate for a new provider to be added into 7.x-3.x-dev and 8.x-1.x-dev
Comment #11
minnur commentedThis has been added to both D7 (7.x-3.x-dev) and D8 (8.x-1.x-dev) versions.
Comment #12
minnur commentedComment #13
minnur commentedComment #14
minnur commented