TwitterStatus |
|
Submitted By Hadrien Lanneau (hadrien) |
DescriptionTwitterStatus display your last twit on Adium exactly like TwitterAdium. The difference is the main script is wrote in very light PHP in place of ruby and need very less ressources each time it's executed.Type %_Twitter everywhere you want to display your twits : profile, chat, etc The first time you'll use it, a file ~/.twitter.ini will be created. You'll have to edit with your favorite text editor (vi is strong) to specify your username and the interval of time the twit have to be refreshed. That's all. ImagesCommentsYou can reply to individual comments by clicking the "Reply" link next to each. # by Ozy on 05/02/10 at 11:02:11Your code checks for '@' is in the string, rather than if it is the first character. I'd suggest switching over to strncmp to correctly allow for tweets with '@' in it.
# by Ozy on 05/03/10 at 00:56:51Modified and updated the script. This version correctly handles @replies (I think - tested only by preventing them), correctly allows RTs to be posted, does not cut off retweets when they are posted by API (which results in them being truncated).
I've modified much of the code for reading clarity and added comments. http://pastebin.com/h0hDfeXX Post a New CommentYou must be logged in to post comments. |
# by Ozy on 05/01/10 at 23:23:30
Additionally, do you plan to toss in some cleaner code for the user's home directory for the creation of the .ini file?