This video is designed to help you add a twitter id field to your comments section, and to have the visitors twitter ID show up as a reply link in their comment.
The link to the original tutorial is below. I made this video if you are too retarded to follow his excellent instructions and screw it up like I did. I’ll show you where the screw up point are, and what to do when you do screw up.
Thanks goes to Darren Rowse at ProBlogger.net for the original tutorial.
1. You will need to download and install the Extra Comment Fields plugin available here. Thanks to the folks at the Idea Shower for that one.
2. Install and setup the plugin.
3. Insert this snippet into your comments.php file. This is the snippet that adds the Twitter ID field to your comment form. Location of form is probably towards the bottom of your comments.php file somewhere. Look for the comment_author_url statement, and that will give you an idea where to put it.
Here is the code to insert:
3. Insert this snippet also into your comments.php file. This is the snippet that shows the visitors Twitter ID in their comment and links it for a reply. This will probably be towards the top of the comments.php file. You will want it before the comment_text() argument.
// Strip out the @ if they put it there because we’re going to need to get rid of it for the url anyway
$extra_twitter = preg_replace(“/^@/”, “”, $comment->extra_twitter);
$extra_twitter = htmlentities($extra_twitter); ?>
My Twitter“http://twitter.com/”>@=$extra_twitter?>
} // extra_twitter ?>


0 comments:
Post a Comment