TubePress

TubePress has moved to TubePress.org!

173 Responses to “TubePress”

  1. spencermjax  on April 5th, 2007

    anyone know if this plugin is available for use without WP?

  2. Marco  on April 6th, 2007

    I don’t know what I’m doing wrong or if this is a bug but it doesn’t seem to want to use playlists. I tried:

    [tubepress mode='playlist',PlaylistValue='B4C728CD77DF6C0F']

    And yet I get the defaults from the config page instead of the playlist I specified. I tried the debug option and it says:

    Here are the custom options that were parsed from that tag string (if any) along with the site URL:

    Array
    (
    [mode] => playlist
    [PlaylistValue] => B4C728CD77DF6C0F
    [site_url] => http://www.eurobands.us/dev
    )

    Which looks good.

    Then further down it says:

    Here is the request that will be generated and sent to YouTube. Click it to see the raw results:
    http://www.youtube.com/api2_rest?method=youtube.videos.list_by_playlist&id=D2B04665B213AE35&dev_id=qh7CQ9xJIIc

    Which is not good. It happily ignores my playlist and fetches the default.

    Any thoughts?

  3. Eric  on April 6th, 2007

    Is there a publicly accessible debug URL that I could use to look at the debugging result?

    My first thought is that you need to de-capitalize the playlistValue word to make it look like this:

    [tubepress mode='playlist',playlistValue='B4C728CD77DF6C0F']

    Also, try using the plain text editor in your post instead of the rich editor. The “>” characters that are sneaking in tells me that somehow some HTML is sneaking into the post.

  4. Darren Mackintosh  on April 13th, 2007

    FANTASTIC plug-in. I have a small problem. Thickbox ISN’T interfering with my theme, but it is throwing up a JavaScript error. when all my thumbs are loaded, it tells me that “tagName is null or not an object”. Any ideas??

  5. Darren Mackintosh  on April 16th, 2007

    The url to view the page is at: http://takuhii.x10hosting.com/youtube-favourites/ (my site BTW)

    regards
    Darren

  6. Darren Mackintosh  on April 16th, 2007

    BTW, the script works fine in Firefox, but not IE7

  7. Tommy  on April 17th, 2007

    It’s not working for me.
    I have it set up for showing my user’s videos.
    In the debug mode the plugin correctly finds one(1) video and it says it will show 1 video.
    Then at step 12 it says “1. PROBLEM!” and then the debugging stops.

    No video is shown.

  8. Eric  on April 17th, 2007

    I’ve confirmed this is a bug. It happens when you try to display a collection with only a single video. I’ve written a fix and will be uploading it shortly…

  9. jian  on April 18th, 2007

    Hi Eric
    First of all,sorry about my poor English.
    It’s an amazing plugin.I can make my own broadcast blog via tubepress.
    It will be better if there was a feature that can list different playlists in different pages via different trigger keywords.
    For example:I could write a page called “P1″,and use the trigger keyword [tubepress page1] to list one of my playlist on youtube.Then write another page called “P2″ and use the trigger keyword [tubepress page2] to list another playlist on youtube.
    That will be cool:)

  10. jian  on April 18th, 2007

    There is a small problem,when the titles of videos on Youtube are Chinese or Japanese,I got broken titles such as “è¾£ç¾?女æ??头大æ??ä¸?对ä¸?æµ·é??” these unusual codes (sorry about my poor Engilsh,I doun’t know what’s that called.)
    Can you tell me how to fix it? THX.

  11. Darren  on April 18th, 2007

    I stand corrected, Tubepress is now interfering with my whole website. The ‘tagName is null or not an object issue’ appears on every page, and prevents other JS’s from executing. I disabled TubePress and the problem vanishes. I’ve had to disable the page until I can figure out what’s going on.

    I’m NOT criticising your work mate, this is a fantastic plugin, and you should keep up the good work. I just think one of my plugings may be conflicting with it (not sure which one yet). This problem seemed to get worse when I was upgraded to Wordpress 2.1.3, if that’s any help.

    Keep up the good work
    Darren

  12. Tommy  on April 18th, 2007

    Confirmed! With two videos in the bank it’s being shown correctly. Thanks!

  13. Eric  on April 18th, 2007

    No offense taken! I appreciate the constructive criticism.

    The other night I looked into your original javascript error and found that it was bailing on a line somewhere deep in prototype.js, which is beyond the scope of what I can debug, unfortunately. I’m really trying to find a replacement for thickbox that doesn’t screw up everyone’s blogs.

    In regards to your new problem, just make sure that you *disable* thickbox COMPLETELY (basically reversing how you enabled it… by editing tubepress.php). Even if tubepress isn’t configured to use thickbox, it will still load up it’s javascript libraries which have wreaked all the havoc. Please try disabling thickbox:

    /wp-content/plugins/tubepress/tubepress.php line 39: $tubepress_enable_thickbox = false;

    and let me know if that brings your site back to life. In the meantime, rest assured I’m looking for a fix for all this thickbox business.

  14. Eric  on April 18th, 2007

    I’m glad it’s working for you temporarily. Thanks again for finding that bug! I’ll be releasing a new version in the next few days with the fix, so stay tuned.

  15. Eric  on April 18th, 2007

    Can you provide a link to the page with the problem so I can take a look at it?

  16. Eric  on April 18th, 2007

    You can do this with the plugin.

    Say you have two playlists with ID’s xxxxxxxx and yyyyyyyyy. On page P1 you could put in a tag that looks like this:

    [tubepress mode='playlist', playlistValue='xxxxxxxx']

    and on page P2 you would write

    [tubepress mode='playlist', playlistValue='yyyyyyyyy']

    Voila. Does that make sense?

  17. JD  on April 18th, 2007

    This is a great plugin and I thank you for the time you put into writing it. One question I had was after uploading new videos to your YouTube account, how long does it usually take for TubePress to pickup on the new video. I had uploaded a video about a half hour ago and still do not see it on my gallery here: http://www.sportech.info/sportech-stuff/youtube-videos

    Thanks for all your help in advance!

  18. Eric  on April 18th, 2007

    Looks like it’s working now? It can definitely take some time for the changes to propagate to all of YouTube’s servers, but I wouldn’t imagine it would be more than a few hours at the absolute most. Typically they show up within about an hour.

  19. Andy  on April 19th, 2007

    First of all, VERY NICE PLUGIN, it looks much more robust than myTube my current youtube plugin, and it even seems like tubepress is actually actively being developed.

    I wanted to share some information I just discovered about the youtube api. I found an undocumented api method which allows you to list a users playlists given a username. Obviously, its a much cleaner way than going to youtube and copying out the funky playlist value and pasting it in a tag [tubepress mode=’playlist’,PlaylistValue=’B4C728CD77DF6C0F’].

    This is the call:
    http://www.youtube.com/api2_rest?method=youtube.users.list_playlists&dev_id=dev_id&user=user

    Detaials:
    http://schwo.com/2007/04/19/undocumented-youtube-api-method/

    Ideally, if I could convince you to steer tubePress in the direction of having a gallery option where all my playlists are displayed by just tumbnails, and then when I click on a playlist thumb it takes me to a gallery for that specific play list. Think FAlbum for youTube.

  20. Eric  on April 22nd, 2007

    Nice find, Andy! I think something like this could definitely be useful in TubePress, but I think I’m going to err on the side of safety and wait until the YouTube gods release the call officially. Thanks for the heads up!

  21. Andy  on April 22nd, 2007

    Fair enough. Looking forward to it.

  22. katarina  on April 23rd, 2007

    hey, great plugin, but I keep getting this result:
    YouTube contacted successfully, but no videos were returned. If you think this is a mistake, please check your configuration or enable debugging mode. See the documentation for more information

    the page is http://riding-shotgun.de/blog/videos/

    thanks

  23. katarina  on April 23rd, 2007

    http://riding-shotgun.de/blog/?page_id=732&tubepress_debug=true

    that is my debugged page btw

  24. Andy  on April 26th, 2007

    Well…I couldn’t wait. I’ve hacked up TubePress a little bit so it now displays a gallery of playlists which when clicked on give you a gallery of videos in that playlist.

    Eric,
    Let me know what you think and when/if you’d like the source code. I’m not completely finished with the changes yet. I’d like to add a permanent “Recent Videos” playlist to the top of the gallery like in FAlbum.

    check out the details: http://schwo.com/2007/04/26/youtube-wordpress-plugin-tubepress/

    Thanks,
    Andy

  25. Dan  on May 1st, 2007

    Hi Eric,
    I have a small problem: after I click on a thumbnail, the selected video is displayed at the top of the page and the title gets pushed to the left/bottom of the video window. This *doesn’t* happen when the videos page is first opened – the title is displayed above the video window, as it should be. Any hints?
    Thanks,
    Dan

  26. Sam  on May 4th, 2007

    Cool plugin, thanks!

    I think function tubepress_showgallery around line 65 should be

    if ( false === strpos($content, '[' . $keyword->value)) return $content;

    otherwise it will miss a keyword at the very beginning of $content (strpos).

  27. Andrew  on May 9th, 2007

    One thought about something you could add to a future version. I have a few of my own videos that I’m currently showcasing with your plugin on my site. But it would be really cool if I could do that AND show a playlist on another page. So instead of making the user pick which of the seven displays to use, allow the user to use up to seven different displays on their site. I know, that’s a big change, but I think there are probably a lot of people like me who have their own content and a list of favorite videos that they’d like to show off, but would like to keep separate.

  28. Eric  on May 10th, 2007

    You’ll be happy to know that you can already do what you’re asking about with the current version (1.2.0) of the plugin.

    Say your trigger word is “tubepress”. To display a gallery with the options you set on the options page, you’d write

    [tubepress]

    in one of your posts. Say on another page you want to show videos of the user “3hough”, play the videos in a popup window, and show the video id under each thumbnail. You’d write this:

    [tubepress mode='user', userValue='3hough', playerLocation='popup', id='true']

    The idea is that the attributes you write in the tag (mode, userVal, etc.) override anything you set on the options page. Plus you can have unlimited video pages all with different galleries.

    The documentation has more detail on all the options you can specify. Hope this helps.

  29. Chris  on May 11th, 2007

    hi
    i am newbie on the wordpress and tubepress actually i like tubepress that what i installed both of them and activated tubepress from the options of wordpress but the problem is I couldnt see any videos in my page which i created page name is tubepress from the manage menu of wordpress but i coulndt appear any videos yet can you check for me? and can you make example for me? so i can understand where fault i did

    http://www1.suaterdem.net/wordpress-2.1.3/wordpress/wp-login.php

    user=admin
    pass=examples

    thank you very much

    chris

  30. Chris  on May 12th, 2007

    hi eric my debug page is http://www1.suaterdem.net/wordpress-2.1.3/wordpress/?tubepress_debug=true

    what was the problem ?

    thanks

    chris

  31. Chris  on May 12th, 2007

    i solved the problem via debug mode thanks eric great job!

  32. David  on May 12th, 2007

    opps – that didnt come put right at all. Would you delete my previuos post, Eric?

    Dan, add the end of span tag on line 16 of the tubepress.js

  33. blogfitrah  on May 14th, 2007

    i have type this:
    [tubepress mode='user' userValue='ummahfilms']

    but the output in the pages is :
    YouTube contacted successfully, but no videos were returned. If you think this is a mistake, please check your configuration or enable debugging mode. See the documentation for more information.

  34. Eric  on May 14th, 2007

    Change the tag from what you have:

    [tubepress mode='user' userValue='ummahfilms']

    to

    [tubepress mode='user', userValue='ummahfilms']

    Looks like you just forgot a comma is all.

  35. Andrew  on May 14th, 2007

    I have a new concern. You can visit my site to see what I mean. When the plugin loads on my video page it come through just fine. But when the user clicks on a video from the list of videos provided the title of the video is moved to the left of the video rather than appearing at the top. Can you please let me know what to do to fix this? Thank you.

  36. Pat  on May 17th, 2007

    Would it be possible to use SQL to sort videos by their uploaded date? Let me know what you think about that… So far I’m seeing that the pages query the wp-posts database. I am not too sure if the “uploaded date” field, from the tubepress plugin, can be used in a SQL query. If so, can you please explain how?

    Thanks,

  37. Eric  on May 17th, 2007

    The “date uploaded” field is retrieved from YouTube, and is not stored in the WP database anywhere. So no, you couldn’t sort via SQL using TubePress. Sorting ability in general is a feature request that others have expressed interest in. I’ve got that written down for a future version of TubePress, but it’s not in the works just yet.

  38. David  on May 19th, 2007

    Damn I’m having fun with this plugin! It’s very customizable and quite logically put together.Check out test blog.

    Excellent work Eric, many thanks.

  39. Huy Nguyen  on May 25th, 2007

    Hi there, this is the plugin I’ve been looking for to integrate a video gallery into my blog.

    my test site looks great in Firefox but when it loads in IE it dumps the side bar at the bottom of the page to the left.

    here is my test site so you can see what i mean. http://test.michelle-and-huy.com

    Do you have any ideas why this is?

    Please let me know if there is a quick fix in the css file or if the fix is else where.

    Regards

    Oh and excellent plugin…

    Huy

  40. Huy Nguyen  on May 25th, 2007

    sorry i mean it dumps my sidebar to the bottom on the “right” in IE

  41. Huy Nguyen  on May 25th, 2007

    looks like it only happens with IE 6 too, if there’s a fix please let me know…

  42. Eric  on June 1st, 2007

    OK, it looks like the only problem is that your “content” div (with id “content” and class “widecolumn”) is slightly too large. I took the width of it down from what you had (517px) to about 480px and the sidebar came back up to where it should be and the page looks fine in both IE and FF. Give it a try and let me know if that works for you. I’m not very good at CSS! I’d also recommend using Firebug if you’re not already: http://www.getfirebug.com

  43. Eric  on June 1st, 2007

    It’s a bug with the current version (1.2.0) that appears whenever you’re trying to view a gallery with only one video. The version I’m getting ready to release (by this weekend?) includes a fix.

    In the meantime, try viewing uploading at least one more video for the user “projectjericho” and that should get things going for the time being at least.