Chip's Tips for Developers

Contains coding, but not narcotic.

OPML Browser with class

March 30th, 2007 3:52:28 pm pst by Sterling Camden

Well, the OPML Browser plugin for WordPress has only been released for two days and already we’re up to version 1.1. Hopefully this one will last a while longer.

I added a new feature: start with all folders closed. Selecting this option will display the browser with all categories collapsed initially, unless the browser doesn’t support Javascript (otherwise the user wouldn’t be able to open them!).

I also completely reworked the code, using a class for the rendering engine. That allowed me to eliminate all global variables (almost always a good thing) and reduce the number of parameters being passed around. I still say PHP’s object syntax sucks, but it’s a good bit better than what I had before.

I even added some comments.

Let me know how you like it.

UPDATE: Get the latest version here.

Posted in JavaScript, OPML, PHP, RSS, Web, Wildly popular, WordPress | 16 Comments » RSS 2.0 | Sphere it!

Better Tag Cloud