Wordpress Video Plugin

FOR AN ENGLISH INSTRUCTION PLEASE SCROLL DOWN!

Anzeige/Advertisement

Nachdem ich irgendwann festgestellt habe, dass ich Youtube Videos nicht einfach so auf dieser Seite einbinden kann, habe ich das Youtube Video Plugin von Jörn gefunden und benutzt. Das hat auch bisher tadellos funktioniert. Allerdings nur bei Videos von Youtube. Für Google Videos liefert Jörn gleich ein zweites Plugin ab. Das hat mir aber immer noch nicht gereicht. Schließlich wollte ich ein Video von myvideo.de verlinken.

So kam ich dann auf die Idee das Plugin zu verändern und habe nun eins gebastelt mit dem Videos von Youtube, Google Video, MyVideo und Fishclip in WordPress darstellbar sind. Weitere verwendbare Videoportale werden folgen.

Ihr könnt meine modifizierte Variante des Plugins hier herunterladen. Dann entpackt ihr es einfach in den wp-content/plugins-Ordner und aktiviert es im Backend von WordPress.

Für Wünsche bitte meine To-Do-Liste benutzen!

Die Anleitung findet ihr entweder in der readme Date oder hier: Anleitung.

Update (31.01.2007): Mit der neuen Version von WordPress 2.1 ist es nun möglich zwischen WYSIWYG- und Richtexteditor während des Schreibens umzuschalten. Das Einbetten von Videos funktioniert nun einwandfrei. Ich denke das Plugin wird nicht weiter gebraucht und stelle daher die Entwicklung ein. Sollte jedoch gewünscht werden, daß ich daran weiter arbeite, werde ich es wahrscheinlich machen.

Update (15.02.2007): Auf Grund von Zustimmung und Ermunterung mache ich weiter mit der Entwicklung.

DOWNLOAD

>> Download WordPress-Video-Plugin v. 0.759 (zip) <<

Wenn Ihnen dieses Plugin gefällt, spenden Sie doch bitte über Paypal.

Usage instructions:

Please use the To-Do-Liste for wishes!

For using the plugin please read the readme file or the instruction here: Instruction.

It works with WordPress 3.5!

Update (31.01.2007): With the new version of wordpress 2.1 it is possible to switch between WYSIWYG- and Richtexteditor while you are writing. Embedding videos now works fine. I think, the plugin is not needed anymore and I am stopping developing it. But if there is a need to continue developing, I will do it.

Update (15.02.2007): I will still develope this plugin.

DOWNLOAD

>> Download WordPress-Video-Plugin v. 0.759 (zip) <<

If you like this plugin, please donate via paypal.

Changelog

Anzeige:

936 Kommentare


  1. A super plug-in you’ve created here.
    Will there be an update? Would look for more options! Maybe play YouTube videos in HD. Adjustment of the resolution on YouTube videos.

    Antworten

    1. Yes, there will still update my plugin. Youtube videos work in HD since version 0.753. More Options in the Backend are planed.

      Antworten

  2. Very useful plugin, thank you. Useful as the guy above said for displaying TED videos, something with a bit of substance to them.

    Antworten

  3. Suggestion: please add the video dimensions in the database in a SETTING Menu in WordPress ADMIN, so we can edit them directly in Admin, and so we don’t have to edit videos.php every time the plugin updates. Thank you!

    Antworten




    1. Well there is no possibility to get the embed-code if you are a not registered user. So I can not integrate it now. Send me the embed code and I will try to use it in my plugin.

      Antworten

  4. If I insert the url of a youtube video, the video is not showed. But if I insert the url twice (separated by an Enter) both videos are showed…

    I don´t know why this… please fix it

    Antworten

    1. Please do not enter the URL of the video! You need the ID. e.g. the ID for youtube.com/watch?v=HNF4vk9fdj8 is HNF4vk9fdj8. So write [„youtube id“] (without the „) and it will work.

      Antworten

      1. I´m looking for a plugin to do this…simply enter the url and automatically show the video

        but why entering the complete url the video is showed using this plugin?


  5. The plugin doesn’t appear to be working anymore. When I enter [„youtube id“] the video no longer shows. Instead, all you see in the post is [„youtube id“].

    This only started happening after the most recent WP update.

    Do you have any suggestions?

    Antworten

    1. Please try this:

      * go into the html mode of your editor in WP
      * delete the p tags around the [site id]

      Antworten

  6. I’m sorry, but I couldn’t find the p tags.

    This is what I see in my editor:

    // Youtube Code

    define(„YOUTUBE_WIDTH“, 425); // default width
    define(„YOUTUBE_HEIGHT“, 344); // default height
    define(„YOUTUBE_REGEXP“, „/\/“);
    define(„YOUTUBE_TARGET“, “ „);

    function youtube_plugin_callback($match)
    {
    $tag_parts = explode(“ „, rtrim($match[0], „]“));
    $output = YOUTUBE_TARGET;
    $output = str_replace(„###URL###“, $tag_parts[1], $output);
    if (count($tag_parts) > 2) {
    if ($tag_parts[2] == 0) {
    $output = str_replace(„###WIDTH###“, YOUTUBE_WIDTH, $output);
    } else {
    $output = str_replace(„###WIDTH###“, $tag_parts[2], $output);
    }
    if ($tag_parts[3] == 0) {
    $output = str_replace(„###HEIGHT###“, YOUTUBE_HEIGHT, $output);
    } else {
    $output = str_replace(„###HEIGHT###“, $tag_parts[3], $output);
    }
    } else {
    $output = str_replace(„###WIDTH###“, YOUTUBE_WIDTH, $output);
    $output = str_replace(„###HEIGHT###“, YOUTUBE_HEIGHT, $output);
    }
    return ($output);
    }
    function youtube_plugin($content)
    {
    return (preg_replace_callback(YOUTUBE_REGEXP, ‚youtube_plugin_callback‘, $content));
    }

    add_filter(‚the_content‘, ‚youtube_plugin‘,1);
    add_filter(‚the_content_feed‘, ‚youtube_plugin‘);
    add_filter(‚comment_text‘, ‚youtube_plugin‘);
    add_filter(‚the_excerpt‘, ‚youtube_plugin‘);

    Thanks for your help!

    Antworten

    1. Please do not open the plugin code in your editor! Just open a blogpost with [„youtube id“] inside and search for < p >[„youtube id“]

      Antworten






  7. Hei Oliver

    Your new videos.php works fine. The problem was complete solved.

    Thks for your wonderfull support.

    Alexandre

    Antworten




  8. It doesn’t seem to work me. I’ve tried removing the p tags but the editor just keeps putting them back in? All I get is [sitename id]

    Pat

    Antworten

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert