DISQUS

Community Page on DISQUS

what is this?

Jump to original thread »
Author

FriendFeed Comments WordPress Plugin

Started by Glenn Slaven · 4 months ago

Download the latest development version here.  Unzip that into your plugins folder & activate it.  You’ll then need to go into the options (or settings if you’re running WP2.5) and click on FriendFeed.  Put your FriendFeed nickname in %2 ... Continue reading »

126 comments

  • How much do I need to pay to get a plug-in for Blogger as well? :-)
  • That would be a bit more difficult, it would need to be done as a widget, but the actual content would have to be hosted somewhere else. A neat little javascript solution by the FF guys would be awesome here
  • I agree! I'm using Tumblr for my blog so a nice bit of HTML'ing would be right up my alley :¬D

    I really like what Glenn has done for his plugin, really slick.
  • Hi Glenn,

    I've got this installed on a WP2.5 blog (http://colinwalker.me.uk) but for some reason it doesn't look like the template tag is being triggered on every post. Some of them have the FF section but others don't, even when there are likes and comments.

    Any ideas would be appreciated.

    Thanks.
  • Hi Colin, there seems to be a problem with posts with single quote marks in the title. FF is representing them as a different character to what is on your blog, so the plugin isn't matching them. I've updated the development version of the plugin to try & fix this, you can get it here: http://svn.wp-plugins.org/friendfeed-comments/t... . Just replace friendfeed-comments.php file in the plugin folder with that, then go to the plugin's settings page & click the "Reset comments/likes" button to force it to reload the comments.
  • Thanks Glenn but still no dice I'm afraid. Checking the debug info it definitely pulls the info from FF for those posts but will still not display the DIV so is it an issue when it checks what it should be displaying rather than the check on FF?
  • It's failing in matching the posts with their FF entries. I'll try a few
    tests here & get back to you, sorry for the hassle
  • Thanks, I appreciate it. Do you want me to send the debug info?
  • that would be helpful, thanks - gdalziel at gmail dot com
  • Glenn,

    Awesome work! Once I noticed the code to add to the loop, I got it working at http://blog.fosketts.net too. I'll report any bugs!

    Stephen
  • Great work! I'm putting this to use immediately. I'm looking forward to future versions!
  • It seems that plugin works, but it gets confused about the posts if you have more than one similar service in your account.

    I.e. if you have two blogs, plug-in doesn't tell posts from one or the other, thus showing incorrect stats and comments from another post. I guess it's a bug. :)
  • Yes this is a known bug, I'm looking at options to solve this at the moment. Currently it should only be an issue if 2 posts have the same name
  • Umm.. No, I am sure my posts didn't have same names, but still plugin displayed comments from newer post from a different blog.

    Glenn, how does post binding works? How does plugin know which post to request from FF? It isn't blog post permalink, is it?
  • Well, that's a bit odd. Can you post a link showing this happening, I might be able to get a better idea why.

    Also, I've just checked in an update to the plugin that checks that the service url from FriendFeed is the same as the blog url. I haven't released the update yet, but you can grab the file from here is you want: http://svn.wp-plugins.org/friendfeed-comments/t...

    I've added a 'reset' button on the plugin's admin page. This will let you clear out all the information it's stored & reload it all from FriendFeed. Hopefully this should fix this bug.
  • Nope, new version and reset didn't help. And I suppose I know what's the problem... I previously didn't account for one more thing: my blog has RSS served via Feedburner, and Feedburner alters permalinks for statistic purposes. That's where things get hairy.

    Plugin does have a permalink but doesn't have any idea about what is the feedburner link for the post is.

    Take a look:

    - Here is the original post: http://urbansheep.ru/2008/03/arrogance-is-a-wea...
    - Plugin pulls "likes" from the following post: http://www.friendfeed.com/e/8537dda8-f948-02be-...
    - While it should request stuff from this one: http://friendfeed.com/e/e2ed2f5c-4be3-416c-f0fc...

    Unless there's a way for plugin to first ping feedburner for a link, and then pull data from friendfeed, it seems quite difficult to resolve.
  • Ok, I think I know what the problem is, the cyrillic is freaking out my
    script!

    I'm normalising the title of each post by removing non-alphanumeric
    characters, of course being the anglo-centric bigot that I am, I'm just
    removing non-latin alpha characters. I've checked in an update that doesn't
    do that, can you try again? Sorry for the hassle

    Glenn
  • :)
    No problem, I am happy to test if it helps us to get a neat solution for collecting all the feedback into a single place.

    Replaced, but still no luck — it seems that call to wp_ffcomments() doesn't do anything at all now, no output. What am I doing wrong? :)
  • Did you do the reset this time?
  • Yep, twice.
  • OK, one more go, I've checked in a heap of tidy up changes & fixes along with some serious debug information.

    If this doesn't work, please tick the 'show debug info' checkbox in the options page & click the reset button & send what it shows you to me. Hopefully that will give me enough details to see what's going on

    cheers
  • I sent debug data your way via contact form.

    Just in case the letter doesn't get through, here goes part with my 0.02 about what might be going wrong:

    I found out that when feed is requested, it contains no reference of posts from the blog in question — they have been pushed down by newer posts. After looking at the API, I dare to suppose that polling last 60 items might be not enough to keep up with some feeds (especially for users with twitter hyperactivity disorder). Other possible choices are using search (checking for title and then filtering results by link/domain name) or asking friendfeed to implement domain filter (so that we can request not just all "blog" service stuff, but rather "blog.slaven.net.au" stuff only).
  • 1. Does it work with WP2.5?
    2. Do we have any examples yet?
    3. Will it work with Disqus?
  • 1. Yes, this site is running 2.5
    2. Yep, see this post for a post with a large number of comments: http://blog.slaven.net.au/archives/2008/03/27/f...
    3. Not really. It won't interfere with it, as you can see on this site, but it doesn't integrate. I was thinking about doing that, with the disqus API, but I thought it would get really confusing because there would be 2 locations the comments would come from, and there would be con context for a comment
  • I don't know why it's not working for me, though.

    Here's a post where a FriendFeed comment should show:
    http://nathanr.ca/news/torontos-cn-tower-wows-v...

    >:(
  • I've added it to my plugins, activated it, changed my FF nickname to Pinksy, kept the other thingy as "blog", and added <?php wp_ffcomments(); ?> inside the loop on my single.php template file, added a test comment (http://friendfeed.com/e/15c7da39-d9ed-33b5-2787...), but nothing comes up (http://www.pinksy.co.uk/index.php/2008/04/18/5h...). Am I doing something wrong?

    Brilliant work though...

    Cheers
  • If you put the comment on the post after you setup the plugin you'll need to wait an hour. It polls FriendFeed every hour for new comments/likes. If you want it to update now, go back into the admin page & click save. That forces an update.
  • Thanks dalziel. I got it to work in the end, but I'm not sure how. Could the FF nickname be case sensitive? I originally had it as "Pinksy", but then changed it to "pinksy", and now it works.

    Does it link on the URL of the post? I was just wondering what should happen if you wanted to test it locally. I'm running my site locally via xampp, but the plugin doesn't seem to find the post on FF when I do it that way, as if it links on the real URL.
  • I like this plugin so much I added it to the big loop in WP.. I <3 FriendFeed stats!
  • Hi Glenn,

    This is really great but I fear that I am one of the many that feed my RSS to feedburner before it gets to feedburner. If I'm reading your post correctly, this plug-in doesn't work correctly if you use feedburner?

    Ian
  • Nope, it works fine, I use feedburner here, it will just have an issue if your posts on your blog have the same title. It uses the title to uniquely identify a post, so it needs unique titles for each post
  • I see this plugin in sevreal super cool blogs. I want to have it in my sidebar. I followed all the instructions, have the last update from wp and the plugin, but it is not displaying anything. It connects, loads posts, but there is nothing displayed. On the debbugging mode it says

    30 entries loaded from FriendFeed
    0 entries loaded, 1 total entries stored.
    And it does have all the entries.

    Do you know what might be the problem?
    txs!
    Claudia
  • Claudia, the plugin did need to sit inside 'the loop' ( http://codex.wordpress.org/The_Loop ), but I've just checked in an update that will allow you to put it in the sidebar (it will only work on single post pages)
    http://downloads.wordpress.org/plugin/friendfee...

    cheers
  • Great plugin, but it is causing display issues on my site. Thinking it is conflicting with Lightbox, let me know when you have an update available. Thanks!
  • Could you give me a bit more information about what's happening please?
    Perhaps a link to where it's happening?

    cheers

    2008/5/26 Disqus <>:
  • I have re-enabled the plugin on my blog, so if you head over to: http://blog.jacobburke.com and take a look, then you will see what is happening. I am getting a large black box at the top of the page and at the bottom I am seeing the lightbox overlay in a loading state.

    Thanks!
  • Jacob, which lightbox plugin are you using there?
  • I am using Lightbox 2.04, here is the link: http://wordpress.org/extend/plugins/lightbox-2-...
  • I seem to have found the problem. I included that plugin on my site & the
    same problem occured. Basically the lightbox plugin is explicitly including
    a version of prototype, rather than using the buillt-in wordpress function
    for including it. So it's being included twice, which is causing the error

    I edited the lightbox.php file for the plugin to use the bult-in method & it
    seems to work. If you go here:
    http://blog.slaven.net.au/archives/2008/04/30/t... and
    click on the image in the post the lightbox should come up.

    I can send you the updated code for the lightbox plugin if you like

    2008/5/26 Disqus <>:
  • There does not seem to be an image in that post for me to test lightbox. I am very interested in the updated code. Thanks!
  • I used your plugin hack for Lightbox and everything is working smoothly now. Thanks again for your help on getting the plugin setup. Cheers!
  • I have stumbled upon one more issue, the comments are only showing on certain posts, yet I have the code in place on the template. Any reason as to why this is happening?
  • http://blog.jacobburke.com/2008/05/whats-separa...
    http://blog.jacobburke.com/2008/05/metoday-may-...
    The posts had their titles changed after FriendFeed picked it up, hence the loss. This is an unfortunate side-effect of using the titles as an identifier, but unfortunately there doesn't seem to be any other option at this point
  • Thanks Glenn, I appreciate the information and the quick response. Cheers.
  • I have disabled the plugin again, since I was getting messages about the display issues on my blog. I have uploaded a screenshot of what the display is with the plugin enabled: http://flickr.com/photos/jacob_burke/2523084663/

    Thanks!
  • Thanks! This plugin will come in handy!
  • Hey Glenn, I'm getting this error on my posts:

    Warning: Invalid argument supplied for foreach() in /home2/shey/public_html/wp-content/plugins/friendfeed-comments/friendfeed-comments.php on line 356

    You can see it on my site http://www.sheysmith.com/

    Is the fix for the single quote in titles included in 1.5.3? I noticed some of my posts don't have the FriendFeed comments section coming up.
  • Yeah it should be, what version of the plugin are you running currently?
  • 1.5.3
  • Shey, I've checked in an update to version 1.5.5 that will hopefully fix your problem http://downloads.wordpress.org/plugin/friendfee...
  • Thanks Glenn!

    The error is gone but I still don't see any info post. Here's the debug error I got from the admin options:

    90 entries loaded from FriendFeed

    FriendFeed Is The Signal - FriendFeed+Is+The+Signal


    Fatal error: Cannot use string offset as an array in /home2/shey/public_html/wp-content/plugins/friendfeed-comments/friendfeed-comments.php on line 193
  • Problem fixed! Thanks Glenn!
  • Anyone have any luck making this work with the Mimbo theme?
  • First off, thanks for a great plugin. I seem to be having an issue with it not properly displaying likes. Here are 2 examples that I verified loaded when in debug:

    Example 1

    Blog Page:
    http://lifestreamblog.com/unique-custom-lifestr...
    FriendFeed Page:
    http://friendfeed.com/e/7ddf2d4f-5d94-053a-4913...

    Example 2

    Blog Page:
    http://lifestreamblog.com/how-to-find-local-twi...
    FriendFeed Page:
    http://friendfeed.com/e/23290cb3-fcff-58f2-1c11...

    Also, I have several services added as a blog on FF & I left the setting for "FriendFeed Servicename" as "blog".
  • Mark I've just updated the plugin to allow you to manually link up the FriendFeed items with your posts if the plugin is failing to do it automatically. See http://blog.slaven.net.au/archives/2008/06/02/o... for details, the update is available now from the WordPress plugin site.

    cheers
  • Thanks Glenn, I upgraded and the manual linkage works.
  • Thanks for the plugin, Glenn.

    I did encounter one problem, in render_comment() in friendfeed-comments.php, though. The date() function doesn't like the formatting of $comment->date and is causing all comments to display December 31, 1969. Adding the following line before $time is set fixes the problem.

    $comment->date = strtotime(str_replace('T', ' ', $comment->date));
  • That's odd because the FriendFeed API is supposed to be returning a
    timestamp (see ~ line 238 in the friendfeed.php file) have you got a
    different version of that file included somewhere else on your site?

    2008/6/2 Disqus <>:
  • I see in the code where that's supposed to be happening. All I know is that when it's time to render the comment, $comment->date is in ISO 8601.
  • That's really wierd, I've never seen that before. Can you send me the debug
    info when you click save on the settings page? gdalziel at gmail.com I'll
    see if it's something dodgy in my code

    2008/6/2 Disqus <>:
  • Sent.
  • I'm seeing this too Glen, is it a firendfeed problem?
  • I can't get it working on WP 2.5.1 ,.. no matter what I try :( does look promising though.
  • John could you give me a link back to your site & a few more details about what's going wrong?
  • Also having the same issue on 2.5.1, nothing appears to be happening when it is installed, activated, username put in, and tag placed in single.php.

    Will leave it activated on my blog. http://blog.oflaherty.dk

    Actuall, this post I know has FF comments : http://blog.oflaherty.dk/2008/06/10/is-blogging...

    Thanks, am looking forward to getting this working :)
  • Import FriendFeed Comments...

    FriendFeed Comments is a plugin for Movable Type that enables you to import and display comments made using FriendFeed on your entries. You can also use the plugin to enable your blog commenter to "Cc." their comments to FriendFeed (if......
  • Had to make a couple of hacks, as prototype seems to conflict with Mootools, used by my blog template. Not your problem!

    Great work - blog now displaying comments from FriendFeed, which keeps everything together on the blog.

    For example : http://4tm-services.com/2008/06/26/oh-wow-analy...

    Thanks.
  • Great to hear David, thanks.

    I've also found it conflicts with JQuery. I'd really appreciate it if you could send me the changes you had to make for it to work with Mootools, I' m looking to let the user pick between the 3 in a future version, hopefully remove these problems!

    cheers
  • Hey Glenn, I'm having a bit of an issue with the plugin. I installed it, updated it and put the template tag into the loop on the single.php and nothing at all has shown up on any of my posts. I waited an hour just in case it had something to do with caching, but still nothing. I tried debug, and it looks like it's importing properly but I am not sure why the widget doesn't appear at all.

    The site is http://www.howtosplitanatom.com, any advice would be greatly appreciated.
  • Hey steve, the problem is that on friendfeed the blog has a www. in front of the url, where as on your site it doesn't, so the plugin doesn't know it's the same site. If you drop the www from the url on friendfeed it should fix it.
    cheers
  • Thanks Glenn!
  • Just made the changes, still no good unfortunately. :(
  • Sorry