How to use tag else [video=url] (without width, height and etc.)

Comments

Stan.Ezersky’s picture

I have changed function function video_filter_process:

function video_filter_process($text, $format = -1) {
  if (preg_match_all('/\[video(\:(.+))?( .+)?\]/isU', $text, $matches_code) || preg_match_all('/\<video\>((.+))?( .+)?\<\/video\>/isU', $text, $matches_code)) {
..........
}

And I have an option <video>http://www.youtube.com/watch?v=xmOOGeZE-aE</video> now.
Profit!

benanne’s picture

blackdog’s picture

Hmm. Wouldn't be too hard to add a setting for this I suppose. We could offer a choice of say three tags, [video:], and perhaps [media:], and maybe a custom setting. This setting would also have to go into the editor support obviously. If anyone cares to work it, that would be great!

minnur’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

Closing this outdated ticket. D6 version is no longer supported. Please re-open if you still think this is a good idea to consider.