Copyright © 2011 Kaltura Inc.
All Rights Reserved. Designated trademarks and brands are the property of their respective owners.
Use of this web site constitutes acceptance of the Terms of Use and Privacy Policy.
EduVideo.org
Hi,
Is it possible to have/to open the Uploader in a page instead of for now: from player or from admin. How can I do so?
Thank you.
Yes. Exactly what I meant. I would like to embed the Uploader into the Wordpress page so that any user can upload the file into the site. Once uploaded, a new post will be created with the file embedded inside.
As far as I know there isn't an out-of-the-box solution for what you want to do, but it shouldn't be that hard to achieve.
You'd need to create a new page (which will be your "uploading" page). You'd then need to create a custom template for that page which would have the KCW embedded into it.
The tricky part will be the next section. Once the KCW has completed it's job (i.e. the user has uploaded content) you'd then need to write a new page in PHP that creates a new post with the Kaltura Player embedded inside.
This shouldn't be THAT hard really... Have a look at the Wordpress source: /wordpress/wp-admin/post-new.php
If anyone has a better solution, then please feel free to chime in! I'm just thinking on the spot...
how do you embed the uploader? I myself am not in need of it auto posting. I would like to review them first and then I will post...I just need capabilities of public upload
Hi,
Take a look at this guide: http://www.kaltura.org/kaltura-contributor-wizard-kcw-website-integratio...
Ok heres what I am trying to do.
I got wp 2.92 with mingle a social networking plug in.
Ok i had problems with the all-in-one-video-pack not working but I got it working now.
I created a custom player in the studio and would like that to be displayed as the from the uploaded videos and video comments. There is 2 buttons on the player that don't work and I need the working, 1 remix and 2 upload. They do not work.
Also I want front end posting with the remix and upload embedded into a wordpress page.
I have a plugin called quickpress widget, so how can I make media-upload.php pass into quickpress.php.
Heres the code.
Theres a code in posts-form.php that lets the user post...
------------------------------------------------------------------------------------------------------
<?php
$user = get_userdata( $current_user->ID );
?>
media-upload.php located in /wp-admin/
------------------------------------------------------------------------------------------------------
<?php
$user = get_userdata( $current_user->ID );
?>
<?php
/**
* Manage media uploaded file.
*
* There are many filters in here for media. Plugins can extend functionality
* by hooking into the filters.
*
* @package WordPress
* @subpackage Administration
*/
/** Load WordPress Administration Bootstrap */
require_once('admin.php');
if (!current_user_can('upload_files'))
wp_die(__('You do not have permission to upload files.'));
wp_enqueue_script('swfupload-all');
wp_enqueue_script('swfupload-handlers');
wp_enqueue_script('image-edit');
wp_enqueue_script('set-post-thumbnail' );
wp_enqueue_style('imgareaselect');
@header('Content-Type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset'));
// IDs should be integers
$ID = isset($ID) ? (int) $ID : 0;
$post_id = isset($post_id)? (int) $post_id : 0;
// Require an ID for the edit screen
if ( isset($action) && $action == 'edit' && !$ID )
wp_die(__("You are not allowed to be here"));
if ( isset($_GET['inline']) ) {
$errors = array();
if ( isset($_POST['html-upload']) && !empty($_FILES) ) {
// Upload File button was clicked
$id = media_handle_upload('async-upload', $_REQUEST['post_id']);
unset($_FILES);
if ( is_wp_error($id) ) {
$errors['upload_error'] = $id;
$id = false;
}
}
if ( isset($_GET['upload-page-form']) ) {
$errors = array_merge($errors, (array) media_upload_form_handler());
$location = 'upload.php';
if ( $errors )
$location .= '?message=3';
wp_redirect( admin_url($location) );
}
$title = __('Upload New Media');
$parent_file = 'upload.php';
require_once('admin-header.php'); ?>
<?php screen_icon(); ?>
<?php wp_nonce_field( 'new-post' ); ?>
<?php media_upload_form(); ?>
jQuery(function($){
var preloaded = $(".media-item.preloaded");
if ( preloaded.length > 0 ) {
preloaded.each(function(){prepareMediaItem({id:this.id.replace(/[^0-9]/g, '')},'');});
}
updateMediaForm();
post_id = 0;
shortform = 1;
});
Post Title:
Tag it?
<?php wp_nonce_field('media-form'); ?>
" />
<?php
include('admin-footer.php');
} else {
// upload type: image, video, file, ..?
if ( isset($_GET['type']) )
$type = strval($_GET['type']);
else
$type = apply_filters('media_upload_default_type', 'file');
// tab: gallery, library, or type-specific
if ( isset($_GET['tab']) )
$tab = strval($_GET['tab']);
else
$tab = apply_filters('media_upload_default_tab', 'type');
$body_id = 'media-upload';
// let the action code decide how to handle the request
if ( $tab == 'type' || $tab == 'type_url' )
do_action("media_upload_$type");
else
do_action("media_upload_$tab");
}
?>
------------------------------------------------------------------------------------------------------------------------
And heres the code from post-form.php
------------------------------------------------------------------------------------------------------------------------
<?php
$user = get_userdata( $current_user->ID );
?>
/">
<?php wp_nonce_field( 'new-post' ); ?>
Post Title:
Hi! Whatcha up to?
Tag it?
_________________________________________________________________________________________________________________
So if anyone can help me out it would be highly appreciated.
Socialize in Hi-Def!!! http://www.seemehd.com
Sorry, I'm a little confused as to what you mean exactly...
Are you asking if you can embed the Kaltura Media Uploader/Importer - Contribution Wizard (KCW) into standard Wordpress page, so that anyone visiting your site can easily upload content directly from the page?