forget my last question.
I tried to create my first widget today :)
A quick and dirty way to add this as a widget. Create file with this content.
<?php
/*
Plugin Name: Wordtube Joost Widget Playlist
Version: 0.1 alpha
Plugin URI: http://
Author: Joost
Author URI:
Description: Toont de playlist van gallery nummer 1 (Terre).
*/
function widget_joostwidgetwordtube_register() {
function widget_joostwidgetwordtube($args) {
extract($args);
?>
<?php echo $before_widget; ?>
<?php echo $before_title
. 'Terre Cinema'
. $after_title; ?>
<?php if(function_exists('wt_GetPlaylist')){echo wt_GetPlaylist(1,250,380,"player.swf","playlist");} ?>
<?php echo $after_widget; ?>
<?php
}
register_sidebar_widget('Wordtube show playlist',
'widget_joostwidgetwordtube');
register_sidebar_widget('Terre Cinema','widget_joostwidgetwordtube');}
add_action('init', widget_joostwidgetwordtube_register);
?>
Replace 'Terre Cinema' by something you like to call your widget.
Change wt_GetPlaylist(1,250,380,"player.swf","playlist"). The '1' is de number of the gallery.
Save it to your plugins folder and activate.
It works great for me.
Please note: this widget is not customizable from Admin panel. The gallery number, dimensions and descriptions should be able to be changed from there. But that's for someone else to fix.
enjoy