Plugin Author
we8u
(@we8u)
Hi Aaron. When you coded it by hand, did you have something like this?
<fb:comments href="<?php the_permalink(); ?>"></fb:comments>
If so, you can try enabling both v1 and v2 (under the plugin’s settings page) and see if the old comments show up.
I’m guessing before you had something like the above, or just left it blank so it would use the page as an xid? If so, then your guess about the URL is correct, and enabling v1 and v2 both should show the old comments.
Let me know how it works out.
shaun
Shaun-
That did fix it. At least, the old v2 comments are showing up. Is there a way to not display the v1 comments box, too?
And, while the comments are working, notifications of new comments are not. I’m not recieiving emails when new comments show up, nor am I getting notified in Facebook (I turned on that open and set my User ID), nor are my test comments showing up in the “Recent Facebook Comments” box on my WP dashboard.
If I turn off “Display both,” then that just puts me back in the situation I described in my first post. I.e., the url it thinks the comments are for is back to that strange one I pasted above, and the comments disappear.
(Oh, and thanks for all your help on this. I really do appreciate it.)
Plugin Author
we8u
(@we8u)
I see, it needs the href='$postUrl'
to load those comments.
To not display v1 comments, in facebook-comments-display.php
beginning on line 189 there is this:
echo "\t<fb:comments xid='$xid' ",
"numposts='{$options['numPosts']}' ",
"width='{$options['width']}' ",
"simple='{$options['noBox']}' ",
"publish_feed='$publishToWall' ",
"reverse='{$options['reverseOrder']}' ",
"css='$customStylesheet' ",
"title='$postTitle' ",
"url='$postUrl' ",
"notify='true'></fb:comments>";
Change it to this:
/*
echo "\t<fb:comments xid='$xid' ",
"numposts='{$options['numPosts']}' ",
"width='{$options['width']}' ",
"simple='{$options['noBox']}' ",
"publish_feed='$publishToWall' ",
"reverse='{$options['reverseOrder']}' ",
"css='$customStylesheet' ",
"title='$postTitle' ",
"url='$postUrl' ",
"notify='true'></fb:comments>";
*/
Hopefully this works for you. If not, let me know.
That fixed it. Thank you so much.
Is the issue with the href=’$posturl’ thing a bug? Or is commenting out this code just something I’ll have to remember to do whenever the plugin updates?
Plugin Author
we8u
(@we8u)
Awesome!
Actually, it was a “just in case” option I added, since it didn’t change anything for me. But I’ll make sure to add a v2 only option in future releases, so you shouldn’t have to change anything. On the options page, I’ll put something like, “v2 Only (uses both href and xid, doesn’t load any comments from v1)”
Cheers!
I have a similar problem I think. Sometimes comments are loading ok and sometimes they don’t. For example when I load a post the first time it shows no comments at all and after the 3rd or 4th refresh it loads all comments. I’m using v2 and v1 (new) option. Example url is http://www.exyudownload.com/2946-darko-radovanovic-spava-mala-u-dve-postelje-2011
Any help?