I’m trying to use the Simple Facebook Connect plugin and all has gone well. But I need to make an amendment to comments.php so that the Facebook button and the users Facebook profile picture is used instead of the gravatar one. The plugin author’s site says:
To make the SFC-Comments plugin work (on older themes), you need to edit your comments form. This is probably in your themeâ€™s comments.php file.
Find the three inputs for the author, email, and url information. They need to have those IDâ€™s on the inputs (author, email, url). This is what the default theme and all standardized themes use, but some may be slightly different. Youâ€™ll have to alter them to have these IDâ€™s in that case.
Just before the first input, add this code:
<?php do_action('alt_comment_login'); ?>
Just below the last input (not the comment text area, just the name/email/url inputs), add this:
That will add the necessary pieces to allow the script to work.
Note: Newer themes that use the comments_form() function donâ€™t have to add any code added to them at all. The plugin automatically handles that case.
I’ve looked through comments.php but for the life of me I can’t figure out where I’m meant to be inserting this div, any chance of a pointer in the right direction please?
OPShots, thank you! After a bit of fiddling with it that plugin seems much better suited to what I need and no hacking code. 🙂
Viewing 3 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic.
This free Support Forum relies on contributions from our support staffs and fellow Graphene themes users. While we endeavour to provide adequate and timely support, due to its voluntary nature responses are not guaranteed and may be delayed.
If you require urgent assistance, you may like to consider our Priority Support option.