Heart+Soul Design Studio

Custom Wordpress development, maintenance and security. Home of the AHA! Academy.

  • start hereHome
  • get the deetsAbout US
    • Disclosures
    • Privacy
    • Service TOS (Terms of Service)
  • email us hereProject Inquiry
    • Client ♥
  • read onThe Blog
  • get the goodsShop
    • Migrations
    • Plugins
    • Services
    • Site Security
    • Cart
    • My Account
    • Checkout
    • Shop TOS & Refund Policy
  • our recommendedResources

Join the Newsletter

Get Tips · Tricks & Goodies
right in your inbox!

Add TwitterComment Link And A Little Magic

Tweet
Share
Pin
Reddit
Flip
Pocket
0 Shares

There’s a lot of magic going on around here, and not the least of which is some awesome changes I’m making to the site.  More about that later.

I’ve already added in a couple of features and you’ve been curious. I share all my tips and tricks and since these are kind of lengthy, I’ll share them with you here.

Back in February of last year, I shared another kind of tricky tip for adding numbers to your comments.  I still get questions about how to do that from bloggers running contests and giveaways, its a great way to add your comments to the random number generator especially if you’ve got tons of comments, like most contests do. It can save hours of headaches!

I’ve been working on adding twitter id’s to my comments and piddling with code and functions and while I was searching for something else today, I came across  a WordPress plug in that does just exactly what I want it to do..with a little tweaking.. so here ya go!

First, kudo’s to Andy Bailey, the comment luv man for doing the hard lifting here..he and Darren Rowse and a few others developed the initial plug in and Andy’s now supporting the TwitterLink Comments Plug-in through the Comment Luv site. (I use that plug in too!) You need WordPress 2.81 or higher. I hope you’ve upgraded by now!

Here’s a quick screen shot to show you what the plug in does  and how it looks, fresh out of the box.

Download TwitterLink Comments
(or use the plugin browser in your dashboard to search for TwitterLink-Comments)

You can see it in action down below on my comment form!

Here’s How The Plug In Works

You can let the plugin do it automatically for you along with a message that you can configure in the settings page. That message is the blue highlighted area in the screenshot there and its already coded and styled. All you need do is make some quick selections.

The field description, link position, format and action can be configured by you  in the settings page including any extra html, classes and text that you might  desire. Go ahead and get creative with that message,  just remember to remind your commenters not to add in the http: or @ before their user name.

admin panel screen shot(click on the graphic to open it in a new page)

Automatic Placement

Out of the box in the configuration panel you have three choices  of areas within your comments to locate the TwitterLink

  1. Under Name Link
  2. Start of Comment Text
  3. End of Comment Text

and three format options for the link.. easy peasy

Link Format Options:

  • Use NoFollow on link
  • Link opens in a new window
  • Manual link

Now  for the

Advanced User Options

I’m never , well almost never happy with a plug in out of the box and I like to do my own tweaking.   So, putting on my code ninja face and my sorcer’s aprentice cap, here’s what I did to tweak the plug in for my site.

1. I hated the little blue box below my comments box. It just had no, well shall we say panache. After a little thought, I worked a little piece of code to add a field to my comment area, so that a commenter would enter their twitter id after they’d entered their name, email and blog url.

2.

p>
 

3.  To use the code like I did you need to open your comments.php file in your WP Admin. (Make a copy of this file and put it someplace safe before you begin tweaking)  In that file look for the code that reads something like this…

 

 


< ?php if ($req) echo ' aria-required="true"'; ?> />''); ?>

 

 

< ?php if ($req) echo ‘ aria-required=”true”‘; ?> />

 

 

(Depending on your theme, your code might be slightly different, if you need help, we’ll give you a hand. )

4. Paste the code from the first box  on the next line after the final

of the code in the second box. Click  Update File to save.

5. Open the Admin Panel of the TwitterLink Comments Plug in and set your preferences.  ***IMPORTANT : Click NO for  Add Twitter Field Automatically, you just did that by adding the above code.

Set the remainder of the preferences to your liking.  Click save changes and Voila! You now have a comment form that users can enter and link their twitter user names!

Go Ahead ! Add your own comment to this post and link your twitter id right up!

The plug in doesn’t collect any data from the commenters twitter account and only uses the id to link to their twitter page.

The comment author only needs to put in their Twitter username once and every comment from them on the whole site will display a link to follow them.

Let me know what you think about this plug in and using it!

 

screen shots courtesy commentluv.com and Andy Bailey

 

** If you use Genesis Themes by Studio Press/Copy Blogger your steps will be a bit different.***

Tweet
Share
Pin
Reddit
Flip
Pocket
0 Shares

Filed Under: Tips and Tricks Tagged With: Add new tag, Adding Numbers, Andy Bailey, Browser, Commenters, Contests, Creative, Darren Rowse, Dashboard, Description Link, Desire, Extra, Field Description, Fresh Out Of The Box, giveaways, Headaches, Html Classes, Html Text, Languages, Link Position, Little Magic, Magic, Nofollow, Plug-in, Programming, Random Number Generator, Rowse, Running, Screenshot, Tips And Tricks, tweaking, Twitter, User, wordpress

[wp_ad_camp_1]
Please note our rules.kitteh


By submitting a comment here you grant this site a perpetual license to reproduce your words and name/web site in attribution. We hold comments in moderation and we reserve the right to edit and/or delete your comment if it pertains only to keywords, is spammy or if it contains no viable reference to the article on which you are commenting. Thanks for understanding.


Older
Newer

Comments

  1. Amy Andrews says

    January 9, 2010 at 9:43 am

    Oooohh, I like this. Thanks for the tip. Very handy!!
    .-= Amy Andrews´s last blog ..My single goal for 2010 =-.

    • Deb says

      January 9, 2010 at 10:48 am

      glad you like it! If you’re running thesis or another equally big framework I have the custom function worked out too!

  2. Karie says

    January 11, 2010 at 1:14 am

    I need to make the switch to WP…not only for all the fabulous functions but I am tired of feeling like I have a “little kids” blog. ha ha Great tips.
    .-= Karie´s last blog ..Monday Mingle =-.

    • Deb says

      January 12, 2010 at 9:58 am

      give me a holla! We’ll get you moved over to WP easy peasy…

  3. Melanie @ Mel, A Dramatic Mommy says

    January 12, 2010 at 2:36 pm

    Is the Disney picture a tease?
    .-= Melanie @ Mel, A Dramatic Mommy´s last blog ..Bloggers, Conferences and Sponsorships: Think Outside the Box =-.

Trackbacks

  1. Tweets that mention Add TwitterComment Link And A Little Magic | Bird On A Wire -- Topsy.com says:
    January 9, 2010 at 1:40 am

    […] This post was mentioned on Twitter by Debbie T. Lawrence, Debbie T. Lawrence. Debbie T. Lawrence said: RT @DebbiTLawrence Add TwitterComment Link And A Little Magic http://bit.ly/6J1P1T […]

  2. uberVU - social comments says:
    January 10, 2010 at 12:43 am

    Social comments and analytics for this post…

    This post was mentioned on Twitter by DebbiTLawrence: RT @DebbiTLawrence Add TwitterComment Link And A Little Magic http://bit.ly/6J1P1T…

  • Facebook
  • Instagram
  • Pinterest
  • Twitter

sovrn Holdings, Inc.

Get A Leg Up On Your Competition

SEMrush

Hello You Designs - Designer Quality Wordpress Themes
The owner of this website, Heart+Soul Studio, is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking Heart+Soul Studio to Amazon properties including, but not limited to, amazon.com, endless.com, myhabit.com, smallparts.com, or amazonwireless.com.

Categories

  • Tips and Tricks
  • Bloggers
  • SEO & Content Development
  • Code Snippets
  • Security

The Shop

  • Shop
  • Cart
  • Checkout
  • My Account
  • Shop TOS & Refund Policy

Get Social

  • Twitter
  • Facebook
  • Pinterest
  • Instagram

The Links

  • Home
  • The Blog
  • Shop
  • Client Praise
  • Project Inquiry
  • Email
  • Facebook
  • Instagram
  • Pinterest
  • Twitter

Copyright © 2025 · Heart+Soul Design Studio · Made With ❥ In Louisiana

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish.Accept Reject Read More
Privacy & Cookies Policy

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these cookies, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may have an effect on your browsing experience.
Necessary
Always Enabled

Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.

Non-necessary

Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.