Innoventions Corporate Education and TrainingLogin  |  Sitemap  |  Support |  Contact
corporate education and marketing solution
search Innoventions
  • Domain Registration Beyond Basics
  • Twitter Profile Basics
  • Basics to Purchasing a Domain
  • Social Media Perspectives Have Changed
  • Learning from 7 Random Things….
  • Enhance Comments with Twitter Link
  • 7 Random Things
  • Get Creative with Your Twitter Background
  • The Secret Is Out – Social Media Is Work
  • BrowserShots – Is Your Blog Browser Compatible?
  • June 2010
  • April 2010
  • March 2010
  • December 2008
  • November 2008
  • October 2008
  • September 2008
  • August 2008
  • July 2008
  • June 2008
  • Corporate Training (1)
  • Customer Service (2)
  • Education (1)
  • Events (5)
  • Featured (7)
  • Marketing (2)
  • News (2)
  • Podcast Series (4)
  • Social Media (20)
    • Blogging (5)
    • Branding (3)
    • Etiquette (1)
    • Facebook (1)
    • Linkedin (1)
    • Networking (9)
    • Second Life (1)
    • twitter (11)
  • Technology (2)
  • Tips/Tools (4)
  • Training & Development (4)
  • Web Development (5)
  • tawnypress: Musings on Preprocessing - I've been using SASS for pretty much everything I do recently. Here's some musings on the... http://t.co/3qBROCw9
  • tawnypress: Speech Bubble Arrows that Inherit Parent Color - Interesting question: css3 speech bubble question: for the "triangl... http://t.co/Z8qMqEow
  • tawnypress: A proposal to drop browser vendor prefixes - Interesting idea by Felipe G on using a new at-rule, @-vendor-unlock, t... http://t.co/L8XrIzdp

about Innoventions
« 7 Random Things Learning from 7 Random Things…. »
Enhance Comments with Twitter Link

I was reading TwiTip and realized there was a comment field, to link your twitter address, linking to your Twitter home page.  That is a great idea. I searched for a Wordpress Plugin, none was found on Wordpress.org. This worked great until I upgraded to 2.7 and am hoping this plugin will soon be upgraded as well.

To my delight, a few days later ProBlogger, wrote a post on his process.  He provided a link to Ideashower, a plugin developer with a method of adding fields into the comment section. Between ProBlogger ’s post and the overview of the developers site I was able to code my comments, fairly simple. If you use Thesis template, ProBloggers post would benefit you.

Here is the process I used.  Let me remind you, each Theme is different, so your code may look slightly different. It is also a great idea to make a backup before changing any code, here is a plugin referred by @panah, WP-DB-Backup. I used Dreamweaver to modify my php files and used my “undo” a few times testing this method.

Download Plugin Files

Download the plugin files from the developers site.

      • Download – Version 0.2 (For Wordpress 2.0 – 2.3)
          • Variable Setup – Access Settings > Extra Comment Fields.
              • Wordpress Plugin: Extra Comment Fields
            • How I added the Twitter ID field to comments on Twitip.com

        • Activate – Log into Admin Panel. Access the Plugins, locate “Extra Comment Fields” and click Activate.

          Comment.php Modification

          In this section, you will be modifying your html code. I am using Dreamweaver as my editor. Open your Comments.php file, usually located in wp-content/themes/yourthemename/comments.php

          Part 1

          Look for a piece of code similar to the image below. This code may be grouped together with several similar lines, grouped together, with “text” name(s) like comment_author, comment_author_email or comment_author_url or something similar.

          When you locate the correct code, copy one entire section, and paste it at the bottom.

          Part 2

          a.Name =”twitter” (your reference name)
          b.Id=”twitter” (Set in Activation & Variable setup A)
          c.Value = $comment_extra_twitter; ?>” (refers to plugin & variable set)
          d.Twitter ID’,'arthemia’) (“Twitter ID: is the label that will show on your comment form)
          e.optional)’,'arthemia’) (“optional” is the label that will show on your comment form)

          Once your code is modified, upload your new comment.php page. Go to your blog, view your comment section, it should now have a Twitter ID line for commenter’s to add their Twitter Id.

          Part 3

          This next step is a method of allowing people to enter their user names with and without the “@” symbol, and continue to link correctly. This piece of code, courtesy of ProBlogger referenced above.

          Look for code that looks similar to this:

          div class=”commentlist”

          Under this section of code, courtesy of ProBloggers post, paste the below code as is:

          extra_twitter) {
          // 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); ?>
          ”>@

          Twitter Added to your Comments:

          This is such a quick and easy way to locate the commenters blog as well as their Twitter Id, which is as important to me.

          Let me just say, I HOPE someone creates a great plugin to add your Twitter ID in the future. Every Theme is different, so please, if you follow this process and find any differences with your theme, please post the work around. I hope this was helpful and simple to understand. Please post a comment if you add it to your blog, so we can see your creativity.

          Related articles by Zemanta
    • Download – Version 0.4 (Requires Wordpress 2.5+)

      Install the Plugin

      Unzip the “Extra-comment-fields” zip file.  Upload the file PHP file “extra-comment-fields“ to the /wp-content/plugins/ directory, under your themes directory. This file does not have a folder as do many Plugins available.

      Activation & Setup

Tags: Plug-in, Tawny Press, twitter, WordPress

Share on Facebook Tweet This! google bookmark Bookmark on Delicious FriendFeed LinkedIn Digg This! stumbleupon! reddit technorati print Share on Facebook print pdf

Category : Blogging | Tips/Tools | Web Development | twitter

This entry was posted on Wednesday, December 17th, 2008 at 4:02 pm and is filed under Blogging, Tips/Tools, Web Development, twitter. You can follow any responses to this entry through the RSS 2.0 feed. If you enjoyed this post, please consider leaving a comment or subscribing to the RSS feed to have future articles delivered to your feed reader. You can leave a response, or trackback from your own site.

This website uses IntenseDebate comments, but they are not currently loaded because either your browser doesn't support JavaScript, or they didn't load fast enough.

2022 Responseshttp://www.einnoventions.com/blog/social-media/twitter/enhance-comments-with-twitter-link/Enhance+Comments+with+Twitter+Link2008-12-17+19%3A02%3A05Tawny+Press to “Enhance Comments with Twitter Link”

  1. Kim Woodbridge says:
    December 17, 2008 at 5:16 pm

    LOL – “I wish I spoke cat and dog”. I’m such a goof sometimes.

    I tried this last weekend and it worked fine but I couldn’t decide where to place the twitter username. I spent too much time fussing with it so I decided to leave it until later. I can’t stand it when I obsess about little details like that.

    Thanks for the write-up!

    Reply
  2. 5 Interesting WordPress Plugins | (Anti) Social Development says:
    January 15, 2009 at 7:09 am

    [...] adds a field to your comment form to allow users to input their twitter username. Tawny Press at Innoventions provides detailed instructions on adding the twitter field manually. I followed these instructions [...]

    Reply

Leave a Reply

Click here to cancel reply.

Innoventions, Inc. © 2008-2010 • PRIVACY • TERMS • SITE MAP • CONTACT •