A visible uploader - Kaltura entry as a field type for Wordpress More-fields plug-in

5 replies [Last post]
Joined: 06/16/2009
Points: 21

THE IDEA
My problem was the following, on one hand the end users didn't see right away the button to get the uploader in the WYSIWYG panel, and secondly our wordpress website is centered on videos, which means that every post is expected to have and only one video. Having tenth of users that are not always so advanced with blogging and video, I extended the all-in-one-video plug-in to give a new field type to more-fields. More fields allow you to create custom fields in the "Write" panel, organized into groups, a great way to get a certain systematic with the content.

THE MODIFICATIONS
The file that contains the new type's description is :
./mf_kaltura.php

I've also added a new version of swfobject because for some reasons the version 1.5 in use with the plug-in didn't work for me. I left the old one, and added this one next to it :
./swfobject_2_2.js

Added to ./all_in_one_video_pack.php :
require_once('mf_kaltura.php');

A little readme with some infos :
./readme_morefield_extension.txt

KNOWN ISSUES

If an other item of the form has the same id as the custom field used for Kaltura, the javascript called after the upload might not be able to put the id in the field. This happens especially if the box and the field have the same id, since the box comes first in the file.

So far, only one instance of the uploader can be called, this implies that we can only create one custom field of the type Kaltura media.

While KCW lets you upload multiple file, only the latest one is stored (the loop is already there to store them all, that wouldn't be a big deal I guess).

POSSIBLE IMPROVEMENTS

KCW lets you upload any type of media, it would be great to be able to customize KCW a little bit, take away some options.

Once the video is uploaded, we should hide the uploader, display the video in a player where the user can select the thumbnail. Or an option to delete the current video and get the uploader back.

ATTACHMENT

The code is attached, but I had to rename the file in .txt to be able to upload it. Rename it back before you try to read or extract it. I hope that will work ;-) otherwise let me know.

AttachmentSize
all-in-one-video-pack.txt511.49 KB
Joined: 03/29/2009
Points: 764

The original zip file is attached

AttachmentSize
all-in-one-video-packZip.zip511.49 KB
Joined: 04/05/2009
Points: 354

Nice work!

Joined: 05/27/2009
Points: 23

fantastic plugin! works exactly as advertised

I sent you a pm if you have a moment.

Joined: 06/16/2009
Points: 21

Thanks anointed :-) I'm glad it helped you, I hope I'll get to work some more on it soon.

What do you mean by a pm ???

Have a nice day !

Jonathan

Joined: 05/27/2009
Points: 23

@jobzesage - I'm sorry by pm, I meant that I sent you a private message on these forums, (little envelope next to your name on the very top of the screen next to your name) I had a few questions not pertinent to a thread about the plugin and saw no other way of making contact with you.