Post-Thumb revisited : [english] displaying video & mp3[/english][french] afficher des vidéos & mp3[/french]
[english]
So, the question here will be: how to display video and mp3?
Requirements
- wordTube needs to be installed.
- All media should be loaded and setup in wordTube (Admin panel->Manage->Media center)
- Each video/mp3 should have a picture link to it in wordTube (Admin panel->Manage->Media center).
- Playlist should also be managed in wordTube.
- You can control the general appearance of the flash player in wordTube options. However, size will be overriden with Post-Thumb.
Post-Thumb Options
- Use highslide needs to be checked (Admin Panel->Options->Post-Thumb->Javascript settings)
- Use highslide in posts needs to be checked (Admin Panel->Options->Post-Thumb->Javascript settings)
- Detect wordTube needs to be checked (Admin Panel->Options->Post-Thumb->Javascript settings)
- The options which follow this last one let you set up how you want to show your media: size of the thumbnail, size of the expand frame, name of the thumbnails. These have default values you can change later on.
To display inside posts
With these settings, Post-Thumb will automatically replace any media found inside each post with a thumbnail and what’s needed to expand a popup frame.
To display on the sidebar
In the sidebar, you can display a video/mp3 for each post (starting with most recents) or a specific wordTube media or playlist.
To display a video/mp3 for the most recent posts:
<?php get_recent_medias(); ?>
To display a wordTube media:
<?php echo get_WTMedia(’1′); ?>
The full syntax for this will be: get_WTMedia(mediaId, PT arguments, play width, play height);
Example: <?php echo get_WTMedia(’1′, ‘altappend=WT_&width=80&HEIGHT=60&KEEPRATIO=0′, 640, 480); ?>
This will display a 80×60 thumbnail for the media, save thumbnail as WT_image.xxx, and play video/mp3 with a size of 640×480.
To display a wordTube playlist:
<?php echo get_WTPlaylist(’1′); ?>
The full syntax for this will be: get_WTPlaylist(playlistId, PT arguments, play width, play height);
Example: <?php echo get_WTPlaylist(’1′, ‘altappend=WT_&width=80&HEIGHT=60&KEEPRATIO=0′, 640, 480); ?>
This will display a 80×60 thumbnail for each media, save thumbnails as WT_image.xxx, and play video/mp3 with a size of 640×480.
[/english]
[french]
Bon, la question ici sera : comment afficher des vidéos et des mp3 ?
Pré-requis
- wordTube doit être installé.
- Tous les media doivent être chargés et installation dans wordTube (Admin panel->Manage->Media center)
- Chaque video/mp3 doit avoir une image qui lui est attachée dans wordTube (Admin panel->Manage->Media center).
- Les Playlist doivent également être gérées dans wordTube.
- Vous pouvez définir l’apparence général du lecteur flash dans les options de wordTube. Cependant, les tailles seront définies dans Post-Thumb.
Options Post-Thumb
- Utiliser highslide doit être cochée (Admin Panel->Options->Post-Thumb->Javascript settings)
- Utiliser highslide dans les articles doit être cochée (Admin Panel->Options->Post-Thumb->Javascript settings)
- Detect wordTube doit être cochée (Admin Panel->Options->Post-Thumb->Javascript settings)
- Les options qui suivent cette dernière vous permettent de définir comment vous voulez voir apparaître vos media : taille de la miniature, taille de lecture, nom de la miniature. Elles ont des valeurs par défaut que vous pourrez changer plus tard (ou pas).
Pour afficher dans les articles
Avec les options définies ci-dessus, Post-Thumb va automatiquement remplacer les medias contenus dans les articles par une miniature et ce qu’il faut pour pouvoir ouvrir la lecture dans une fenêtre popup.
Pour afficher dans la sidebar
Dans la sidebar, vous pouvez afficher une vidéo/mp3 pour chaque article qui en contient une (en commençant par le plus récent) ou un media ou une playlist wordTube.
Pour afficher les derniers articles :
<?php get_recent_medias(); ?>
Pour afficher un media wordTube :
<?php echo get_WTMedia(’1′); ?>
La syntaxe complète sera : get_WTMedia(mediaId, PT arguments, play width, play height);
Exemple: <?php echo get_WTMedia(’1′, ‘altappend=WT_&width=80&HEIGHT=60&KEEPRATIO=0′, 640, 480); ?>
Cela affichera une miniature de 80×60 pour le media, la sauvegardera avec le nom WT_image.xxx, et permettra sa lecture avec une taille de 640×480.
Pour afficher une playlist wordTube :
<?php echo get_WTPlaylist(’1′); ?>
La syntaxe complète sera : get_WTPlaylist(mediaId, PT arguments, play width, play height);
Exemple: <?php echo get_WTMedia(’1′, ‘altappend=WT_&width=80&HEIGHT=60&KEEPRATIO=0′, 640, 480); ?>
Cela affichera une miniature de 80×60 pour chaque media, la sauvegardera avec le nom WT_image.xxx, et permettra sa lecture avec une taille de 640×480.
[/french]
Tags: mp3, picture, playlist, post-thumb, thumbnail, tutorial, video, wordTube
décembre 4th, 2007 at 9:02
I am having o much trouble with wordtube, is there anything in youtube to see? Plugin is installed, /pth in place, …Could you please help with a step by step example?
Merci infiniment!
décembre 4th, 2007 at 12:46
I’m not sure I understand what your problem is…
décembre 9th, 2007 at 12:13
I am getting this:
Fatal error: Call to a member function GetWTPlaylist() on a non-object in /mounted-storage/home34b/sub001/sc27969-FHUU/www/wp-content/plugins/alakhnors-post-thumb/lib/post-thumb-main-functions.php on line 126
I first installed the plugin, then went and set the options as above (BTW, I can’t switch to the advanced options tab, I’m getting a javascript error…guess it’s an IE bug).
Then I used the code to display a WordTube playlist in the sidebar straight from this page (and yes, I turned the curly quotes back into normal ones, as I thought it was a problem), but I’m still getting this odd message.
The playlist definitely exists, I have set the preview images for each video, CHMODed the thumbnail folder to 777 and it still doesn’t work.
This is where I’m testing, btw:
http://www.invisible-movement.net/test-strana/
The Page is using a sidebar with nothing else in it, just for the testing purpose.
décembre 9th, 2007 at 14:49
Iva>You probably didn’t check “Use Post-Thumb formatting library in posts” in options.
décembre 9th, 2007 at 15:00
I did so now, but now it results in an empty sidebar:(
décembre 9th, 2007 at 15:49
So now, what you need to use is:
< ?php echo get_WTPlaylist(blabla); ?>
(I will correct the post above)
décembre 9th, 2007 at 18:19
Ah, you also need to check “Replace wordTube media in posts” which is something I should consider changing.
décembre 9th, 2007 at 18:34
I agree that it should be changed and vary from case to case somehow, if my feedback is of any help.
And now it works.
Another suggestion would probably be the obvious one: that video stops after the player is closed. Of course, if it’s possible.
But as said before, I really, really like the idea of a pop-up (or somehow inserted onto a specific page, why not?) player with playlists that can be changed. The best thing I’d seen recently.
avril 9th, 2008 at 2:29
thanks for plugin, perfect