Chip's Tips for Developers

Contains coding, but not narcotic.

OPML browsing just got better

September 22nd, 2007 1:21:03 pm pst by 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:

  1. 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.
  2. The option to exclude your domain now ignores differences in case when comparing domain names.  Thanks to Tony Lindskog for finding that one.
  3. 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.
  4. 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.
  5. 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!

22 Responses to “OPML browsing just got better”

  1. [...] Get the latest version here. Tags:Chip’s Tips for Developers: blogroll opml php phpopmlbrowse widgets wordpress [...]

  2. [...] Get the latest version here. Tags:Chip’s Tips for Developers: blogroll opml php phpopmlbrowse widget wordpress [...]

  3. 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!

  4. [...] Dougall spotted several HTML coding errors in the latest verion of my OPML Browser plugin.  Get the version 1.3 [...]

  5. Hey Chip, is there anyway to add this plugin on a non-widget enabled theme?

  6. 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.

  7. 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.

  8. 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.

  9. 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.

  10. 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.

  11. [...] 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 [...]

  12. Mark says:

    Hi, having some trouble getting this to work? is it my file

    http://unlimited.catsone.com/xml/index.php?

Leave a Reply

Better Tag Cloud