April 10th, 2008

Viddler’s Wordpress 2.5 plugin version 1.1 beta 1

Now you might understand why the links and notes have died down here on my site lately - it is because I’ve been hard at work getting Viddler’s video commenting plugin, the one we tested here on my site, updating it to be compatible with Wordpress 2.5.

We didn’t stop at just squashing a few bugs, we added two very big features to the plugin.

In addition to the ever-popular video commenting portion, we’ve also added two Wordpress administration areas to the plugin that add features to your Wordpress dashboard, and to the Add media panels.

If you are using Wordpress 2.5, give it a spin, and then comment on The Viddler Lab with your feedback.

Source: Help test our Wordpress 2.5 plugin: Version 1.1 Beta 1.

13 Responses to “Viddler’s Wordpress 2.5 plugin version 1.1 beta 1”

  1. David Says:

    Nice plugin Colin, just one question: how can I choose the size of my embed video player with just that snippet of code in the editor?

    I used Viddler for a french project for http://www.epuar.com and embed video are not default size.

  2. Colin Devroe Says:

    The first number is the width, the second number is the height. See the readme.txt in the instructions or watch the video demo at the bottom of the post linked to above for more information.

  3. Mike Mulligan Says:

    Awesome plugin mate! You have created the first (and only, as far as I can tell) plugin that adds to the WP 2.5 Media Uploader, stellar.

    Actually, I need your help. I am writing a plugin (not a competing plugin) that needs to add to this menu as well, but there is no documentation on how to go about doing this. And no one on the WP Support forums seems to want to help.

    Do you have any guidance?

    How did you figure it out? Where did you figure it out? What did you learn? Everything I have tried to do (learning by your code, actually) has failed.

    About to pull my hair out…

  4. Colin Devroe Says:

    Mike: I will be writing up what I learned during this process as soon as I can. But I’m more than willing to help you out, as I had to read each line of code one-by-one.

    Where would you like your button to appear? Lets start there.

  5. Mike Mulligan Says:

    Yeah, I tried reading through media.php, I understood a bit of it, but obviously not enough.

    I want it to appear under images (are you familiar with SmugMug?). I got as far as making the tab appear:

    // Add SmugWP to the Media section.
    function add_sWPmedia($array) {
    $array['smugwp'] = ‘Your SmugMug’;
    return $array;
    }

    // WordPress Hooks.
    add_action(’init’, ’sWP_ini’);
    add_filter(’media_upload_tabs’,'add_sWPmedia’);

    This makes a tab appear in the right spot, and (from what I gather) assigns ’smugwp’ as the function in charge of displaying the content of that tab (actually, media_upload_smugwp) correct?

    Unfortunately, I have that function echo “hello” and I still get nothing. At all…

  6. Mike Mulligan Says:

    I have all of the back-end coded. Everything. I just need a way to display it to the user.

    I was going to do it myself with GreyBox script, but I upgraded to 2.5 to find this nugget of gold, and I want to use it. But i can’t figure it out.

  7. Colin Devroe Says:

    Mike: You’re part way there. I don’t think you need the init action (unless you are doing something I am not seeing).

    Your media_upload_smugwp should look like this though.

    function media_upload_smugwp() {
    return wp_iframe( ’smugwp_content’, ’smugwp’, $errors, $id );
    }

    Then, for smugwp_content, you can do virtually whatever you want to appear inside of the iFrame that is created. I really hope this helps you.

  8. Mike Mulligan Says:

    ok, explain those variables to me?

  9. Mike Mulligan Says:

    Most of your functions in relation to the media tab send and receive these variables? If this nesicary? Even if they are not used directly in the script?

    Example:

    wp25adminheader($activetab=’login’,$type,$errors,$id)

    $type = (in my case) smugwp
    $errors = ???
    $id = ???

    But do I still need to send and accept these variables in all functions in relation to these tabs?

  10. Mike Mulligan Says:

    Also, I should have asked this first, may I use/adapt some of your code? Nothing that has to do with data or Viddler, just display.

  11. Mike Mulligan Says:

    I sent you an email mate.

  12. Mike Mulligan Says:

    Colin,
    Unfortunately, it didn’t. I have done what you suggested, but it still won’t display anything. I have emulated almost exactly what you had done in your plugin… It’s bizzar.

    Also, kinda which I could edit comments here… It kind of looks like I’m a bit of a stalker, with all these entries…

  13. Mark Says:

    This is a great plugin however I am getting an error message when I enter my username in the media gallery to look for videos that i have uploaded to viddler. The error reads:

    Warning: Invalid argument supplied for foreach() in /home/penny/public_html/wp-content/plugins/viddlercomments/viddlercomments.php on line 541

    any ideas what this could be and how to fix it. Any help is much appreciated!

Leave a Reply