This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Twicon for WordPress

Description

Let’s show the Twitter avatar (Twicon) to your user with those comments of you in the Web site.
When the Twitter avatar (Twicon) doesn’t exist, Gravatar is displayed.

Usage

The function to add Twicon or Gravatars to your theme is called: get_avatar. The function returns a complete image HTML tag of the Avatar.

The function is called as follows:

<?php echo get_avatar( $id_or_email, $size = '96', $default = '<path_to_url>' ); ?>

See more. Using Gravatars

Localization

“Twicon for WordPress” has been translated into languages. Our thanks and appreciation must go to the following for their contributions:

If you have translated into your language, please let me know.

Installation

  1. Upload the entire twicon-for-wordpress folder to the /wp-content/plugins/ directory.
  2. Please make directory twicon under the /wp-content/cache/ directory.
  3. Activate the plugin through the ‘Plugins’ menu in WordPress.
  4. Add your ‘comment.php’. <?php if (function_exists('twicon_input_box')) twicon_input_box(); ?>

FAQ

Original filter can be set.

E-mail to Twitter ID

function set_twitter_id($twitter_id, $email = ”) {
if ( $email == ‘hoge@example.com’ )
$twitter_id = ‘hoge’;
return $twitter_id;
}
add_filter(‘twitter_id/twicon.php’, ‘set_twitter_id’, 10, 2);

Set profile image

function set_profile_image_url($profile_image_url, $id_or_email = ”) {
if ( $id_or_email == ‘fuga@example.com’ )
$profile_image_url = get_option(‘siteurl’) . ‘/images/fuga.png’;
return $profile_image_url;
}
add_filter(‘profile_image_url/twicon.php’, ‘set_profile_image_url’, 10, 2);

Contributors & Developers

“Twicon for WordPress” is open source software. The following people have contributed to this plugin.

Contributors

Translate “Twicon for WordPress” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.