← Back to Archives

Slight changes to NQB2 feeds...

blogging

So, at the request of a respected reader, I've made some slight changes to the RSS feeds for this blog. If you read this via a web browser (and not a news aggregator) you won't notice a difference... if you read this via an aggregator, you'll notice that the text below [More:] now comes through via RSS instead of necessitating that you click through to my blog website.

I need to mention that this quick little hack took all of 5 minutes using b2evolution... it really is the blogging software for geeks. If you would rather subscribe to the old version of my feed (where you had to click through to my blog to read below-the-fold content) please let me know as it is really trivial to publish two feeds (although you'll have to re-subscribe to the sparse feed as this verbose version will remain the default).

[More:]

For all of you b2evo heads out there... what did I do? I essentially modified the call to the content() function in each of the php files that serve up feeds for my blog. Specifically, I made the following changes:

  1. In xmlsrv/rss.php, on line 42, I changed the second parameter from false to true (note the trailing ellipsis in this code is because there are more parameters on this line that I don't change):

    $Item->content( 1, true, T_('[...] Read more!'), ...

  2. On line 64 of xmlsrv/rdf.php, on line 53 of xmlsrv/rss2.php and on line 49 of xmlsrv/atom.php, I changed:

    $Item->content()

    to

    $Item->content( 1, true )

The parameter that I'm changing to true in all these examples essentially governs whether or not to publish the below-the-fold content in the feed. Happy hacking!