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.
Tags: plugin, viddler, video-comments, wordpress

April 10th, 2008 at 4:16 pm
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.
April 10th, 2008 at 4:24 pm
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.
April 16th, 2008 at 11:03 am
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…
April 16th, 2008 at 11:08 am
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.
April 16th, 2008 at 11:36 am
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…
April 16th, 2008 at 12:24 pm
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.
April 16th, 2008 at 12:32 pm
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.
April 16th, 2008 at 2:28 pm
ok, explain those variables to me?
April 16th, 2008 at 2:40 pm
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?
April 16th, 2008 at 2:42 pm
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.
April 16th, 2008 at 6:08 pm
I sent you an email mate.
April 18th, 2008 at 12:36 pm
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…
May 5th, 2008 at 3:10 pm
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!