[WordPress Plugin] Live Flickr comment importer

A comment is what a blogger wants! Show me a blogger who denies this and I will show you a liar :-P This plugin allows importing of comments made on a Flickr photo into a WordPress post of your choice. There is another plugin that I found which allows such imports but it has a few drawbacks which I did not like

  • It relies on the Recent Activity RSS feed from flickr
  • The title of the post on your wordpress blog should match that of your flickr photo
  • It worked only when you did stuff on the admin side, technically speaking it is hooked to the admin_head
  • Old comments could not be imported

The Live Flickr Comment Importer Plugin on the other hand

  • Uses the Flickr API via the excellent phpFlickr class
  • Can automatically detect Flickr photos embedded in the post.
  • Can also use a custom field in the post to import comments thus your Photos and posts need not have the same title
  • Comments on multiple photos can be imported in a single post
  • Also imports the flickr user icons / avatars
  • The comments are imported whenever anyone sees a post where comments are to be imported
  • Allows import of even the old comments
  • Can cache the results of flickr API

Installation

  1. Upload the folder ‘live-flickr-comment-importer’ into your to the ‘/wp-content/plugins/’ folder
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. To configure plugin options start by clicking on ‘Configuration Page’ link near plugin name or ‘Settings’ -> ‘Live Flickr Comment Importer’ navigation link.
  4. You will have to enter and your flickr API key for this plugin to work. Flickr API key can be got from http://www.flickr.com/services/apps/create/apply/
  5. For caching of Flickr API results and thus in turn a better performance ensure that your plugin directory must be writable by webserver.
  6. Follow the instructions given on the configuration page on how to import comments into a post

Known Issues

  • Sometimes the ordering of comments imported is not the same as that on the flickr photograph. I have no idea why this happens but this appears to be an inconsistency from flickr – correct me if I am wrong Fixed in version 1.4
  • Avatars may not show up in some themes Fixed in version 1.6

Probably coming in next version

  • Automatic scanning of post contents for flickr picture URL Done in V1.3
  • Replying to a flickr comment on post – will post the reply to flickr as well

Patches, bug reports and feedback most welcome

Download Here

About Tarique Sani

Dr. Tarique Sani is a pediatrician and forensic expert by education. He is a PHP programmer of 'wrote the book' caliber and has to his credit several very popular open source as well as commercial PHP projects. He leads a team of dynamic programmers at SANIsoft who have in-depth understanding of Web development tools and usability practices with strong developmental skills in PHP, MySQL/PostgreSQL, HTML, DHTML, Javascript, and Linux/Apache

204 Responses to [WordPress Plugin] Live Flickr comment importer

  1. Jon Zenor January 2, 2010 at 5:03 pm #

    I am excited to try out this plugin, but am running into a problem. When trying to activate version 1.1 I get this message:

    “Plugin could not be activated because it triggered a fatal error.”

    Any ideas?

    • Tarique Sani January 2, 2010 at 6:21 pm #

      Thanks for trying out – can you please let me know which version of WordPress are you using and which version of PHP is there on your server?

  2. Daniel Chetroni January 3, 2010 at 11:25 pm #

    Great job !

  3. Richard Dutton January 5, 2010 at 9:06 pm #

    EXACTLY what I wanted, many thanks! I’ve been struggling with the other flickr comment script you mention and was really not at all happy with it.

  4. laihiu January 11, 2010 at 9:03 pm #

    can’t wait to try this out!

    “Replying to a flickr comment on post – will post the reply to flickr as well” – that would be SO awesome :)

    just one question: would it work with WordPress 2.6.5?

    • Tarique Sani January 12, 2010 at 8:55 am #

      It may not work in WordPress 2.6.5 – Reply to comment will be there in the next release

  5. Andy Bexx January 12, 2010 at 3:32 am #

    Hi, I also get the same error as Jon? – “Plugin could not be activated because it triggered a fatal error.”

    • Tarique Sani January 12, 2010 at 8:56 am #

      @Andy I will ask you the same question as I asked Jon :-) which version of WordPress and Which version of PHP are you using?

  6. TwoLittleWitches January 17, 2010 at 12:34 pm #

    I had the same error… deactivated all my plugins first and tried again… it worked. Then reactivated the other plugins.

    But the link to get a Flickr API key is dead. ;o(

  7. Andrew Mein January 18, 2010 at 2:27 am #

    Great Plugin, can’t wait for the new features planned, especially replying to a flickr comment on post

  8. Anish February 12, 2010 at 11:09 am #

    When I enter the API key. I get this error :(

    Fatal error: Class ‘phpFlickr’ not found in /home/anishk/public_html/wp-content/plugins/live-flickr-comment-importer/live-flickr-comment-importer.php on line 125

    Please help!!!

    • Tarique Sani February 12, 2010 at 11:20 am #

      Thanks – the bug has been fixed in V1.3 which should be available for download in a while. I you can’t wait just change the word phpFlickr to t_phpFlickr on line 125 and it should work

  9. Anish February 12, 2010 at 5:18 pm #

    Thanks a lot for your quick reply.. Tarique…
    Its working now.. A great plugin indeed..

    I’ve added you in flickr :o )

  10. decepive February 15, 2010 at 10:31 pm #

    I can get this to work well recognising a photo in a post but nothing seems to happen using custom field flickr_photo_id, the value I use for flickr_photo_id is the number at the end of the url for the photo, I’m assuming I should be able to import comments no matter what the content in the wordpress post just by adding the custom field. Is there something else I have to do?

    • Tarique Sani February 15, 2010 at 11:32 pm #

      Yes flickr_photo_id is the number at the end of the url eg: In url http://www.flickr.com/photos/tariquesani/4350223643/ the flickr_photo_id is 4350223643 and yes you should be able to import the comments no matter what the content is… Looks like you have found a bug. I will look into it tomorrow and fix it. Thanks

  11. Jon February 16, 2010 at 12:46 am #

    Hi Tarique, I think I might be running into the same issue as decepive. I’ve configured the plugin successfully and added my flickr_photo_id to a couple posts, but yet, no comments are coming through. I thought it might only work for new comments made on my photos, but regardless of comment age, nothing is coming through. Any ideas?

  12. Jon February 16, 2010 at 12:56 am #

    Additional information:
    PHP – 5.0
    Wordpress – 2.9.1

  13. deceptive February 16, 2010 at 3:56 am #

    OK thanks, I managed to download ver 1.2 and can confirm it works, but only on my test blog. On my photoblog where I’d like to use it I’m using phootQ for the photoblog posts and I can not get any version to work (1.0,1.1,1.2 or 1.3) so I guess there is some incompatibility with photoQ :(

  14. Tarique Sani February 16, 2010 at 7:12 am #

    @Jon @deceptive – there will be a new version later in the day today which should solve the flickr_photo_id issue. I don’t know about compatibility with photoq though. More on that once this bug is fixed.

  15. Tarique Sani February 16, 2010 at 10:48 am #

    Hey Jon, deceptive try out the development version from http://downloads.wordpress.org/plugin/live-flickr-comment-importer.zip – Have just committed a fix to the bug.

    Also deceptive for photoQ uncomment the lines 29 and 30 in live-flickr-comment-importer.php and see what errors you get.

  16. Jon February 16, 2010 at 5:54 pm #

    Hi Tarique, unfortunately it doesn’t look like anything has changed for me. I removed the original version, uploaded the new files, reconfigured the plugin, but yet, none of my Flickr comments are showing up.

  17. Jon February 16, 2010 at 7:32 pm #

    I’m not sure if my comment made it through, but I have uploaded the new files and nothing seemed to change.

    Thanks.

  18. Jon February 16, 2010 at 7:41 pm #

    Question: Aside from activating the plugin, adding my API, adding the custom field to my post, is there anything else that I need to do? I was doing some additional reading and it mentioned that I need to add some code to my page.php file. Is that something I need to do?

    Thanks!

  19. Tarique Sani February 16, 2010 at 7:44 pm #

    @Jon as mentioned in the comment above uncomment the lines 29 and 30 and see if it is gives any error.

    Also is it working with embedded photos?

    You don’t need to add any code to page.php – where did you read that?

  20. Jon February 16, 2010 at 7:55 pm #

    Wow, that is strange, I guess it just started working? Hmm, I didn’t do anything else, so I’m not sure how it started working. This is great! Question, if you look at the comments, there seems to be a thumbnail of the image right next to the comment. Any idea where that is coming from?

    As for adding to the page.php file, I saw something about it here, http://www.boosten.org/using-custom-fields-in-wordpress-posts/.

    Thanks again and let me know what you think about the little thumbnail showing up.

  21. Jon February 16, 2010 at 8:02 pm #

    Alright, sorry to take over all of the comments, but one last question. Does it take a while for the comments to show up in my posts? I have added ids to all of my posts and some show up, some don’t.

    Thanks!

  22. decepive February 16, 2010 at 8:03 pm #

    Thanks for your speedy response, I can confirm the latest version now works. The problem I was having with photoQ was that I wasn’t using the_content() but a mixture of photoQ’s custom fields to build the post, I solved this by adding:

    $content = apply_filters(‘the_content’, $content);
    $content = str_replace(‘]]>’, ‘]]>’, $content);
    get_the_content();

    Which fixed the problem without replicating the content.

    You can see it in action here.

    Cheers, great plug-in.

  23. Tarique Sani February 16, 2010 at 8:05 pm #

    The thumbnail is a feature – you can style it to hide it – very useful for posts where you have multiple photos embedded eg: http://tariquesani.net/blog/2010/02/12/rann-of-kutch-day-7-last-day-and-the-last-word/

  24. Jon February 16, 2010 at 8:23 pm #

    Ok, last comment. First off, this is an absolutely awesome plugin, thank you so much for all your hard work. It looks like things are working for me, I was just impatient.

    You mentioned I could turn off the thumbnail image, where do I go to do that?

    Thanks again!

  25. Jon February 16, 2010 at 9:08 pm #

    I figured it out. Thanks again for all your help. This is awesome!

  26. ProphecyBlur February 18, 2010 at 2:37 pm #

    I’m not sure quite when this stopped working, but i recently upgraded to 1.3 of the plugin as well as 2.9.2 of WP

    Up untill then this has been running like a charm, any sugestions on what i might need to check?

  27. ProphecyBlur February 18, 2010 at 3:17 pm #

    Looking at the thread, do i maybe need to try your Development Version?

    • Tarique Sani February 18, 2010 at 3:22 pm #

      Hello PropheyBlur – yes please try the Development version…

  28. ProphecyBlur February 18, 2010 at 4:32 pm #

    Worked like a charm, many thanks this pluggin is fantastic

  29. Greg McMullin February 18, 2010 at 8:06 pm #

    Hi.

    Its me again, the guy who let you know about the bug in 1.2! I have the development version installed now as 1.3 didn’t seem to work for me.

    Anyway its pulling in all the posts fine but the flickr user icons dont appear to be imported. Which is a shame.

    Is there anything I can do?

    Cheers

    Greg

    • Tarique Sani February 18, 2010 at 11:00 pm #

      Looks like your theme does not support comment avatars and hence they do not appear.

  30. Greg McMullin February 19, 2010 at 1:34 am #

    I have them switched off right now because of the problem. If I enable them I just get the standard blank one. I can switch them back on if you wish.

  31. Greg McMullin February 19, 2010 at 1:36 am #

    They are now switched on and as you can see there is just the standard avatar displayed.

    • Tarique Sani February 19, 2010 at 8:40 am #

      The code for replacing the Avatar is in the function get_flickr_avatar and relies on the comment having an email address of nobody@flickr.com – did you change any of that?

  32. Greg McMullin February 19, 2010 at 5:13 pm #

    Not changed a thing. All I have done is changed my css to not display the thumbnail of the image in the comment.

    Bizarrely the avatars show up on the management pages fine. Just not on the comments.

  33. Greg McMullin February 19, 2010 at 5:15 pm #

    Actually scratch that. The avatars only show up in the “recent comments” int eh dashboard area. They do not appear anywhere else. This is weird.

    • Tarique Sani February 19, 2010 at 6:33 pm #

      Well you have changed atleast one more thing – removed the Flickr: prefix :-) But if they do show up in the Dashboard then I would suggest try changing the theme to default and see if they show up. The problem may not be in the plugin but some plugin overwriting the Avatar again…. perhaps another get_avatar hook is active

  34. Greg McMullin February 21, 2010 at 10:04 pm #

    It must be the theme i am using. The default theme shows the avatars just fine.

    I guess I am SOL.

    Thanks for your help.

    • Tarique Sani February 22, 2010 at 8:50 pm #

      Is it a free theme? If yes – give me the download link and i will atleast be able to tell you what is wrong :-)

  35. Greg McMullin February 24, 2010 at 1:53 am #

    Its the autofocus theme:

    http://wordpress.org/extend/themes/autofocus

    To be honest its not so much of a problem. I quite like how it looks with the avatars turned off.

    However…

    The posts from flickr are timestaped about 11hrs too early. Is there any way to fix this?

    • Tarique Sani February 24, 2010 at 6:59 am #

      The timestamp issue is a bug from Flickr side, if you notice at times it is also not in the right order… Sorry nothing can be done about it.

  36. Greg McMullin February 25, 2010 at 6:16 am #

    Yeah I figured that was the case. Shame nothing can be done. Thanks for all the help!

  37. Samuel March 5, 2010 at 3:51 pm #

    Hey, great work!
    The development version of 1.3 works for me (with the flickr_photo_id). I am looking very much forward for the sync feature from wordpress to flickr.

  38. Beth Madison March 6, 2010 at 11:45 am #

    I’ve been having some troubles with this great-sounding plug-in. I followed the instructions in getting the API key, but when I cut and pasted it into the required field in the settings for the Live Flickr Comments plug-in, I get a message saying “This is not a valid Flickr API key.” I don’t know what I’m doing wrong. Help, please!

    • Tarique Sani March 6, 2010 at 8:53 pm #

      @Beth try the development version of the plugin which is mentioned in the comments and let me know how it goes

  39. Beth Madison March 7, 2010 at 1:47 am #

    @Tarique,

    I actually did that: I downloaded the development version, but… and I feel really dumb here… I downloaded the zip to a temp file and it got extracted, but I thought it would automatically install itself. When it didn’t, I tried re-starting because I thought the program might fine the new version. Do I have to manually install/copy the file to a certain directory or to wordpress itself? Can you advise me? Thanks… I’m sorry if this is really obvious.

  40. SMae March 26, 2010 at 3:11 am #

    Hello,

    This is a really great plug-in, I was hesitant to use Flickr before I found this.
    My question might be quite amateur but I was wondering if there is a way to remove the photo thumbnail in the comments with out using css {display: none;}? As that would mean smilies dont show up either, I think?

    Cheers,
    SMae

    • Tarique Sani March 26, 2010 at 1:10 pm #

      Hello Sarah, try the development version of the plugin – you can control the thumbnail option by adding meta fields. HTH

  41. Daniel March 29, 2010 at 8:45 am #

    Hi, I’m wondering if anyone else is having issues where comments are being duplicated in newly created posts.. Same flickr comments twice and even three times in a row sometimes.. Is this a known bug?

    • Tarique Sani March 29, 2010 at 9:32 am #

      No this one is new! Can you please give me a URL to look at?

      • Daniel April 2, 2010 at 6:23 am #

        I’m thinking that it may be conflicting with another plugin .. It only does it sometimes too which is odd.. I’m going to test and see if I can narrow it down.. I’ll keep you up to date, because this plugin is *perfect* for what I need. Definitely want to get it working right

        • Tarique Sani April 2, 2010 at 9:52 am #

          Yes please keep me updated. I will add a compatibility note if needed.

        • Tarique Sani April 9, 2010 at 6:12 pm #

          Daniel – see my reply to Klaus

  42. SMae March 29, 2010 at 3:36 pm #

    I did a bit of digging and figured that you can just add this to your css file to get rid of the thumb…

    .comment-thumb {display: none;}

    Cheers,
    Sarah

  43. Klaus April 9, 2010 at 12:51 am #

    A great plugin, but I’m having a little problem.
    Some Flickr comments appear twice, some 3 or 4 times in a row.
    Here’s a link:
    http://virtua-gallery.com/wp/2010/04/skywatch-friday-season-4-episode-39
    Any idea on what might cause that?

    • Tarique Sani April 9, 2010 at 10:14 am #

      Thanks Klaus – this is a second report of the bug but first with a URL for me to see – Thanks for that I will work on it :-)

    • Tarique Sani April 9, 2010 at 6:12 pm #

      Klaus and Daniel – I looked into the bug and I will try to explain what could be happening. The plugin keeps track of the uniqueness of a comment by checking the permalink which it stores the DB, since the permalink on flickr is unique it looks like a fool-proof thing to do. However importing comments can take some time and if there are concurrent hits to the site there is a possibility that the same comment may get inserted twice. The second possible explanation is that the wp_specialchars() function used before the insertion of the comment is messing it up but in that case every reload of the page will have the comment inserted again…..

      Anyway, what I am planning to do over the weekend is add some code to detect and delete if there are more one of the same comment detected. Hope that will solve the issue

      • Daniel April 25, 2010 at 6:07 am #

        Thanks for staying on top of this.. Was this addressed in the 1.5 update? I had to disable the plugin because of the issue, but realized when I was doing site maintenance that there is an update.. Thanks again

  44. Klaus April 14, 2010 at 10:43 pm #

    Thanks Tarique!

    Was the fix in the recent update?
    If so – I make a check to see if it works…

    Klaus

  45. Klaus April 14, 2010 at 11:07 pm #

    I did a check with an image with a lot of comments – and it seems to work perfectly! Good job, Tarique!

    Like the changes in Comment layout, too.

    • Tarique Sani April 15, 2010 at 8:02 am #

      Nice to know that it is working perfectly now :-)

  46. Klaus April 14, 2010 at 11:08 pm #

    Addendum – here’s the link:
    http://virtua-gallery.com/wp/2010/04/flickrs-favorite/

  47. Kelly April 27, 2010 at 8:14 pm #

    This plugin rocks! Nice job!
    Just a bit of a long shot here…I added the show thumbnail custom field to my post. The avatars show up in my dashboard but not on the actual blog. I was wondering if you might know why that is? (Page link: http://kellyrachel.com/blog/2010/04/27/digital-art-journal-introduction/ )
    I am using WP 2.9.2 and the Thesis theme, 1.7.
    Any help is greatly appreciated. Thanks!

    • Tarique Sani April 27, 2010 at 9:10 pm #

      The custom field is for showing the photo thumbnail in the comment. Since the Flickr avatars show up on the dashboard it has to be the way Thesis theme displays them…. Will try and resolve in a few days

      • Kelly April 27, 2010 at 9:33 pm #

        Wow that would be great. Sorry I don’t know much about coding and the likes and I really appreciate your time in trying to work this out. Cheers.

        • Tarique Sani April 28, 2010 at 11:44 am #

          I noticed the getting Thesis theme needs registration :-( am reluctant to do that. Can you confirm that if you see your site using the default theme the avatars show up? If yes then may be we can write to the Thesis developers

  48. Christopher April 28, 2010 at 11:04 pm #

    Hi Tarique,
    I’m in exactly the same boat as Greg McMullin 2.18.10 / 8:06pm. I am using the AutoFocus theme and this plugin works great, except no avatars. I would even be happy with a generic “Flickr” icon in place of an avatar, as I’ve done with other services (Buzz and Facebook). Were you ever able to determine why avatars don’t display right in AutoFocus? Secondary question: I notice that all imported comments come in with the email address “nobody@flickr.com”. Can I somehow just pick an avatar to use for comments form this email address?

    Thanks so much for your work on this!

    • Tarique Sani April 29, 2010 at 9:32 am #

      Ok!!! I found the problem – The Autofocus calls the get_avatar() function with the comment_email as the parameter. If it could call it with the comment object as a parameter it would work perfectly. If you would replace http://sanisoft.com/downloads/functions.phps with the functions.php in your Autofocus theme folder it will work perfectly – I have just added $comment on lines 692, 732 and 740

      Incidentally this will be a problem with all the themes which call get_avatar() with email instead of the comment object

      • Kelly April 29, 2010 at 10:59 am #

        Will this work for me too? I want to help find the problem for my site, but if I change my theme will I lose all my customisations? I’ve spent a lot of time customising the Thesis theme. Sorry if this is a dumb question, I have only been using WordPress less than a month.

        • Kelly April 29, 2010 at 11:42 am #

          I posted on the Thesis forums asking for help. If you know specifically any information I should be giving or any specific questions I should be asking, please tell me and I’ll add that info.

          Thanks again for your hard work.

        • Tarique Sani April 29, 2010 at 12:40 pm #

          Since you have already customized the theme I guess the best option is to zip it up and mail it to me – Your problem will be similar but not exactly the same. On the Thesis forum ask for what changes to make to get_avatar() call so that it uses the comment object instead of just the email….

  49. Kelly April 29, 2010 at 1:56 pm #

    I found the part in the code that calls the avatar:
    function avatar() {
    $avatar = get_avatar(get_comment_author_email(), $this->meta['avatar']['options']['size'], '')
    $author_url = get_comment_author_url();
    $avatar_output = (empty($author_url) || $author_url == 'http://') ? $avatar : "$avatar";
    return '' . apply_filters('thesis_avatar', $avatar_output) . ''; #filter
    }

    Does that seem right? Does it help?

    • Tarique Sani April 29, 2010 at 2:12 pm #

      Yes that is the right part now

      $avatar = get_avatar(get_comment_author_email(), $this->meta['avatar']['options']['size'], ”);

      should be

      $avatar = get_avatar($comment, $this->meta['avatar']['options']['size'], ”);

      But then the function avatar() should be able to get the $comment object from somewhere. Typically avatar() would called within the comment loop. If you dig a bit more you will be able to get it….

    • Kelly April 29, 2010 at 2:18 pm #

      I zipped the theme and sent it to you. I’ll stop clogging up your comments page now.

  50. Kelly April 29, 2010 at 4:14 pm #

    Oh my god. You are a genius. Thank you so much!!!

    • Tarique Sani April 29, 2010 at 4:37 pm #

      I just changed 2 lines of code. Thanks for using the plugin.

  51. Lynda May 6, 2010 at 9:31 pm #

    I installed this plugin last night and I couldn’t be happier with it! It is exactly what I was looking for! For the reasons you mentioned in your post, I was not happy with the other Flickr comment importer plugin available. I’m pimping this plugin on my site today. Thanks so much!

  52. GammaBlog May 8, 2010 at 6:51 am #

    I had some confusion about the API key at first, but it seems to be working fine now. I notice that it plays nice with the old comments from the older Flickr Comment Importer plugin. And I love that it imports the Flickr user icons. Very nice job. Thanks.

  53. Paul R. Giunta June 18, 2010 at 1:16 am #

    I added this plug-in last night and I am also having the issue where the avatars are not showing.

    I could not find the fix in all of these comments. Is there one?

    I am running the theme Traction on my site and the avatars do show on the dashboard but not in the posts.

    How can I fix this?

  54. Paul R. Giunta June 18, 2010 at 7:54 am #

    It seems as if Gravatar is trying to pull in the avatars.

    Here is the code:

    What should I change to get this plug-in to take over?

  55. Paul R. Giunta June 18, 2010 at 7:56 am #

    Sorry!

    ?php echo get_avatar( get_comment_author_email(), ’39′ ); ?>

    </di

    • Tarique Sani June 18, 2010 at 9:34 am #

      See my reply 4.29.10 / 2:12pm – that should fix it!

  56. Patrik July 18, 2010 at 1:49 am #

    hi! Seems like a good plugin but doesn’t work in wordpress 3.0… Am I the only one experience this or doesn’t it support 3.0 yet?

  57. Patrik July 19, 2010 at 3:40 am #

    Hi
    Ok, then i must be doing something wrong.
    I’m trying to link this post: http://patrikhermansson.com/redwoods-kalifornien/
    with this image: http://www.flickr.com/photos/patrikh/4778043477/

    My api key is correct and I created a new custom field called flickr_photo_id on the edit page and added the id (4778043477). I have also disabled chache.
    What could be wrong?
    Thanks for your quick reply!

  58. Patrik July 19, 2010 at 2:19 pm #

    ok, I tested the default 2010 team and it worked perfectly so it’s something with my selfmade custom team… Does the comments.php need to have something special for the plugin to work?

    • Tarique Sani July 19, 2010 at 3:03 pm #

      The plugin depends on

      add_filter( ‘get_avatar’,'get_flickr_avatar’, 10, 3 );
      add_filter(‘the_content’, ‘live_flickr_comment_importer’);
      add_action(‘admin_menu’, ‘lfci_config_page’);

      All of which work in pretty much any theme. I can’t really speculate on what is the problem with your theme.

      Also if by any chance you have marked the puling as ‘not working’ on the wordpress site it would be kind if you can now mark it as working….

  59. Patrik July 19, 2010 at 4:26 pm #

    That’s what I found. I’m using get_the_content to filter out images from my post and therefore the_content() wasn’t included on my pages. I have changed that now and filter out images via functions.php. The plugin works flawlessly! Thank you so much for your help, I marked it as working on wordpress.org.
    I removed the “Filckr:” though and added an icon instead. http://patrikhermansson.com/redwoods-kalifornien/

    • Tarique Sani July 19, 2010 at 4:35 pm #

      Great! Nice to know it is working. The icon is indeed a nice touch as well…

  60. Peter R July 26, 2010 at 12:59 pm #

    Hi,
    Thanks for this good plugin. I’ve been testing this for couple of weeks and discovered a “minor” bug.
    If you embed your photos with Flickr Gallery plugin, the comments will not be imported at all, if the first flickr photo id does not contain any comments.
    I explicity tell with custom fields which flickr photos that is embeded.

    BR,
    Peter

    • Tarique Sani July 26, 2010 at 5:20 pm #

      I am not sure I understand what you are trying to say – can you give some example?

      • Peter R July 26, 2010 at 6:32 pm #

        Ok, In my post I tag with [flickr size="medium" float="left"]4826941658[/flickr] [flickr size=medium]4826334887[/flickr]
        and at in custom fields i use your “flickr_photo_id” tag and add (in above case) 4826941658, 4826334887.
        If the first of the IDs does not contain any comments, no comments at all will be imported i.e. the first flickr id have to have comment to enable import of comment. You can see at my latest post on my blog, that the order is as above, but no comments was imported. I changed the order (b/c the second image has comments) in custom fields and then comments was imported and visualized in comments section.
        Hope that I’m clear enogh, please let me know how I can assist you any further.

        Rgds,
        Peter

        • Tarique Sani July 26, 2010 at 7:05 pm #

          Thanks Peter – understood, shall fix in the nest release :-)

        • Tarique Sani August 7, 2010 at 10:03 am #

          Peter,

          Set out to fix this bug but I have been unable to replicate it – so for now doing nothing….

        • Peter R October 6, 2010 at 12:43 am #

          Hi,

          I’ll guess that if you have a space in between the ID’s (i.e. 231232, 23423424) the plugin will not read the rest id’s comments.
          BTW I can’t get the corresponding photo for which the comment belongs to, despite ‘flickr_show_thumbnail = Yes’. Any ideas or how to debug?

        • Tarique Sani October 6, 2010 at 7:01 pm #

          Yes the ID’s have to be just comma separated if there is a comma and space it will fail. A minor bug which I will correct in the next release. Is the thumbnail not showing at all? Also the thumbnails will show up only in the comments imported *after* the flickr_show_thumbnail has been set to yes. The comments imported *before* the setting change will not show thumbnails

  61. estrella July 28, 2010 at 11:11 pm #

    Sorry for my bad English
    Probably somebody talked about it before.
    I’ve installed your awesome plugin but I have problems with custom field. If I embeb photo it works well, but not with custom field. Any idea please. I’m doing something wrong? I forgot anything?
    Cheers from Barcelona in a sunny and very hot day

  62. Dave July 31, 2010 at 10:47 pm #

    I was just wondering if you could give me a little help or a point in the right direction,
    i’m using a theme called grain on my photoblog, the plugin is fetching the comments from flickr but the avatars aren’t showing.

    thx in advance

    • Tarique Sani August 1, 2010 at 1:04 pm #

      The get_avatar() call should get the comment object as the first parameter – like

      $avatar = get_avatar($comment, $this->meta['avatar']['options']['size'], ”);

      You theme most likely uses just the email

  63. Michael August 3, 2010 at 4:56 am #

    Hey there. The plugin was working for a while, now it has mysteriously stopped for some reason. The last 5 or 6 posts seemed to have stopped working actually. Suggestions? What should the settings of plugin folder on my server be as far as permissions. Also, the flickr avitars do not show up. The did in the comment area on the dashboard, but not on the site. I am using a ProPhoto theme.

    Thanks in advance!

    • Tarique Sani August 3, 2010 at 4:06 pm #

      Can’t be anything with the setting in the plugin folder – see the comments above for the answer to the avatar problem….

  64. Tom Allen August 11, 2010 at 1:05 pm #

    Is it possible to set flickr_show_thumbnail as a global option? Almost all of my posts have multiple Flickr photos.

    Next, hyperlinks in Flickr comments are not imported.

    Apart from that, it works great, but a little more customization would be nice!

    • Tarique Sani August 11, 2010 at 3:43 pm #

      flickr_show_thumbnail as an option – good idea, will implement in next release. The hyperlinks as well as any HTML is not included as a part of the design. May be an option for that will be a good idea as well

      • Tom Allen August 12, 2010 at 1:25 pm #

        Nice.

        Another feature I would like to see would be to restrict comments to a single account. I’ve used a very popular CC photo on one of my posts from another Flickr account – and suddenly realised that it’s imported all 700+ comments on someone else’s photo! Aargh!

        One more – it would be nice if the plugin was ‘non-destructive’ – i.e. deactivating it also removes all the Flickr comments. I understand that this would mean a rather fundamental rewrite of the code. At least, it would be good to have some way of removing all imported comments easily in case the plugin is not suitable.

        • Tarique Sani August 12, 2010 at 1:49 pm #

          Restricting to an account wont be possible. There is a do not import custom field for that.

          I may consider adding ability to remove all Imported comments but definitely not on deactivation. What if someone wants to deactivate the plugin but retain comments?

  65. Matthew Lowery September 19, 2010 at 3:22 am #

    This is my favorite plugin ever. Thank you.

  66. Ed October 7, 2010 at 4:29 am #

    I seem to have a problem if I use the same flickr image in different posts. One post will show the comments, the other will not. Not sure if this related but one post had wordpress comments (does not show flickr comments) and the other did not have wordpress comments (this one shows the flickr comments).

    Page that does not show flickr comments is: http://photoadventureswithed.com/portfolio/charity/ems-photo-show-and-charity-raffle/
    Page that shows flickr comments is: http://photoadventureswithed.com/portfolio/adventure-trips/sossusvlei/

    • Tarique Sani October 7, 2010 at 8:18 am #

      This was a deliberate design decision to prevent same comment at two or more places….

      • Ed October 7, 2010 at 6:01 pm #

        Probably, not a bad idea. Thanks for the quick response. Awesome plug-in.

  67. Marco La Civita October 18, 2010 at 5:42 am #

    Hello Tarique. First of all thanks for this plugin! It is a really useful one.

    I have installed on my blog and while doing some test the following happened. After having imported the comments from Flickr to a particular post, I trashed them in WordPress and now I am not able to reimport them anymore. Not even if I erase the post and do a new post embedding the same image. Is there a way to go around it and re-import the comments from Flickr to the post that contains that particular picture?

    Thanks,

    Marco

  68. Marco La Civita October 18, 2010 at 1:53 pm #

    It worked!

    One more question. Do you know if and how your plugin works with DISQUS?

    Thank you,

    Marco

    • Tarique Sani October 18, 2010 at 1:55 pm #

      No it will not work with DISQUS.

    • Peter R October 18, 2010 at 1:56 pm #

      It does not work at all. Disqus can’t import the links and other stuff. It did not work for a couple of sub versions anyway, have not tested the latest…

  69. Marco La Civita October 22, 2010 at 8:28 pm #

    Hello again. This plugin really rocks. Question: are there any chance that it could import even favorites and group invitations as they now appear in the comments’ thread in Flickr?

    Thank you,

    Marco.

    • Tarique Sani October 24, 2010 at 3:34 pm #

      While they do appear in the same thread – the API which this plugin uses does not show them as such…

  70. Klaus December 14, 2010 at 12:26 am #

    Works nicely! Good job!
    Just one problem – after each comment are some numbers like: 2283++25145776@N06 not found says:
    How can I get rid of that?
    Thanks in advance

    • Tarique Sani December 14, 2010 at 9:11 pm #

      Hey Klaus, I am trvelling for the entire next week… Will take a look as soon as I get back…

  71. Ahmed Shiham December 19, 2010 at 4:54 am #

    Thanks for this awesome plugin and this plugin does what I exactly needed. But recently I have shifted my commenting system to Disqus Comment System: http://disqus.com/ and the plugin won’t work if I enable the Disqus Comment System. Could you please advice me on how to make this plugin work while using disqus? Thanks a lot!

    • Tarique Sani December 19, 2010 at 7:03 am #

      Sorry, the plugin will not work with any other system other than wordpress default

    • Klaus December 19, 2010 at 7:19 am #

      Just a word to Disqus. Stay as far away from it as possible. They are data collectors of the worst kind and track their user’s everywhere. Might be good for comment handling – but poisonous for the privacy of your users.

  72. Ahmed Shiham December 19, 2010 at 2:20 pm #

    Thanks guys. Maybe buddypress will do the trick. *Continuing to use your plugin!*

  73. Carlos February 19, 2011 at 6:34 pm #

    Hello Tarique,
    I’m having a little problem with your plugin.
    The plugin can retrieve the commente in Flickr, seve it in the wordpress database, but the avatar are not show. Instead, this code are generated in the ims src: http://static.flickr.com//buddyicons/.jpg
    Another strange thing is that the avatars are showed in every page of my blog, but in the specific post (with the flickr photo with the comment) NONE avatar are show. Every avatars are now showed as http://static.flickr.com//buddyicons/.jpg
    The problem occur only in the post with the comment.
    I've searched the codes of the theme (Fusion) and, as far as I can understand, the methods of geting avatar is the above mentioned.
    What is happenig? What mistake am I meking?
    Thanks in advance

    • Tarique Sani February 22, 2011 at 3:32 pm #

      The showing of Avatar depends on the comment_author_IP field in the comments table – can you share the content of that field for one of the comments imported from Flickr?

      • Carlos February 22, 2011 at 6:26 pm #

        Hello, and thanks for the attention.
        The comment_author_IP for that particular comment is empty, but I’ve made a comment by myself in another picture and then the coment_author_IP is this: 164++21043684@N00

        Once more, thank you for the attention, and thanks for the help

      • Carlos February 22, 2011 at 6:39 pm #

        Ant, after the this test, I’ve noticed making another comment, the problem of the repeating avatars disappears.

        • Tarique Sani February 22, 2011 at 6:41 pm #

          I am not sure what you mean by your second comment….

  74. Carlos February 22, 2011 at 7:05 pm #

    Sorry. English is not my first language…;)
    Regarding the avatar not showing: the comment where the person don’t have an avatar doesn’t import any icon form flickr. Just show http://static.flickr.com//buddyicons/.jpg. The
    http://farm1.static.flickr.com/164/buddyicons/21043684@N00.jpg appears when I make a comment. I think the problem is when importing the comment of a person without avatar on flickr.

    The second problem: when the post has a comment imported from flickr, all avatars in that page are showed repeatedly as the avatar of the first comment imported. But, posting another comment with the default wordpress comment system, fixes it and the avatars appears normaly.

  75. Carlos February 23, 2011 at 7:21 pm #

    Hi Tarique.

    I’ve noticed that the comment_author_IP is empty when the commenter in Flicker do not provide an avatar. This way the avatar cannot be imported by the plugin.
    To bypass this, I made some modifications in the function get_flickr_avatar:

    function get_flickr_avatar($avatar, $blah, $size) {
    global $comment;
    if ($comment->comment_author_IP != "") {
    if($comment->comment_author_email == 'nobody@flickr.com'){
    $tmp = explode("++",$comment->comment_author_IP);
    $avatar = "";
    }
    }
    return $avatar;
    }

    This way, the $avatar does not receive the img code and the theme generates ths gravatar code by itself (the theme default).

    The problem with the repeating avatars I fixed whit the use of
    remove_filter( 'get_avatar','get_flickr_avatar', 1, 3 );.
    I realized that the filter was turnig every avatar the same, after its use.
    But, the remove_filter I putted in other plugin, because if used in your plugin, none avatar imported from flickr appears.

    This way, the plugins works flawless here.

    Sorry to bother you with so many questions and comments here. I loved the plugin and really want it to work.

    by the way, I’m a physician to.

    Once more, thank you for the help and quick answers.

  76. Usman May 10, 2011 at 9:44 pm #

    Hi Tarique,
    I must say this is a great plug-in, you have done a great job… thanks a lot!

    I do have a question though; how can I remove the “Flickr:” prefix just before author’s name? I have removed it from live-flickr-comment-importer.php but it’s still showing the prefix.

    Here is the page:
    http://www.quadvisionphotography.com/there-is-more-credit-and-satisfaction-in-being-a-first-rate-truck-driver-than-a-tenth-rate-executive/

    Please excuse my ignorance but I’m not into this coding stuff. I would really appreciate your help.

    • Tarique Sani May 13, 2011 at 4:48 pm #

      Removing it from live-flickr-comment-importer.php should have fixed it – just rescan the file for the occurrence of the word…

      • Usman May 19, 2011 at 2:08 pm #

        Hello Tarique,

        Yes I have searched the file for any other occurrences and there are none but it still shows the prefix on the page. I even changed the prefix from “Flickr:” to “By:” but there’s no affect.

        For reference, here’s the code:
        Original

        $commentdata['comment_author'] = "Flickr: ".wp_specialchars($comment['authorname']);

        Changed to

        $commentdata['comment_author'] = wp_specialchars($comment['authorname']);

        • Tarique Sani May 19, 2011 at 3:27 pm #

          I am not sure then why you are getting the Flickr: prefix – also do note that making the change will only affect future comments and not comments which have been already imported….

  77. pp June 3, 2011 at 3:44 pm #

    When posting single photos it works like a charm, but when there are multiple IDs it’s doing nothing. Too bad.

  78. marcel June 19, 2011 at 10:47 pm #

    Hi there,

    I am using your wp-plugin and like the functions very much. thanks!

    unfortunately I experience very severe performance issues. when I activate your plugin I got the problem that the website (http://www.muenchphoto.de/) takes ages to load. I assume its due the fact the plugin is loading all the comments / thumbnail from flickr.

    problem is that I am not too familiar with the coding so that I can only assume that during the time the flickr live importer loads the comments feed, the jquerry picture gallery I am using can not finish loading its code. wordpress will first load all the pictures and display them one beneath each other instead of completing the actual scrollable gallery like it should, and like it does normally when the flickr comment importer is disabled.

    I tried to fix this by installing caching-plugins (WP Super Cache, PHP Speedy etc.) which make the website load completely on click and then switch to the new page instantly as soon as everything is loaded. This solved nothing .. when clicking on a link to a new picture gallery it takes a really long time (sometimes 50 seconds or more if there are 10+ comments) until everything is loaded.

    Once again, when I disable the flickr live importer it loads smoothly and quickly.

    My plugin directory is set writable by webserver. Do you have any other ideas how I could increase speed of the plugin or make it load at the end.. when everything else is loaded properly and working already?

    that would be great, because I would like to use the benefits of the plugin.

    thanks for your support.

    regards!

    • Tarique Sani June 20, 2011 at 12:10 pm #

      Looks like the connection between your server and flickr is very slow. I can easily load more than 100 comments in 10 sec or less. The only thing that I can suggest is increase the phpFlickr cache time limit by finding the line $f->enableCache(‘fs’, ABSPATH . ‘wp-content/plugins/live-flickr-comment-importer/phpflickr/cache/’); and giving it a third argument as the time you want the results to be cached before the plugin tries to fecth more comments. The default time limit is 600 secs

  79. Hans Woltering July 6, 2011 at 2:21 am #

    I’ve been using this plugin for some time now and it always worked flawlessly. However, I know moved to another theme which uses custom post types in the form of Portfolio items instead of the normal post items.
    Now I found out that this plugin doesn’t work with that, but I am curious if there would be any solution to it. I hope you can help, as it would brighten up my site a lot again :)

    Thanks for your support.

    • Tarique Sani July 6, 2011 at 11:16 am #

      The plugin works on the $post->post_content – this is written around line 253 of the plugin file. Now if you can use whatever variable that contains the flickr picture URL the plugin should work again. Alternatively you can insert the flickr IDs in the custom fields as described.

      • Hans Woltering July 16, 2011 at 12:14 am #

        In this portfolio part there isn’t a possibility for custom fields. I guess it should be possible to add them, but I’m not really into the code of it all. Those items are exactly the same as the standard posts or pages, but then in a different menu.

  80. Andy Ogden August 5, 2011 at 3:47 am #

    I’ve installed this plugin on my site and so far nothing has happened. If you follow the link below, this page has the image embedded and also a custom field containing the id as per the setting page, however no comments have been imported :(

    http://blog.aoweb.co.uk/2011/08/03/hunting-crickets/

    Using WP 3.2.1, and PHP v5.2

    • Tarique Sani August 5, 2011 at 9:46 am #

      Have you added and saved the Flickr API key in the plugin settings?

      • Andy Ogden August 5, 2011 at 1:39 pm #

        Seems it was just very slow to populate, when I checked this morning all comments had been added from Flickr.

        Thanks
        Andy

  81. Andy Ogden August 5, 2011 at 1:43 pm #

    I can see now that it’s brought through comments from another users image that I embedded in a post because I liked it. It there any way to only import comments from my own photos on Flickr?

  82. Andy Ogden August 5, 2011 at 1:50 pm #

    I really should’ve checked back on setting before posting again, so do I need to set a value such as TRUE against the custom field flickr_dont_import?

  83. Jorge Ledesma August 9, 2011 at 10:12 pm #

    Hello Tarique, thank you for making my day, you’ve added a new dimension I didn’t think was possible. The above url is my test which is fully operational and I setup the plugin and set up a few blog posts and it works like a charm. But, I added the flickr id to a regular page and a custom page template and neither worked so far.

    I was wondering if you can shed some light as to what may be preventing the comments from echoing on the Pages.

    Here is a regular page http://meyer-waxy.jorgeledesma.net/tt/ and here’s the custom template which happens to be the same image as well but with a diff page ids(which I would think it doesn’t matter as long as they are diff ids http://meyer-waxy.jorgeledesma.net/portfolio/)

    My initial thought was based on reading the comments that something is missing from both my regular page.php and my portfolio.php template.

    Anyway, glad to be here, just added you via flickr contacts as well, lovely images, I’m more of a street photographer(actually we have a few things in common, both come from medical(dental in my case) and love photography and the web.

    Cheers and hope to hear from you soon.

    Regards from Miami, FL.
    Jorge Ledesma

    • Tarique Sani August 10, 2011 at 1:03 pm #

      The plugin hooks into the_content() if your theme or template does not use it it will not work.

      • Jorge Ledesma August 12, 2011 at 2:12 am #

        Thanks, also to report that “Comments on multiple photos can be imported in a single post” is not working. I put both flickr photo id in a post and only the 1st one I inputted shows up, then 2nd image I added didn’t here’s the post http://meyer-waxy.jorgeledesma.net/photo-essay/lou-beer-burger

        the 2nd image is the one that’s missing the comments, an FYI.

        • Tarique Sani August 12, 2011 at 9:03 am #

          The IDs need to be entered comma separated without any spaces in between

  84. Jorge Ledesma August 16, 2011 at 5:51 pm #

    Thanks Tarique, will do. I was thinking for a future update perhaps the plugin would be able to display the flickr favorites as well back to WordPress. Sometimes folks don’t comment but mark your image as a favorite thus showing their support, it would be a nice detail to have that in your wordpress blog as well.

    Cheers and regards,
    Jorge

  85. Luci October 4, 2011 at 7:32 am #

    Just found this plug in and love what it can do! Was wondering, is there a way i can pull comments for all photos contained in a set without having to input all the photo id’s?

    i dont want the set comments, i want the comments on all the photos within the set.

    Thank you!

    • Tarique Sani October 4, 2011 at 9:28 am #

      Sorry other than putting in all the IDs, currently there is no way to get all the comments in a set – also as a caution I would advise that do not put more than 20 photos in a single post, it may slow down the page load times to unacceptable levels because all the new comments are searched for when the reader goes to a page

      • Luci October 4, 2011 at 9:34 am #

        Do you happen to know of a way to export a list of all ids within a set, without all the other information usually associated with the image?

        • Tarique Sani October 4, 2011 at 9:42 am #

          Sorry again – I don’t know of such a tool

  86. Jorge Ledesma October 4, 2011 at 9:31 am #

    Any news Tarique on the Flickr Favorites, tons of folks favorite images without commenting, anyway, here’s my wishful thinking.

    Cheers,
    JL

    • Tarique Sani October 4, 2011 at 9:41 am #

      Hi,

      as of now I don’t plan to have favorites show up in comments – unless someone submits a patch :D However my other plugin flickr-foto-info shows the number of favorites in the info box

      Cheers

  87. Matt December 28, 2011 at 3:23 pm #

    Hi Tarique,

    Just recently upgraded to WordPress 3.3 and now it’s not working. Any issues that you’re aware of with WP 3.3? Running version 1.7.1

    Thanks.

    • Tarique Sani December 29, 2011 at 11:19 am #

      Hi Matt, Working perfectly for me with V3.3 – why don’t you try the development release? Has some new features too… You will have to enter the FlickrAPI key again so make a note of it before you upgrade….

  88. matia January 16, 2012 at 3:09 am #

    This plugin can import comments on photos of 2 different accounts?

  89. Max January 31, 2012 at 3:32 pm #

    Hi, first of all, thanks for Your excellent plugin,
    I’ve notice that with WP3.3, only in the dashbord, the profile Icon is changing with the last import comment from Flickr, then if I watch the url of the icon it’s going to a buddy icon of a flickr profile, how can this can be happen? It’s a bug or something did you already know?
    Can You give me a suggestion to fix it.
    Thanks a lot
    Have a nice day,
    Max

    • Tarique Sani February 2, 2012 at 2:18 pm #

      Thanks for reporting – will investigate, though off hand I can’t seem to be able to replicate it.

  90. Yann February 12, 2012 at 5:48 pm #

    Hi Tarique,

    first of all, I would like to thank you for this plugin. It’s great.

    So far I used the standard twenty eleven theme by WordPress and everything worked fine. Now, however, I changed to the free photoblog theme ‘mixfolio’ by Graph Paper Press and the comments are no longer displayed. Desperately looking for the error in the theme files I still didn’t come up with any explaination.

    The comments from flickr are just not displayed, whereas other comments submitted on the blog are displayed correctly. The flickr comments can also be seen in the comments settings, dashboard, etc. Furthermore, as I already mentioned, the comments are displayed correctly if I just use another theme. One example could be seen here: http://yannprell.com/photo/2011/08/31/56/

    Do you have any clue why it won’t work?

    Thanks,
    Yann

    • Yann February 12, 2012 at 11:21 pm #

      Problem solved… the functions.php was missing a critical part concerning the comments. Thanks anyway.

  91. Andy Ogden March 1, 2012 at 5:25 pm #

    Hey Tarique, still loving this plugin, but it’s playing hell with my Google keywords. I currently have over 700 mentions of Flickr on my site, as far as I can tell this is all coming from my comments as I only mention it perhaps once in a weekly post.

    Could there be a sensible way to reduce the number of mentions of flickr in each comment? It’s the comment I’m interested in, so could I exclude the icon of the linked Flickr upload and also the link back to the users comments itself. The only thing I’d want to keep would be the Flickr members icon.

    Thanks
    Andy

    • Tarique Sani March 1, 2012 at 7:05 pm #

      You can edit the plugin or use the dev version which has an settings option of having your own prefix for the comments. I presume that is where the word Flickr is coming from! Do note that in the dev release you will have to add the Flickr API key again

  92. Martyn May 23, 2012 at 3:29 pm #

    Hi Tarique,

    First of all I must say this is a wonderful plugin and the best comment importer I have found.

    My problem I have though since rebuilding my site using WordPress 3.3.2 the flickr user avatar’s are not displaying anymore and wondered if you could shed some light on this for me.

    Cheers

    Martyn.

    PS you have some stunning images on your photoblog.

    • Tarique Sani May 24, 2012 at 8:52 am #

      Hello Martyn,

      Thanks for the appreciation and thanks for using the plugin. I am also using WordPress 3.3.2 on my blog and I have not experienced any problems. Which version of the the plugin are you using?

      Would you like to try out the latest development version?

      Cheers
      Tarique

      • Martyn May 25, 2012 at 3:02 am #

        Hello Tarique,

        Thank you for your quick response. The version I am running is 1.7.1 which I believe is the latest version generally available. I would appreciate the offer to try out the development version.

        Cheers

        Martyn

        • Tarique Sani May 28, 2012 at 4:03 pm #

          Hello Martyn,

          Here you go download the latest 1.8 version Do remember that you will have to add your Flickr API key again. So copy it somewhere before you install the new version. Let me know how it goes

          Cheers
          Tarique

  93. Martyn May 30, 2012 at 6:00 pm #

    Hi Tarique,

    Sorry for the delay in my response. I have only just downloaded the new version and glad to say it all works fine now. Great pluggin and hats of to you for efforts and a first class WordPress bolt on.

    Cheers

    Martyn

  94. Michael May 30, 2012 at 11:51 pm #

    I am still having a few issues with my site. It is a Pro Photo wordpress theme site. Is there a way I can email screen capture shots of my settings to see what I am doing wrong?

    • Tarique Sani May 31, 2012 at 11:13 am #

      See the comment above and download the latest dev version tor try – upload your setting grab to any of the public photo sites and post a link

  95. Andy Ogden June 5, 2012 at 12:36 am #

    Hi Tarique

    I’ve been hoping you’d add a feature for handling favourites at some point, however I’m having some problems with this feature on my development site. You can see an example here http://www.andyogden.co.uk/diverso/spider-ball/

    There are only two favourites on the image used in this post, but every time I refresh the page the comments get duplicated.

    I also notice you’ve started populating the ‘comment_type’ field on the db comments table. This has caused some problems with my theme Diverso, but as there is no problem with the Twenty Ten theme I’m pursuing a fix with the themes developers. Will this change definitely still be in 1.8 when it’s released as the major version?

    Thanks
    Andy

    • Tarique Sani June 5, 2012 at 8:19 am #

      Hello Andy,

      I went to your dev site – I can see the number of comments but not the actual comments. whatever features are there in the plugin dev version will definitely be there in the the next release.

      As for duplicates It is the the SQL query at line 278 which does that check – I am not sure as to why it would be failing in your case….

      • Andy Ogden June 6, 2012 at 4:23 pm #

        Hi Tarique

        I think I’ve found the cause but would like to confirm it with you…

        I beleive I’ve found the section of code you’re referring to, line 278 is
        $test_dupes = $wpdb->get_results( “SELECT `comment_id` FROM {$wpdb->commentmeta}

        I noticed that you use {wpdb->commentmeta}, which I’m assuming allows for the WP feature for replacing the tables with a custom beginning. However the following line which is being compared for duplicates refers directly to wp_commentmeta and not the above wpdb reference.

        SELECT comment_id FROM `wp_commentmeta` WHERE `meta_key` = ‘nsid’ AND `meta_value` = ‘{$person['nsid']}’

        It therefore appears as though you are comparing against a table which doesn’t exist and therefore will never return any existing favourites in my db.

        Is this correct?

        Thanks
        Andy

        • Tarique Sani June 6, 2012 at 4:27 pm #

          Hi Andy,

          seems you have spotted the bug correctly so instead of `wp_commentmeta` if you use {$wpdb->commentmeta} it should work in your setup. Try it out and let me know how it goes

          Thanks
          Tarique

        • Andy Ogden June 6, 2012 at 4:41 pm #

          Hi Tarique

          Version 1.7.1 of the plugin didn’t populate comment_type: -
          $commentdata['comment_type'] = ”;

          But version 1,8 as you say, does: -
          $commentdata['comment_type'] = ‘comment’;

          It’s just highlighted an issue with my theme. As the WP provided Twenty Ten handles this correctly I’ve gone to my themes developers to log the issue. I could amend this line to match v1.7.1 but I’d rather keep to the WP standard in case I start to use a feature in the future that conflicts with this non-standard use of comments in my theme.

      • Andy Ogden June 6, 2012 at 4:30 pm #

        You can’t see the comments due to an issue with my theme. You’ve begun populating the comment_type field in the new version and for some reason my purchased theme is excluding it. If I remove the comment_type value on the comment in the db the updated comment appears.

        As this works in the Twenty Ten theme I’ve raised it as a support issue with the theme’s developers. On Monday they asked for the details of the plugin so that they could test, so I’m hoping this leads to a solution.

        Thanks
        Andy

        • Tarique Sani June 6, 2012 at 4:34 pm #

          well the comment_type is currently set to ‘comment’ which last I saw was the default for comments in WordPress. Is the comment_type blank for all comments in your case?

          comment_type field is used to do tricks like separating the trackbacks from the comments….

      • Andy Ogden June 6, 2012 at 4:33 pm #

        Hi Tarique

        Tested and confirmed, just got to sort my theme and it’ll be good to go in my live site

        Thanks for the help

        Andy

  96. Leodium July 9, 2012 at 1:09 pm #

    Hello. Thanks for your plugin… :p It’s great !!!

    But i have a problem :(

    I have all the comments from flickr but i don’t have the “Added this photo to their favorites ” like you in the http://tariquesani.net/blog/2010/03/04/bay-backed-shrike/

    Can you say me why ? Tanks…

    • Tarique Sani July 9, 2012 at 2:21 pm #

      Which version are you using? Favorite importing is in version 1.8 and you have to turn it on from the settings page for the plugin

      • Leodium July 9, 2012 at 2:41 pm #

        Favorite importing ? I just have your plugin Live Flickr comment Importer in 1.7.1…

        Can you give me the link to 1.8 ?

        (Thanks for your fast answer)

  97. Leodium July 16, 2012 at 10:35 am #

    Good morning. I observed that one type of comments do not seem to be taken into account by your plugin …

    “This photo WAS Invited and added to the * ARTISTIC SHOES – and BAGS, FEET, HANDS, GLOVES, etc. PAWS. * Group.” (for example here: http://www.flickr.com/photos/leodium/7519386114/ )

    Is it possible to integrate it with your plugin?

    Thank you in advance …

    • Tarique Sani July 16, 2012 at 10:38 am #

      With the current plugin the invitation are NOT fetched. So not possible unless someone hacks the code to include it.

Trackbacks/Pingbacks

  1. Live Flickr Comment Importer and Twitter | Deceptive Media | A photoblog - with mainly abstract photos by Andy Bell from the UK - February 16, 2010

    [...] My flickr comments are slowly being merged in to my photoblog posts using Tarique’s excellent Live Flickr Comment Importer plugin for wordpress. You can see results on this post, I have to add a custom field in each post for this [...]

  2. Sharing Toys and Site Notes | Daily Window - May 6, 2010

    [...] using WordPress and you’re a Flickr junkie like me, you might be interested in the wonderful Live Flickr Comment Importer plugin. When a page is loaded, it detects all Flickr embedded images (that are under your account) [...]

  3. Live Flickr Comment Importer » Monomaniac Garage - February 4, 2013

    [...] WordPress用の便利で優れたプラグイン、Live Flickr Comment Importerを当サイトにインストールしてアクチベートしました。何が便利かというと、ポストに埋め込んだFlickrの画像に対して、Flickrサイトの方でいただいたコメントやお気に入りを当サイト内ポストのコメント欄に自動的にインポートしてくれるということです。 [...]

Leave a Reply