Plugin Directory

WP Twitip ID

Details

WP Twitip ID functionality:

  • Adds an extra field to the comment form for user to enter their twitter username
  • Echo out the twitter id associated with the comment being displayed
  • Echo out a html link pointing to the users twitter page using "Click Here To Follow Me On Twitter"
  • Display link as an image
  • Ouput just the @ username
  • Return the twitter id as a variable to be used by php
  • Automatically display Twitter: @username
  • Display html before the extra field
  • Display html after the extra field
  • Add a class name to the extra field
  • disable javascript field addition for manual form editing

Configuration

Put field after object ID Enter the ID of the field or object that you want the extra field to be displayed after defaults to url

Labels are before fields? If your comments.php file puts the label before the field check this box defaults to off

Don't use Javascript If you edit your comments.php file and add a field manually, you need to select this (manual adding requires field to have name="atftwitterid") defaults to off

HTML before field Custom html you want to add before the field is added defaults to

HTML after Field Custom html you want to add after the field is added defaults to
Twitter ID (if you check labels are before fields, you can enter this html into the html before field

Field class the class you want to apply to the field defaults to textarea

Twitter Image URI Image url for image output

Twitter anchor text Text to display in link for text output

Adding to your template

Open your themes comments.php file and add this line if(functionexists(wptwitipidshow)) { wptwitipid_show("auto"); }

You can use "image" or "text" or "user"

"image" = show linked image using image url in settings page "text" = show text link using anchor text in settings page "user" = show just the @username "return" = return the twitter id as a variable for use in custom php "auto" = show Twitter: @commentluv in a span with class twitter_id

example: within the comments loop (foreach($comments as $comment)) I put this below the date output in comments.php

"return" = return the twitter id to be used as a variable example: I has a ">Twitter Account

Download

FYI

Compatibility beta

Your Setup

Log in to vote.

The Consensus

No data

Average Rating

5 stars
4 stars
3 stars
2 stars
1 star
(3 ratings)