Bloglines RSS Aggregator Widget 1.0

Ron Fredericks writes: This is my first WordPress Widget development effort, or my first WordPress *anything* pretty much. However, I provide my best effort to offer a complete and useful widget following the guidlines published by WordPress and the spirit of quality. It is a widget following Atomattic’s Widget offering for managing our blog’s sidebar. It was inspired by a conversation with a friend of mine, Mukesh Lulla, co-founder of embedded security software provider TeamF1. Mukesh suggested that I might want to have a list of news and blog links that are relevant to my user base. This is the resulting widget I dreamed up. I hope you like it, but your comments and guidance are welcome either which way.

You can see Embedded Components‘ blinesAgg widget in action on this blog’s sidebar with the title: Embedded Device Updates

Download Widget

You can download and extract the zipped blinesAgg.php version 1.0.2 widget from here: blinesAgg.zip

Features

The blinesAgg WordPress widget displays a list of selected news and blog RSS syndicated feeds as a list of links:

  • Links can be collected from a neat RSS service called Bloglines
  • Links are collected using the Bloglines search engine
  • You select the desired search words to search for links you think might be cool for those that read your blog
  • No user account on Bloglines is used, just their search engine
  • Any number of additional RSS feeds can be aggregated from extra sites to complete your list
  • Page access to RSS feeds can be cached using an embedded copy of lastRSS, by Vojtech Semecky, for efficient use of your web server

Once blinesAgg widget is installed, you can configure the widget using a simple web form:

  • Title
  • Number of links to display
  • Bloglines search parameters: search words to use, and search words to exclude
  • *List of other RSS feeds you would like to include in your list of aggregated links

*Because sometimes there may not be enough links found within your requested Bloglines search. Given some combinations of search and avoidance words, you may want to list extra RSS feeds to be used to fill out the remaining total number of links you would like to display. That’s why I added the extra feeds form entry. But, you may want to skip the Bloglines search feature and just use the extra feeds as your RSS aggregator.

How-To

Installation on your server:

  1. Place the php widget file (blinesAgg.php) in your WordPress wp-content/plugins/widgets subdirectory. You can skip all the optional installation steps [2 to 6] that I suggest next.
  2. Optional Installation: For speed and reliability I modified lastRSS to use cURL to read remote web pages, if your server does not support cURL then disable this feature using this global configuration variable (*): $USEcURL. The cURL feature also includes a timeout parameter. Timeout is set initially to 20 seconds. If your list of links fails to appear, you may need to change this parameter (*) too: $cURLtIMEOUT. See the optional installation test bullet point below to see how to identify specific problems, where their located, and how to fix them.
  3. Optional Performance Improvement: Create a subdirectory for cache storage of feeds with read/write privilege. For the subdirectory to be readable and writable on a UNIX box, you will need to use the command: “chmod 777 your_cache_directory”. Then let your blinesAgg widget know about it using some predefined global variables I have defined for this purpose. You can: activate, define cache subdirectory, and set cache refresh time using three global configuration variables (*): $USEcACHE, $CACHEdIR, and $CACHEtIME. Note: if you create a cache directory named “temp” in your widget subdirectory, then you can just use the default setting I already defined for $CACHEdIR. When you download the widget from my site here, the initial default setting for cache is to be disabled. To use the cache technique, you would still have to change this global variable to enable the cache feature: $USEcACHE = true.
  4. Optional duplicate display control: I notices that Bloglines search engine returns with some titles nearly duplicated but from diffrerent web sites. Use this flag to control the skip duplicated titles feature (*): $SKIPdUPS
  5. Optional control of named anchor link: Use this named anchor within other hypertext links to referr to your blinesAgg widet on your blog’s home page. The default setting (*): $BLINESaNCHR = ‘blinesAgg’. Usage: example: http://www.embeddedcomponents.com/blogs#blinesAgg
  6. Optional Installation Test: To verify that your installation is done correctly, you may want to set the debug variable below (*) named $DEbUG to “true”. Then complete configuration as usual and view your blog sidebar. With this debug feature activated, your configuration panel may show error messages if something is not configured correctly. Also, you should see your maximum number of links under the Title you defined without any error messages. Press your browser’s page refresh a few times to exercise the widget. Any errors encountered will be displayed by the php error handler activated as a result of setting the $DEbUG variable to “true”. The error handler will report error number, error text, and line number within blinesAgg.php where the error occurred. My suspicion that my new cache directory was not working properly was the reason I added an error handler in the first place. Indeed based on the error report, I failed to change read/write privileges for the cache directory. To fix the problem I had to launch a telnet session to change the read/right permission of my cache directory on my web server using chmod 777. Meanwhile, I had placed the cache directory in the wrong place so I had to move it into the correct subdirectly. I’m talking about the directory you create and the path to it as defined by $CACHEdIR and its read/write permission. If all is well, you can disable the debug feature by resetting the $DEbUG variable to “false”. If this seems confusing, as it did for me at first, then just leave the cache disabled until you really want or need the speed advantage.

*References to configuration parameters means that you would open the php file using a text editor or something like Dreamweaver, and locate the first few lines of php source code below the initial comments in the program file blinesAgg.php. I show the default settings for all global configuration variables in the next section – below.

Optional configuration within blinesAgg.php source code [with default settings shown]:

$DEbUG = false;
$USEcURL = true;
$cURLtIMEOUT = 20;
$USERaGENT = "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)";
$SKIPdUPS = true;
$BLINESaNCHR = 'blinesAgg';
$USEcACHE = false;
$CACHEdIR = './wp-content/plugins/widgets/temp';
$CACHEtIME = 3600;
$INITtITLE = "Bloglines Aggregator";
$INITmAXCOUNT = '10';
$INITtAGS = array('embedded', 'device');
$INITnOTAGS = array('engineer', 'job', 'engr');
$INITeXTRAFEEDS = array('http://feeds.feedburner.com/embeddedstar', 'http://slashdot.org/slashdot.rdf');

Configuration within WordPress:

The figure presented here shows what options are configurable from within the widget menu. Default values are shown using IE 6 browser.

Configuration Screen Shot

  1. Enable the Bloglines RSS aggregator widget plugin from your "administrator -> plugins" menu
  2. Drag your blinesAgg widget to the sidebar from your "administrator -> presentation -> sidebar widgets" menu
  3. Open the widget and configure your blinesAgg widget using the built-in form for: title, number of entries to display, search words that must appear in the Bloglines link text, and search words that must not be present in the Bloglines link text
  4. Because sometimes there will not be enough links found within a Bloglines search given some combinations of search words, you may configure extra RSS feeds to be used to fill out the remaining total number of links you would like to display
  5. To skip the Bloglines RSS search feature altogether, and just use this widget as your RSS feed aggregator, then just delete the search words during configuration
  6. Close the widget and save your changes. Visit your WordPress home page to see the list of new found links displayed in your sidebar.

Some initial notes on compatibility:

  • I only tested it with WordPress 2.04 using a modified default theme
  • It seems to work under all typical conditions on Mac OS X and current FireFox and Safari web browsers, as well as PC Windows XP with IE 6
  • During dynamic configuration I did notice that Mac OS X and Safari web browser (only) does not work to configure any Widget. This is because the link to open the configure menus are not visible. FireFox worked OK but with some less than perfect background color issues

Who-From

Thanks:

  • I would like to thank the folks at Atomattic for giving us the WordPress Widget along with sample widgets from which I learned how to develop blinesAgg
  • I would like to thank Per Søderlind for introducing me to the power of Vojtech Semecky's lastRSS.php object code and how to use it to collect RSS feeds as a WordPress plugin through his blog posts

References:

You-Too

License:

    This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License (GPL) as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

    This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

    To read the license please visit:
    http://www.gnu.org/copyleft/gpl.html

Technorati Tags: , , , , , , , , , ,

29 Responses to “Bloglines RSS Aggregator Widget 1.0”

  1. Bloglines Search Aggregator - DevelopeNet.com Says:

    [...] Bloglines Search Aggregator Bloglines Search Aggregator Version: 1.0 License: GPL Description: blinesAgg WordPress widget displays a list of selected news and blog RSS syndicated feeds as a list of links. Links are collected using the Bloglines search engine. Author: Ron Fredericks Plugin Page Attached Files [...]

  2. Papildoma informacija iš kitų tinklaraščių RSS srautų pagalba - WordPress Gidas Says:

    [...] Bloglines RSS Aggregator Widget. Å is įskiepis Bloglines informaciniame portale ieÅ¡ko su jÅ«sų tinklaraščio straipsnių tekstu susijusios informacijos ir widget’o (lietuviÅ¡koje versijoje vadinama Valdiklis) pagalba atvaizduoja susijusių straipsnių pavadinimus Å¡oniniame tinklaraščio bloke. [...]

  3. WP Plugins DB » Plugin Details » Bloglines RSS Aggregator Widget 1.0 Says:

    [...] Visit [...]

  4. Serafino Raimondo Says:

    they only wanna do you dir. Serafino Raimondo.

  5. Idetrorce Says:

    very interesting, but I don’t agree with you
    Idetrorce

  6. lymnBlasons Says:

    Snx for you job!
    It has very much helped me!

  7. ????? ???? Says:

    I esteemed yours blog,
    thanks the author a lot of useful to myself have found..

  8. Best Internet Marketing Blog Says:

    I am looking at adding an RSS widget to some of our wordpress sites. These seems like one of the better ones I have seen so far. I’ll let you know how it works out for us.

    Thanks,
    Mike

  9. Ron Fredericks Says:

    Thanks Mike:

    I continue to use this RSS Aggregation widget on my site – I am astounded by some of the links in my industry that it finds for me and my readers. Good luck, let me know how it works for you.

    Founder of bloglines rss aggregator widget,

    Ron

  10. shane Says:

    hi there. this was my first ever plugin intall and it all went very smoothly. so thanks for a bug free and positive experience.
    the plugin wasn’t quite what i hoped. i was looking for something that would aggregate all the feeds in one list of links with dates and authors etc.

    any ideas?

    Shane

  11. How to Fetch and Show RSS Feeds on WordPress Blog (Atom/RSS Aggregator Plugins) « Doeasyway Says:

    [...] Bloglines RSS Aggregator Widget displays a list of selected news and blog RSS syndicated feeds from Bloglines as a list of links. Links can be selected using desired search keywords. Any number of additional RSS feeds can be aggregated from extra sites to complete your list. Page access to RSS feeds can be cached using an embedded copy of Last RSS, by Vojtech Semecky, for efficient use of your web server. [...]

  12. How to Fetch and Show RSS Feeds on WordPress Blog (Atom/RSS Aggregator Plugins) « Leon@esoloo The Corp and Team is on the way Says:

    [...] Bloglines RSS Aggregator Widget displays a list of selected news and blog RSS syndicated feeds from Bloglines as a list of links. Links can be selected using desired search keywords. Any number of additional RSS feeds can be aggregated from extra sites to complete your list. Page access to RSS feeds can be cached using an embedded copy of Last RSS, by Vojtech Semecky, for efficient use of your web server. [...]

  13. Marcy Molano Says:

    Wow! Thank you! I continually needed to compose in my internet site something like that. Can I take portion of one’s article to my webpage?

  14. Traffic help guy Says:

    As for WordPress and WordPress plugins. We have created a really interesting viral traffic plugin that should for sure benefit this website increase the traffic. It makes use of the Facebook Like or Share buttons but in a way that you will be very impressed by. Our plug-in gently pushes it to the users of the site so that they will most likely Like or Share your webpage much more often than with any other function. You will still be able to still use the normal Facebook buttons by your articles). This method will allow users for example recommend your index page to all their friends which a portion of could visit and virally increase traffic to your webpage. You can adjust the plugin in many ways so it fits you. If you go to the ilikeviral.com site, you can see how it works. So if you want more visits and viral increase in traffic, come and visit. The affiliate program is also very with high commission so you could also look at that even if you think the plugin is not good in your case. Thanks

  15. etsuko Says:

    Hello there, I found your blog in a very new service of blogs. I dont know how your blog came up, must have recently been a typo, Your blog looks good. Have a great day.

  16. rene Says:

    hi, when i set up blilnesAgg it appears on my blog like:

    Fatal error: Call to undefined function curl_init() in /home/real1.cz/blog/wp-content/plugins/blinesAgg/blinesAgg.php on line 248

    what should i do? any idea?
    thanks for help

  17. JulieK Says:

    Hi there – love this plugin widget but I cannot get it to NOT show posts with the key words I asked for it NOT to look for. Neither can I get it to show posts for the search terms I entered (and “republican” should probably have come up!)
    The actual “extra feed” I added works fine, but I would love to NOT have “sexual assault” news show up on my site! :) Do you have any fixes for this?

  18. Emiko Respers Says:

    Hey there, I think your blog might be having browser compatibility issues. When I look at your site in Safari, it looks fine but when opening in Internet Explorer, it has some overlapping. I just wanted to give you a quick heads up! Other then that, superb blog!

  19. Ron Fredericks Says:

    This for the update Emiko.

    I tested with latest version of IE on win7 and win xp, they both seem to be working fine. What version of IE are you using?

  20. Grüße zum Geburtstag Says:

    I’m not that much of a internet reader to be honest but your sites really nice, keep it up!
    I’ll go ahead and bookmark your website to come back in the future.
    All the best

    Here is my web-site … Grüße zum Geburtstag

  21. sims 3 cheats Says:

    Think back to the first time you at any time heard of sims 3 cheats.
    There are many elements which motivated the improvement of sims 3 cheats.
    Cited by many as the solitary most critical influence on post contemporary micro
    eco compartmentalism, sims 3 cheats is featuring far more and more in the beliefs
    of the younger and upwardly cellular. Frequently it is seen as both a support and a hinderence to the higher echelons of progressive provider sector organisations, who are most
    likely to form a significant stronghold in the inescapable fight for hearts and minds.
    However I would relatively be in bed I will now
    look at the major causes of sims 3 cheats.
    As Mirrored in classical mythology culture is challenging.
    When blues legend ‘Bare Foot D’ remarked ‘awooooh eeee only
    my dawg understands me’ he borrowed much from sims 3 cheats.
    Far more a melody to societies dysfunctions than a parody of the self, sims 3 cheats irons out
    misconceptions from our consciousness.
    Some analysts have been tempted to disregard sims 3 cheats.
    I havent. If society has a favourite youngster, it is sims 3 cheats.

    Present day politics owes significantly to the animal
    kingdom. Comparing the beliefs of the young with the fact felt by their elders is like contrasting sims
    3 cheats and ones possess picture of by themselves.
    It is usually enlightening to think about the words
    of jazz singer Achilles Lionel Forbes Dickinson ‘I do not imagine in
    ghosts, but I do imagine in democracy.’ I couldn’t have
    put it better my self. When it comes to sims 3 cheats
    this is evidently accurate. To paraphrase, the quotation is declaring
    ‘sims 3 cheats wins votes.’ Easy as that.
    I hope, for our sake that sims 3 cheats will endure.

  22. games for mac os x 10.5.8 Says:

    Step 4: Click “”, it will start to copy game CD DVD to hard driver
    automatically. Next, download the i – Pod Linux Installer to
    your computer. As mentioned, many of the Amazon PC download deals below are good for different time periods such as Black Friday only, Cyber Monday only or through the weekend.

  23. colombian call girl secret service Says:

    My brother suggested I might like this web site. He was totally right.
    This post actually made my day. You cann’t imagine simply how
    much time I had spent ffor this info! Thanks!

    My homepage – colombian call girl secret service

  24. send free sms india to dubai Says:

    Will proshape rx safe DVDFab passkey is going to take some market share inside off this very specialized market.
    Downloading i – Phone games is much more standard to do ftom your computer than it is from your
    i – Phone since it is easier to download full size
    i – Phone games. And instead of building saloons and railway stations, this time
    you wilkl need to build watch towers and barracks.

  25. OddBot Expert Says:

    I have been exploring for a bit for any high-quality articles
    or blog posts in this sort of house . Exploring in Yahoo I ultimately stumbled
    upon this web site. Studying this info So i am happy to express that I have a very good uncanny feeling I discovered just what I needed.
    I so much surely will make sure to don?t omit
    this website and provides it a look on a constant basis.

  26. roit points Says:

    On day two, review section one and start section two. So many debates started, a ton of forums went
    up, and they all asked the same question; Dota 2 or League of Legends.
    When our lads and lasses are putting their lives on
    the line for us they must have EVERYTHING they need to do the job we ask of them as safely,
    as quickly, and as efficiently as is possible.

    My page: roit points

  27. dark souls ii - ps3/x360/pc - tv/cinema advert Says:

    Your various forms can run, swim, fly, do massive damage, and so on.
    With these new machines came the announcement of some of the
    biggest and much awaitedgaming titles, such as the likes of The Thief, Watch Dogs,
    Quantum Break, Titanfall and Battlefield 4 among many others.
    I, for one, hope we aren’t left to just write blogs and play emulators of games past trying to relive
    what we once enjoyed.

  28. Anabolex Says:

    If you would like to get a good deal from this post then
    you have to apply such strategies to your won website.

  29. steroid abuse among athletes Says:

    I loved as much as you will receive carried out right here.
    The sketch is tasteful, your authored material stylish.
    nonetheless, you command get got an shakiness over that
    you wish be delivering the following. unwell unquestionably come more formerly again as exactly the same nearly a lot often inside case you shield this hike.

Leave a Reply

What is 10 + 7 ?
Please leave these two fields as-is:
IMPORTANT! To be able to proceed, you need to solve the following simple math (so we know that you are a human) :-)