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