Since people have been emailing me and asking for it…
WordPress Plugin: Simple Twitter Connect
It’s similar in concept to the Simple Facebook Connect plugin. In fact, it rips off quite a lot of the same code. But instead of Facebook, this integrates your WordPress site better with Twitter.
Now, there’s a lot of Twitter plugins out there already. And this plugin by no means competes with them (yet). This plugin can’t, for example, send a post to Twitter (yet). Nor can it pull posts from Twitter to display on your own site (yet).
What it does is to provide the framework for a more complete Twitter integration. Right now it can do:
- Login via Twitter
- Comment via Twitter
Not much, really. But it has the backend code necessary to make it easier to connect your site to a Twitter Application, and to make plugins surrounding it that won’t interfere with each other. That’s the same basic reason for the Simple Facebook Connect plugin.
So yes, eventually this plugin will send and receive stuff from Twitter. But for now, it lets you allow users to Login and/or to have users Comment using their Twitter credentials.
Expect frequent updates.
Edit: This post has moved to here: http://ottopress.com/2010/dont-include-wp-load-please/. Take your comments there.
Time for Otto’s general griping: WordPress plugin programming edition.
Here’s a practice I see in plugins far too often:
- Plugin.php file adds something like this to the wp_head:
- Script.js.php has code like the following:
Usually, the case for this turns out to be something minor. The code needs the value from an option, or some flag to turn it on or off. Or whatever.
Problem is that finding wp-load.php can be a bit of a chore. I’ve seen extreme efforts to find and load that file in plugins before, including searching for it, examining the directory structure to make decent guesses, etc. This sort of thing has existed even before wp-load.php came around, with people trying to load wp-config.php themselves and such.
But the real problem is simpler: This is always the wrong way to do it.
Note: This post has been moved to here. Please leave comments there instead.
The majority of the email I get from users of the Simple Facebook Connect plugin is questions regarding how to setup their Facebook Application. It’s really not that hard to do, but the plethora of options can seem somewhat intimidating. So here’s the basics of what you need to do.
(This post is geared more towards PHP authors and fans of WordPress, so if you’re not into that sort of thing, why not go look at some pictures of cats instead?)
So, I upgraded to the latest 2.7-bleeding edge version of WordPress on my blog today, and discovered a new feature that I had missed in my earlier readings. There was a new menu item on the Plugins menu:
New Menu Item - Install Plugins!
Yes, it appears that WordPress now has plugin installation built into it. Similar to the Plugin Upgrade feature introduced in 2.5, 2.7 will be able to download and install plugins directly from WordPress.org’s plugin directory.
Naturally, I had to try this out, so read on if you want to see what it looks like…
I signed up for twitter today, and installed a plugin for the blog that hooks into it. It’s kinda neat. The basic idea is that you can send “what you are doing right now” to it at any given moment, and the site posts it. Not complex, basically like a blog for one-liners. The WordPress plugin I installed lets you show the latest twitter messages you’ve sent to the service on the sidebar, or in a post, or what have you. Very nifty.
So if you look on the bottom right of this page, you’ll see the latest info on what I’m currently doing. The cool thing about it is that you can post what you’re doing to the site via email or IM or even text message. Quite entertaining, albeit somewhat useless, information. Still, fun for a while, and maybe I’ll figure out something useful to do with in the long run.