OPML browsing just got better
Sterling Camden
Warning: file_get_contents() [function.file-get-contents]: Filename cannot be empty in /home/camden/public_html/chipstips/wp-content/plugins/opml-browser/opml-browser.php on line 220
Version 1.2 of the OPML Browser plugin for WordPress has just been released! This version includes some significant upgrades, including:
- You may now have up to 9 opml-browser widgets. When upgrading, the options from your existing opml-browser widget are copied to the first opml-browser widget. Thanks to Mark Barnes for suggesting this enhancement.
- The option to exclude your domain now ignores differences in case when comparing domain names. Thanks to Tony Lindskog for finding that one.
- You can now override the title for the OPML link by entering text into the “OPML title override” field. I didn’t want mine to read “FeedDemon Subscriptions”, so I added that for myself.
- Added the ability to embed the browser within a page or post using a special
Could not open OPML URL
element in the text. See the readme. - Added a “Get this widget” link at the bottom of the widget. Thanks to TDavid for suggesting that little bit of self-promotion.
Download version 1.2 via the button below. Pinging back to all previous posts for those following comments.
UPDATE: More corrections here.
Posted in JavaScript, OPML, PHP, Web, Wildly popular, WordPress |
22 Comments » RSS 2.0 | Sphere it!





[...] Get the latest version here. Tags:Chip’s Tips for Developers: blogroll opml php phpopmlbrowse widgets wordpress [...]
[...] Get the latest version here. Tags:Chip’s Tips for Developers: blogroll opml php phpopmlbrowse widget wordpress [...]
Great plugin that just keeps getting better! Thanks!
I just want to bring your attention to a few typos in opml-browser.php. 1) There are two lines with href= that don’t put quotes around the URL. 2) opml-browser-box-$number prints out literally without substituting the number. 3) There’s one place where style= doesn’t have a starting quote. and 4) there’s no at the end of the “Get this widget” link.
But those are all very minor. Great plugin!
Thanks for the keen eye, Shack! I’ve corrected these issues here.
LOL, I wish I had that kind of attention to detail.
I’m just using the Html Validator extension in Firefox. Works in the background and flags all the errors in view page source. Really nice.
BTW, I realized that there’s one other validation error. Probably not worth creating a new version, but it should be mentioned.
tags apparently require an ‘alt’ attribute (documented here).Anyway, thanks again! I love the plugin!
Thanks, Shack. I’ll correct that for the next version. I’ve just downloaded the validator and tried it out. 106 errors on my page! The W3C Police will be looking for me!
[...] Dougall spotted several HTML coding errors in the latest verion of my OPML Browser plugin. Get the version 1.3 [...]
Hey Chip, is there anyway to add this plugin on a non-widget enabled theme?
Sure! See the opml-browser-readme.txt under the subheadings “FOR DISPLAY FROM PHP” or “FOR DISPLAY WITHIN THE TEXT OF A POST OR PAGE”.
Use the PHP option if you’re in a non-themed sidebar.
I am using this:
opmlurl = http://www.logitechnews.info/wp-links-opml.php;
$browser->require_html = 1;
$browser->exclude_self = 1;
$browser->closeall = 0;
echo $browser->render(); ?>
and it stops the side border from rendering. what am I doing wrong Chip?
could I put:
[opml-browser name="string", opmlurl="http://www.logitechnews.info/wp-links-opml.php", link_opml="1" require_html="1", require_feed="1" exclude_self="1"]
in the sidebar.php and it would display the opml link list?
No, that wouldn’t work, because the sidebar isn’t passed through WordPress’ content filters. That approach only works within a WordPress post or page. But the PHP code should work anywhere in your theme files.
http://www.joomlaviews.info/
I guess not.. lol
I should have looked at the php display option (like you said above) – but using:
opmlurl = http://www.logitechnews.info/wp-links-opml.php;
$browser->require_html = 1;
$browser->exclude_self = 1;
$browser->closeall = 0;
echo $browser->render(); ?>
stops the side menu to display.
lol yeah I figured that out and re-reading your reply above clearly stating to use the php option to display which made me come up with this:
name = 1;
$browser->filename = http://www.logitechnews.info/wp-links-opml.php;
$browser->require_html = 1;
$browser->exclude_self = 1;
$browser->closeall = 0;
echo $browser->render(); ?>
and that is still not working, in fact it prevents the sidebar from displaying.
That’s because you’re getting an error in PHP.
String literals have to be quoted, so your setting for $browser->filename is causing a syntax error. Put the URL in single quotes.
Technically, the $browser->name is supposed to be a string as well, but thanks to PHP’s auto-conversion of numbers to strings, this should not be a problem.
I got it working! Thanks Chip.
Actually the reason was really dumb and odd, and I have seen other plugins do the same.
I downloaded the latest version on your site earlier today, but WP still states:
There is a new version of opml-browser widget available. Download version 1.2.1.20070210b here or upgrade automatically.
And I upgraded automatically and it deleted the opml-browser. If I go to the download version 1.2… link, then I end up: http://wordpress.org/extend/plugins/widgets/
I don’t know why it does that, but I have seen wp delete plugins after using the ‘automatically upgrade’ option, wierd.
Anyways, thank you so much for your help. Greatly appreciated!
Hmm… I haven’t even posted this widget to WordPress.org, so I wonder where it’s getting its information about versions from. I’ll have to do a little research on that.
Thanks for the heads up, Tony.
I suspect that the plugin upgrade functionality of word press is not entirely stellar, but you are right it is odd that it finds an upgrade (says it right now in my plugin section) if you have not even listed it on wordpress.org.
[...] at the bottom of the widget. Thanks to TDavid for suggesting that little bit of self-promotion. OPML browsing just got better — Chip’s Tips for Developers Good to [...]
Hi, having some trouble getting this to work? is it my file
http://unlimited.catsone.com/xml/index.php?
The file you linked in your comment is in RSS format. This plugin only uses OPML format.