A comment is what a blogger wants! Show me a blogger who denies this and I will show you a liar
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
- Upload the folder ‘live-flickr-comment-importer’ into your to the ‘/wp-content/plugins/’ folder
- Activate the plugin through the ‘Plugins’ menu in WordPress
- To configure plugin options start by clicking on ‘Configuration Page’ link near plugin name or ‘Settings’ -> ‘Live Flickr Comment Importer’ navigation link.
- 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/
- For caching of Flickr API results and thus in turn a better performance ensure that your plugin directory must be writable by webserver.
- 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 wrongFixed 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 URLDone 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

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?
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?
Great job !
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.
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?
It may not work in WordPress 2.6.5 – Reply to comment will be there in the next release
Hi, I also get the same error as Jon? – “Plugin could not be activated because it triggered a fatal error.”
@Andy I will ask you the same question as I asked Jon
which version of WordPress and Which version of PHP are you using?
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(
Thanks for trying out the plugin and thanks for giving the idea of deactivation and reactivation – Indeed the link to get a Flickr key is now dead – However a new key can still be obtained from http://www.flickr.com/services/apps/create/apply/
Great Plugin, can’t wait for the new features planned, especially replying to a flickr comment on post
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!!!
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
Thanks a lot for your quick reply.. Tarique…
Its working now.. A great plugin indeed..
I’ve added you in flickr
)
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?
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
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?
Additional information:
PHP – 5.0
Wordpress – 2.9.1
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
@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.
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.
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.
Hey! it is working!! See http://jonathanfean.com/blog/2010/02/day-261-valentines-day-url/
I’m not sure if my comment made it through, but I have uploaded the new files and nothing seemed to change.
Thanks.
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!
@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?
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.
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!
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.
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/
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!
I figured it out. Thanks again for all your help. This is awesome!
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?
Looking at the thread, do i maybe need to try your Development Version?
Hello PropheyBlur – yes please try the Development version…
Worked like a charm, many thanks this pluggin is fantastic
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
Looks like your theme does not support comment avatars and hence they do not appear.
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.
They are now switched on and as you can see there is just the standard avatar displayed.
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?
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.
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.
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
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.
Is it a free theme? If yes – give me the download link and i will atleast be able to tell you what is wrong
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?
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.
Yeah I figured that was the case. Shame nothing can be done. Thanks for all the help!
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.
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!
@Beth try the development version of the plugin which is mentioned in the comments and let me know how it goes
@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.
@Tarique
I got the development version installed, and entered the API code. When I hit the “update API” button, the API disappears. I tried not hitting the update button and leaving the API text, but nothing seems to happen. *sob!*
Hi Beth, Flickr recently changed a method which verified API key may be that is causing the problem – try this version http://downloads.wordpress.org/plugin/live-flickr-comment-importer.1.4.zip
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
Hello Sarah, try the development version of the plugin – you can control the thumbnail option by adding meta fields. HTH
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?
No this one is new! Can you please give me a URL to look at?
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
Yes please keep me updated. I will add a compatibility note if needed.
Daniel – see my reply to Klaus
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
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?
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
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
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
Thanks Tarique!
Was the fix in the recent update?
If so – I make a check to see if it works…
Klaus
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.
Nice to know that it is working perfectly now
Addendum – here’s the link:
http://virtua-gallery.com/wp/2010/04/flickrs-favorite/
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!
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
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.
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
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!
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
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.
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.
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….
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?
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….
I zipped the theme and sent it to you. I’ll stop clogging up your comments page now.
Fixed and sent back
Oh my god. You are a genius. Thank you so much!!!
I just changed 2 lines of code. Thanks for using the plugin.
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!
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.
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?
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?
Sorry!
?php echo get_avatar( get_comment_author_email(), ’39′ ); ?>
</di
See my reply 4.29.10 / 2:12pm – that should fix it!
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?
Hi, patrik can I have URL to look at? Would like to see for which pictures it is not working and FWIW to see a working example with wp3.0 see http://tariquesani.net/blog/2010/06/30/african-big-five/
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!
Hello Again, Am not sure why it is not working with your setup – I just tested on the local setup with the photo which your post has and here is the screenshot
http://www.sanisoft.com/downloads/flickrcmttest.jpg
The best I can recommend is check the spellings in the custom field….
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?
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….
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/
Great! Nice to know it is working. The icon is indeed a nice touch as well…
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
I am not sure I understand what you are trying to say – can you give some example?
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
Thanks Peter – understood, shall fix in the nest release
Peter,
Set out to fix this bug but I have been unable to replicate it – so for now doing nothing….
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?
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
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
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
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
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!
Can’t be anything with the setting in the plugin folder – see the comments above for the answer to the avatar problem….
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!
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
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.
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?
This is my favorite plugin ever. Thank you.
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/
This was a deliberate design decision to prevent same comment at two or more places….
Probably, not a bad idea. Thanks for the quick response. Awesome plug-in.
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
Hi Marco,
Empty Trash
Cheers
It worked!
One more question. Do you know if and how your plugin works with DISQUS?
Thank you,
Marco
No it will not work with DISQUS.
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…
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.
While they do appear in the same thread – the API which this plugin uses does not show them as such…
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
Hey Klaus, I am trvelling for the entire next week… Will take a look as soon as I get back…
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!
Sorry, the plugin will not work with any other system other than wordpress default
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.
Thanks guys. Maybe buddypress will do the trick. *Continuing to use your plugin!*
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/.jpgAnother 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/.jpgThe 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
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?
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
I can’t tell you why the field in the first comment is empty – it should not be, BUT the comment you made should show the avatar from http://farm1.static.flickr.com/164/buddyicons/21043684@N00.jpg – Is it not showing?
Ant, after the this test, I’ve noticed making another comment, the problem of the repeating avatars disappears.
I am not sure what you mean by your second comment….
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.
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.
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.
Removing it from live-flickr-comment-importer.php should have fixed it – just rescan the file for the occurrence of the word…
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']);
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….
When posting single photos it works like a charm, but when there are multiple IDs it’s doing nothing. Too bad.
Is there a URL which I can look at? you can see that the multi photo post works at http://tariquesani.net/blog/2011/05/16/17th-anniversary-tadoba-trails/
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!
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
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.
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.
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.
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
Have you added and saved the Flickr API key in the plugin settings?
Seems it was just very slow to populate, when I checked this morning all comments had been added from Flickr.
Thanks
Andy
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?
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?
Set it to TRUE or 1 and it should work
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
The plugin hooks into the_content() if your theme or template does not use it it will not work.
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.
The IDs need to be entered comma separated without any spaces in between
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
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!
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
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?
Sorry again – I don’t know of such a tool
Any news Tarique on the Flickr Favorites, tons of folks favorite images without commenting, anyway, here’s my wishful thinking.
Cheers,
JL
Hi,
as of now I don’t plan to have favorites show up in comments – unless someone submits a patch
However my other plugin flickr-foto-info shows the number of favorites in the info box
Cheers
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.
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….
This plugin can import comments on photos of 2 different accounts?
Yes it can…
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
Thanks for reporting – will investigate, though off hand I can’t seem to be able to replicate it.
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
Problem solved… the functions.php was missing a critical part concerning the comments. Thanks anyway.
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
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
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.
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
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
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
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
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?
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
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
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….
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
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
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.
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
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….
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
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…
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
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)
Ok, here : http://sanisoft.com/downloads/lfci_1_8.zip
Why this version is not in wordpress.plugin.site.officiel ?
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 …
With the current plugin the invitation are NOT fetched. So not possible unless someone hacks the code to include it.
Thanks :p