Frederick's of Hollywood, Inc.

October 31, 2007

Character counting plugin for Pidgin

Someone asked if there was a plugin for displaying the character count of the current message in a Pidgin chat window's input widget, which would be useful when using Twitter via IM, to know if you're going over the 140 character limit. I looked things over and came up with this simple plugin after about two hours of hacking ... it places the current character count on the right-hand side of the GtkIMHtmlToolbar:

Screenshot of Pidgin 2.2.2 with the convcharcount plugin

I'm inclding the new plugin's source as a diff/patch to the Pidgin source, and a pre-built DLL binary for Win32:

For those of you on Win32, just unzip the .zip file into your C:\Program Files\Pidgin\plugins directory. Then, go into your Buddy List window and select "Tools -> Plugins," then click the checkbox next to "Conv. input chars count".  That's it!

Let me know what you think of the plugin. Thanks!

UPDATE: I've finally gotten around to spinning a Debian 4.0 etch .deb for i386. If you're on Debian, give it a try.

UPDATE: I've also spun a Fedora 8 RPM for i386.

Tags: , , ,

Posted by dossy at 01:04 AM | 545 | Link | Comments (36) | Trackbacks (0) | Bloglines | Feedster | Technorati | BlogPulse

Comments
1
Gravatar Icon

Wow - I've been looking for such a plugin for ... well, since I've started using Pidgin!
And now it just pops up in my Technorati search - what are the odds!
Thanks a bunch, Dossy!

Posted by: FND on October 31, 2007 at 04:14 PM | Permalink
2
Gravatar Icon

FND: It seems a lot of people have been looking for such a plugin, so I'm glad it wasn't too hard to implement. I'm also glad you found it--that's awesome!

Let me know if you have any trouble getting it working or if you find any bugs with it. I tested it pretty thoroughly but only on one machine, WinXP SP2.

Posted by: Dossy on October 31, 2007 at 04:37 PM | Permalink
3
Gravatar Icon

No bugs so far - but I'm on WinXP SP2 as well...
Nevertheless, I'll report back here should I find anything.

Posted by: FND on October 31, 2007 at 05:37 PM | Permalink
4
Gravatar Icon

FND: Great, thanks! Any other plugins you'd like to see implemented? I'm always looking for good ideas ... :-)

Posted by: Dossy on October 31, 2007 at 06:17 PM | Permalink
5
Gravatar Icon

Typical - now I have someone to write plugins for me, and I can't think of anything...
If/when I think of anything, I'll let you know - thanks for the offer!

Posted by: FND on November 1, 2007 at 02:46 AM | Permalink
6
Gravatar Icon

Awesome... I want this for Adium, hopefully someone creates it. (Also, I still can't log in with OpenID: "Login with OpenID failed. Reason: Couldn't create OpenID URL.")

Posted by: Pete Prodoehl on November 3, 2007 at 01:29 PM | Permalink
7
Gravatar Icon

Pete: You know, if I had a Mac and could run Adium, I'd definitely implement the same functionality as an Adium Xtra/plugin.

re: OpenID, I'll ping you directly about it.

Posted by: Dossy on November 3, 2007 at 01:37 PM | Permalink
8
Gravatar Icon

Nobody against about that i added this plugin in plugin list on pidgin.im ?

Posted by: vednier.idproxy.net on November 12, 2007 at 04:07 PM | Permalink
9
Gravatar Icon

Useful plugin - thanks. Definitely helps a lot when 'twittering' via IM :-)

Posted by: Mun on November 15, 2007 at 08:35 PM | Permalink
10
Gravatar Icon

am i missing something? I put the .dll file in the plug-ins folder and I clicked the check box in the Plug-Ins menu to turn it on. Nothing happened. I even restarted pidgin, but I still don't see any character counter. I'm using 2.2.2.

Posted by: beslie on November 19, 2007 at 10:40 AM | Permalink
11
Gravatar Icon

beslie: Look at the screenshot I posted--the character count is just a subtle change in the right-hand side of the bar above the text input box.

Posted by: Dossy on November 19, 2007 at 10:45 AM | Permalink
12
Gravatar Icon

Can i use it on linux??

Posted by: Kuba on December 6, 2007 at 12:07 PM | Permalink
13
Gravatar Icon

Kuba: You should be able to patch the Pidgin source and compile the plugin on Linux, yes. I can take a whack at compiling it for Debian 4.0 and openSUSE 10.3 which is what I have available to me. You're on your own for other distributions, though. (The Debian and/or openSUSE binaries may work on other distributions, but I wouldn't guarantee it.)

Posted by: Dossy on December 6, 2007 at 02:13 PM | Permalink
14
Gravatar Icon

You're a life saver. Thanks for your hard work.

Posted by: Justin Kohnen on December 19, 2007 at 11:37 AM | Permalink
15
Gravatar Icon

Thanks for the kind feedback, Justin!

Posted by: Dossy on December 19, 2007 at 11:43 AM | Permalink
16
Gravatar Icon

Wow! Thanks!

Posted by: Grace on January 5, 2008 at 12:48 PM | Permalink
17
Gravatar Icon

You're welcome, Grace. :-)

Posted by: Dossy on January 5, 2008 at 01:50 PM | Permalink
18
Gravatar Icon

Nice to see how a random idea turned into such a useful tool...

Posted by: FND on January 5, 2008 at 02:49 PM | Permalink
19
Gravatar Icon

FND: Yeah. What's even more amazing is how many people love Twitter Karma. Such a simple little app. with such a tremendous response.

Posted by: Dossy on January 5, 2008 at 02:55 PM | Permalink
20
Gravatar Icon

I was hoping for a plugin like this as soon as I started using Twitter through Pidgin. Any progress on a Linux version? Thanks!

Posted by: Dan on January 30, 2008 at 08:09 PM | Permalink
21
Gravatar Icon

Dan: what distribution of Linux are you using?

I only have Debian 4.0 and OpenSUSE 10.3 readily available to me, so those are the two distributions that I could easily compile binaries for. If anyone else has compiled this plugin for Linux and would like to share, please post a link to your build in the comments here, thanks!

Posted by: Dossy on January 31, 2008 at 09:00 AM | Permalink
22
Gravatar Icon

Bingo! This is just what I wanted. Thanks for putting this out there!

Posted by: Joe Lencioni on February 29, 2008 at 04:58 PM | Permalink
23
Gravatar Icon

Joe: Thanks for letting me know you found it useful!

Posted by: Dossy on February 29, 2008 at 07:10 PM | Permalink
24
Gravatar Icon

Works great! Those on vista should make sure they allow the file to the plug-ins folder, I had to allow it before it would work! =]

Posted by: Kevin on March 1, 2008 at 08:30 PM | Permalink
25
Gravatar Icon

Awesome! I almost exclusively twitter things through IM, and now I won't be the laughing stock of the Twittersphere when I post things with too many characters.

Icing on the cake would be if I could specify buddies to turn it on/off for (i.e. only on for Twitter), but it's small enough and tucked away in the window so it's not really that big of an issue.

Great work! Thanks for making this!

Posted by: Rudi on March 10, 2008 at 05:39 PM | Permalink
26
Gravatar Icon

Rudi: I'm glad you found it helpful!

I find that having the character count in my IM windows in general help me stay focused on how long my messages are getting. It takes conscious effort to be clear and concise and the character counter serves to remind me.

Posted by: Dossy on March 10, 2008 at 06:35 PM | Permalink
27
Gravatar Icon

Thank you, haven't tried it yet but now I'm using pidgin to twitter this is a necessary addition!

Posted by: morganiseit on March 11, 2008 at 09:17 PM | Permalink
28
Gravatar Icon

@beslie this may be a stupid question, but do you have the formatting toolbar displayed? the only reason i ask is that i tripped up on this myself...

Posted by: Lucas on April 2, 2008 at 06:46 PM | Permalink
29
Gravatar Icon

Thanks for the plugin

Posted by: Manchumahara on April 4, 2008 at 02:27 PM | Permalink
30
Gravatar Icon

Have you considered trying to get your plugin added to the Pidgin PluginPack? At only 4kb compressed, and at least as useful as some of the already included plugins, I think it would make a useful addition.

Here's their relevant wiki entry:
http://plugins.guifications.org/trac/wiki/PluginPack#WillyouacceptmypluginforthePurplePluginPack

Posted by: Haudy Kazemi on April 7, 2008 at 01:21 AM | Permalink
31
Gravatar Icon

Haudy: I've thought about it, but I don't see what the benefit would be. If folks want the plugin, they can download it and install it from me.

Posted by: Dossy on April 7, 2008 at 09:39 AM | Permalink
32
Gravatar Icon

The major benefits I see are raising awareness of the plugin amongst Pidgin users, and making it easier to get installed. The nice thing about the PluginPack is it is a one-stop-shop for many useful plugins...that's what I really like about it.

The only two plugins I use that aren't included in the pack are Off-The-Record and Guifications, and now your character counting plugin. I initially found your plugin while searching for a Pidgin Twitter plugin, but the character count is an interesting statistic to have even on general, non-Twitter chats.

Posted by: Haudy Kazemi on April 7, 2008 at 06:21 PM | Permalink
33
Gravatar Icon

Haudy: Well, the plugin is GPL'ed, so if whoever maintains PluginPack wants to include it, they can.

Thanks for the suggestion!

Posted by: Dossy on April 7, 2008 at 08:14 PM | Permalink
34
Gravatar Icon

Use this on all my PCs, and it's part of my essential downloads when I get a new one. Great for twitter. Thanks!

Posted by: Paul on April 21, 2008 at 12:43 PM | Permalink
35
Gravatar Icon

Paul: Wow, thanks for the praise! This is why free software is so great, the feedback you get from all sorts of people you otherwise never would have met.

Posted by: Dossy on April 21, 2008 at 12:46 PM | Permalink
36
Gravatar Icon

Just a quick comment to say thanks for putting this plugin together. I needed this for Twitter like everyone else. Much appreciated!

Posted by: Jeremy Hall on May 6, 2008 at 04:13 PM | Permalink
Post a comment

Who are you?

(what is this?)
(what is this?)
(what is this?)
(what is this?)


(required)
(required, not displayed)


Allowed markup: a href title, abbr title, acronym title, b, blockquote cite type, br, code, dd, dl, dt, em, i, li, ol, p, pre, strike, strong, tt, ul.

Please type in the letters shown in the image below:
Graphical CAPTCHA.

A preview of your comment:

Posted by: