TubePress 1.5.0 Released

This version is the result of a few months’ work on the code base. If you’ve taken a look at the PHP of previous versions, you may not recognize a whole lot in 1.5.0. My goal was to lay a better foundation for some features I have in mind for the future. It also comes with a slew of new features and bug fixes.

If you’re updating, just overwrite the old version and visit the options page (WP Admin > Options > TubePress) at least once to initialize the new version. Enjoy!

  • New features
    • “All tags” and “Any tags” modes now merged into “YouTube search” mode
    • Play videos with GreyBox (this replaces ThickBox)
    • Play videos with lightWindow
    • Pagination now uses modified Digg Style pagination
    • Max player size is now 424px x 336px (removes thin white border from player)
    • Input validation on options page
    • All error messages are extremely detailed
    • Debug mode is more comprehensive
    • Option to disable debugging mode completely
  • Bug Fixes
    • Embedded video is XHTML compliant
    • “Playlist” mode pages correctly (thanks, YouTube!)
    • “Normal” mode displays title and runtime correctly after user click
  • Under the Hood
    • Much better code documentation
    • Code style is PEAR compliant
    • XML parsing uses PEAR’s XML_Unserializer instead of XMLIster
    • Almost all functions moved to classes (helps namespace management)
    • WordPress-specific code is cleanly isolated
    • Improved message-resources handling
    • Revamped directory structure
    • Improved naming conventions all around
    • Quasi-private methods (PHP4 OOP isn’t too sophisticated)
    • Most HTML printing methods use sprintf (or variant) - improves readability

Comments 6

  1. Oz Poker wrote:

    Hi

    Was a nice plugin. I was using 1.2 and tried upgrade.

    No longer works and infact breaks the whole site.

    Tried reinstalling with an older version I couold find 1.2.5 and same problem.

    As soon as I activated it here’s what I got

    Warning: main() [function.main]: SAFE MODE Restriction in effect. The script whose uid is 32945 is not allowed to access /opt/php4/lib/php/PEAR.php owned by uid 0 in /home2/ozpoker/public_html/ozblog/wp-content/plugins/tubepress/common/class/options/TubePressIntegerOpt.php on line 22

    Warning: main(PEAR.php) [function.main]: failed to open stream: No such file or directory in /home2/ozpoker/public_html/ozblog/wp-content/plugins/tubepress/common/class/options/TubePressIntegerOpt.php on line 22

    Fatal error: main() [function.require]: Failed opening required ‘PEAR.php’ (include_path=’.:/opt/php4/lib/php’) in /home2/ozpoker/public_html/ozblog/wp-content/plugins/tubepress/common/class/options/TubePressIntegerOpt.php on line 22

    Posted 13 Jun 2007 at 12:16 am
  2. Oz Poker wrote:

    Its ok - worked it out - I think

    had to turn “safe mode” off.

    Posted 13 Jun 2007 at 12:33 am
  3. The_cobra666 wrote:

    Hi,

    When I disable your plugin it breaks another plugin. It breaks the plugin: ANIga gallery. The plugin is still running but I can’t visit any page made by it. It doesn’t shows. If I turn your plugin back on, it works again…

    Posted 10 Jul 2007 at 3:30 pm
  4. elcarpo wrote:

    I think that this is a great work. But just an idea: is it possible to post videos on a widget (in the sidebar)?

    That’ll be absolutelly awesome!

    Thanks!

    Posted 12 Jul 2007 at 12:19 am
  5. ksrs wrote:

    HI,
    I am very new to PHP and wordpress world…
    How to invoke youtube videos in PHP a file. I would like to have youtube videos in home.php template file.

    “[tubepress mode='tag', tagValue='']” doesnt work in PHP file.

    Regards,
    ksrs

    Posted 12 Jul 2007 at 2:51 am
  6. Arpit Tambi wrote:

    Hello

    A great plugin here, works fine. Can I request you few things…
    1) Why thr is this limit(424×336) to the video size, let we decide the video size.
    2) I am beginner to XML, we can get the XML thru youtube API but how do we actually use that XML to display videos on webpages. Pls reply. thanks.

    Posted 12 Jul 2007 at 3:00 pm