Welcome, visitor! Log in
 

KB Plugins blog

The best Wordpress plugins are free

Behold! A new version of KB Advanced RSS!!

Now that I’m out of graduate school and working a real job, I rarely have time to work on my plugins. Apologies. I’ve even tried to pass on development of my plugins to others, and have had a handful of qualified volunteers step up. But today I found the time to rewrite the KB Advanced RSS widget (by far my most popular plugin), so I’ll place those volunteers’ names in a file and maintain development of the plugin for a while yet.

Punchline: The plugin has been updated (finally). I hope that the update solves the major problems.

The source of the problems: Turns out that in WP 2.8 they introduced some major changes into the way plugin authors need to interact with the widgets code. Those changes forced me to rewrite the entire plugin.

This was not a very friendly thing for the WP developers to do to plugin devs like me, but whatever.

Before upgrading to v2.8 of the plugin, read this: Because the WordPress developers dramatically re-wrote the widgets API in WP 2.8, I had to rewrite this plugin completely. Updating to v2.8 of the plugin will correct many annoying bugs. But, alas, it will also (most likely) cause you to lose all the options you may have set in a previous version of this plugin. Sorry. I don’t foresee this happening more than once.

Dazzled? Confused? Disagree? Write a comment »
There have been 111 comments so far.

111 Comments

  1. Karl (Unregistered)
    Posted January 12, 2010 at 11:59 am | Permalink

    Is there any way to adjust the code so the when someone clicks on the feed link it will open in a specifically sized window – say 400×300?

    Thanks.

  2. Posted January 12, 2010 at 12:08 pm | Permalink

    Wow, this comment thread has exploded. Sadly, I lack time for a detailed response to everybody. Many thanks to Rarst for providing some support earlier.

    Several of you ask about making links open in a new window. That’s an HTML question (or Javascript, in Karl’s case). Yes, you can do it by putting the relevant HTML into how each item gets displayed. Including target="_blank" in the link is a good place to start; I’ll let you sort out the details.

    Some of you ask about how frequently the feed updates, or the number of items fetched, etc. Please read the documentation.

    @Chris: Google Calendar does not provide an RSS feed, only XML. Not exactly the same, but it might work for you anyway. hard to say without trying.

  3. Posted January 17, 2010 at 2:00 pm | Permalink

    Hello. I saw it asked a few times but I’m not sure if it was answered. Is there a way to call this directly from the template? I do not use any widgets in my sidebar, and would be calling this from a page.

    Thanks.

  4. Posted January 31, 2010 at 8:55 pm | Permalink

    I’m using this plugin in my new blog (leonardof.med.br) but it didn’t update by itself in 2 weeks, since the last time I inactivated the WP Super Cache plugin. On the other way, the troubleshooter URL [link] is always up to date. Any issues between the two? What can I do about it? Thanks.

  5. Damon (Unregistered)
    Posted February 10, 2010 at 11:10 am | Permalink

    Having a bit of a strange problem when using this plugin. Item elements are being duplicated … sort of. For instance, the output for each item is like this:

    “Google to build ultra-fast broadband networks – AP Top Headlines At Noon ESTGoogle to build ultra-fast broadband networks – AP Top Headlines At Noon EST | link”

    the ^atom_content$ element is “Google to build ultra-fast broadband networks – AP Top Headlines At Noon EST” when I go to the original feed’s URL, but kbrss makes the text for the element show twice in a row. This is only for some elements (that is, ^author$, for example, works fine). This is a Google Buzz feed, if that helps…

    Is this a problem with the feed, or is it some quirk with kbrss?

  6. Posted February 10, 2010 at 2:04 pm | Permalink

    Nevermind, the issue was with the feed.

  7. Damon (Unregistered)
    Posted February 10, 2010 at 5:35 pm | Permalink

    Ignore my last e-mail. I just added in an option to fix doubled-up fields, so it doesn’t matter if it’s a kbrss problem or a feed problem. It was probably a feed problem.

  8. Posted February 12, 2010 at 7:50 am | Permalink

    Hi! I wonder whether it is possible to localize the dates that are parsed using the [opts:date=...] option.. All my months are in english, even though the site is in Norwegian…

    Best regards, and thanks for a great plugin!

  9. Posted February 18, 2010 at 4:16 pm | Permalink

    Any thoughts (anyone) on how to stop the parser from concatenating the item link with the site url? I’ve read everything closely three times now and still can’t get it right.

    I’ve found one solution ([link]) but can’t get it to work because the code doesn’t match well enough to what I have on my server and I can’t reason it out. After 3 days, I’m stuck.

    Here’s my implementation of KBAdv: [link] Roll over each line item and view the urls in the status bar to see the problem.

    I’m just hoping someone here has enough Magpie experience to know a fix. Thanks and pardon me if this is intrusive in any way. Just looking for an answer. Thank you.
    /djw

  10. Posted February 18, 2010 at 4:19 pm | Permalink

    djw, try this (the one about feedburner): [link]

  11. Posted February 18, 2010 at 5:39 pm | Permalink

    Adam, thanks. I did. That was day 2! It works EXCEPT it won’t show the title of the blog (source_title) which is impt when pulling from a number of different feeds. Thanks though.
    /djw

  12. Posted February 18, 2010 at 5:44 pm | Permalink

    Maybe if someone could dumb this code down for me, then I could modify it to handle 2 links (or just publish the first and ignore the second??)

    foreach ( $rss->get_items(0, $items) as $item ) {
    $link = $item->get_link();
    while ( stristr($link, ‘http’) != $link )
    $link = substr($link, 1);
    $link = esc_url(strip_tags($link));
    $title = esc_attr(strip_tags($item->get_title()));
    if ( empty($title) )
    $title = __(‘Untitled’);

  13. Posted February 19, 2010 at 8:25 am | Permalink

    Are you still looking for someone to take over this plugin? I love it very much and would probably be willing to take it over.

    Let me know what we need to do.

    Thanks,
    ~randy

  14. Posted February 19, 2010 at 11:54 am | Permalink

    Maybe start by working out how to separate multiple links in the parsing output? Pretty please?

  15. Posted February 19, 2010 at 10:44 pm | Permalink

    FYI, learned a few things but still can’t get it right. It’s something about the difference between $item and $link that I’m missing. Something fairly obvious to those who know, I’m sure…

    foreach ( $rss->get_items(0, $items) as $item ) {
    $link = $item->get_link();
    while ( strstr($link, ‘http’) != $link ) {
    $link = substr($link, 1);
    }
    if($secondhttp = strpos($link,’http’,5)) {
    $link = substr($link,0,$secondhttp);
    }
    $link = esc_url(strip_tags($link));
    $title = esc_attr(strip_tags($item->get_title()));
    if ( empty($title) )
    $title = __(‘Untitled’);

  16. Peter (Unregistered)
    Posted February 21, 2010 at 2:48 pm | Permalink

    Hi! Running a norwegian wordpress blog, I discovered that dates weren’t properly localized. I modded your plugin myself, but thought that you might want to implement this in “core”… that way my mod won’t get broken if you update the plugin in the future :) in file “versions/wp-2-8.php”, replace line 557:
    'return date( $format, $time );'
    with
    'return date_i18n( $format, $time );'

    Thanks for a great plugin!

  17. Posted March 1, 2010 at 2:00 am | Permalink

    Hello ! Thank you for your wonderful plugin. I have experienced however a few problems :

    When I examine my feed : http://jeunerepublique.fr/wordpress/?kbrss=http://www.dailymotion.com/rss/relevance/search/abiker+parlons+net

    I see a very long “decription” item. My aim was to extract the URL of the first image in that item.

    So I wrote the following option in function item_cleanup :

    if (1==$extractURL){
    	    $tok = explode('"', $text);
                $text = $tok[9];
    
    	return $text;
            }

    Yet, it seems that either the parser or your plugin deletes everything that is not text from the feed’s items, as a result I only obtained the <p></p> part if the item. How can I retrieve the rest in order to properly extract my URL ?

    Thanks a lot, and forgive my poor English.

    Alexis

  18. kevinator (Unregistered)
    Posted March 16, 2010 at 9:56 am | Permalink

    This RSS widget works far better than the default WP widget; however, I have 2 problems:

    1. If I use this widget more than 1 time in the sidebar/footer, each instance reverts to the first feed I entered, so I get 2 (or more) identical feeds.

    2. The feed displays the title and blog name together, e.g., “I cannot tell a lieGeorge Washington”

    I am no HTML expert. I have tried every conceivable combination of the elements in this RSS feed (feedburner) and nothing has any effect. I cannot use ‘author’ or ‘name’ or enter any other text or spacing that might help put SOMETHING between the blog post title and the name of the blog.

  19. kevinator (Unregistered)
    Posted March 16, 2010 at 12:14 pm | Permalink

    …and another thing – for this same RSS feed – again, from feedburner – this widget adds the main URL to the link:

    [link]

    So user’s click and get a 400 error. Not good. I’m sticking with the default format for KB RSS:

    ^title$

  20. Posted March 18, 2010 at 1:43 pm | Permalink

    Hi,

    Seeing same issue that kevinator is reporting with the duplicate feed issue. Using 2.8.02.

  21. Posted March 20, 2010 at 9:19 am | Permalink

    I love this widget I am using it on [link] for some guys I put a website together for, I had to make the rss not link, which I done by editing the html code, I also do not know how to fit it inside the window that it generates between the ul tags, then after hours of reading i finally noticed that it was because I have 2 sidebars so will not let me ‘open the box’ rigth up , the problem i then found was that in widgets it gives me options to put in sidebar 1 or sidebar 2 , what it doesnt give me the option of doing is putting in the main sidebar (such as the sponsored ads at the top).
    Is this somethign I can fix by just adding the code into the main sidebar.php ?

  22. Posted March 27, 2010 at 10:35 am | Permalink

    I used the option to trim the title of the items. Only thing is that now in most cases the last word isn’t shown in it’s entirety. Is it posible to adjust the code in such a way that the last word of the title is shown in it’s entirety?

  23. Posted March 28, 2010 at 12:48 am | Permalink

    My son’s Venturing Crew is trying to import their Facebook fan page into their website using your app. It seems to work pretty well, except (as others have mentioned), the link doesn’t work quite right with all entries.

    Instead of adding facebook.com before an entry, the Venturing Crew site will be used. When I change the code from: href=’^link$’ to href=’http://facebook.com^link$’ – some of the links then work – others do not.

    I realize this is undoubtedly due to short links on the Facebook site, but is there a way around this?

  24. Posted April 4, 2010 at 6:57 pm | Permalink

    The widget is no longer updating for me. I have set to display my Facebook Posted Items feed. It used to work but I suspect stopped doing so around the time I upgraded to WP 2.9. I’m currently running 2.9.2 and the Thesis 1.6 theme.

  25. Posted April 21, 2010 at 11:36 am | Permalink

    Congrats on your job, and thank for this widget.

    I began using it about a month ago, and things were fine until about a week ago when the image began to be surrounded by a gold box.

    I cannot find anything addressing this in the documentation. Thanks for addressing this, if you get a chance.

  26. Vincent (Unregistered)
    Posted April 26, 2010 at 10:14 am | Permalink

    I like put the similar function in template instead of widget, what is the code?

  27. ebflute (Unregistered)
    Posted April 26, 2010 at 1:50 pm | Permalink

    What is the code for pulling in the author’s name? ^author$ didn’t work for me. I checked the rss feed and it is in the dc array as “creator” but ^creator$ didn’t work either. Anyone know how to do this? Also, can I capture a thumbnail image from the feed coming in? I have admin to the feed so I can set something up perhaps with a custom field just for the rss feed. Thanks in advance for any help.

  28. Vincent (Unregistered)
    Posted May 1, 2010 at 11:14 am | Permalink

    Hi, I want place the php code in the template instead of widget.
    What is the php code should I put?

  29. Posted May 3, 2010 at 1:37 pm | Permalink

    @Vincent: v2.8 of this plugin “REMOVED the ability to call this plugin manually from a template. MUST be used as a widget.”

    [link]

    I stuck with v2.1.3 for that reason. Works great in WordPress 2.9.2, as long as you don’t need the widget.

  30. suzanb (Unregistered)
    Posted May 25, 2010 at 8:29 pm | Permalink

    Hello:
    I want to know how could display rss on a chart which I created;

    I have decided to table this theme but now I need help me understand the code …

    I want to show the rss news where I want

    Because the settings in Wordpress Adiministratimit rss could you go to a single one frame but I want to move where I want published.

    Example please tell me how to get the news from this address:

    [link]

    Last 10 posts form VOAnews I want to show up in my first page…

    Help please.

  31. suzanb (Unregistered)
    Posted May 26, 2010 at 4:52 pm | Permalink

    Please help as I know when I publish an RSS Rss take example from the BBC.

    Your plugin code which has the theme?

  32. Scor (Unregistered)
    Posted June 8, 2010 at 11:28 am | Permalink

    Dear Adam,
    I can’t get your plugin working. When I try to setup the widget, it doesn’t save the settings (the saving animation doesn’t stop) and there’s no output on the page. Using WP 2.9.2 and PHP 5.2.6-2ubuntu4.2.

  33. Rrose (Unregistered)
    Posted June 9, 2010 at 10:05 am | Permalink

    don’t works with WP 2.9.2
    :(

  34. periscope (Unregistered)
    Posted June 11, 2010 at 1:10 pm | Permalink

    Same here. It doesn’t save settings in 2.9.2.

  35. Posted June 28, 2010 at 1:01 am | Permalink

    Great plugin. Feel free to tell me to RTFM if there’s something I’m missing here.

    Trying to troubleshoot the following problem: I’m trying to pull the full text of the RSS feed, but when I include ^description$ or ^summary$ (both of which have the content I need according to kbrss=), I’m getting a repeat of the ^title$ field. The full text contains HTML, so it might be getting stripped, but I can’t tell why the title field would be replicated.

    Current code: <a class='kbrsswidget' href='^link$'>^title$</a><br><br>^summary$<br><br><div align="right"><i>^pubdate[opts:date=M j, Y g:i a]$</i><br><br></div>

  36. shawn (Unregistered)
    Posted July 13, 2010 at 6:44 am | Permalink

    how can I get the headlines in the RSS feed to be capitalized?

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Comment Guidelines
  • Yes, your comments will be visible to everybody. You can disagree, but civilly.
  • I have the right to delete abusive comments.
  • Allowed HTML: <a> <b> <blockquote> <cite> <code> <em> <i> <strong>
  • Put code in `backticks` (above your "Tab" key) or it won't display well
  • Gravatars: To override the default image by your comment, use a gravatar.
  • Links: If you include more than one link, your comment will go into the spam queue.

Please read before commenting: Because I am now employed and not just a student, I provide only minimal support for my plugins. Sorry.

If you have a bug report, feature request, or other general feedback about a plugin, please leave a comment—but do not expect an immediate response. If you are requesting help, though, please check the plugin's documentation thoroughly rather than ask your question as a comment.

Thank you for your understanding.