Just because the world hasn’t suffered enough bad PHP coding, I released two WordPress plugins today. One pares down some of the admin UI, and the other is a Twitter plugin. Because the world doesn’t have enough of those, either. You can find links to them on my WordPress Plugins and Hacks (but I repeat myself) page, or if you can go straight to their respective pages, which I’ll link here in just a second.
MW Adminimize
This plugin pares down the page-topping links interface that shows up on every WordPress administration page. I got tired of seeing my blog name in Big Huge Letters all the time, and I kept forgetting that the “Dashboard” link was hidden up in that black bar. So I fiddled with some arrays and wrote some CSS, and got something that chews up less screen real estate while also being easier for me to use. Maybe you’ll feel the same, in which case, enjoy the plugin.
In addition to that, I pared down some of the elements of the “Write Post” page so that they took up a bit less space, and compressed the stuff around the post title’s input field. Those styles are marginally less stable and may cause weirdness for you. If so, sorry. Let me know what goes south and I’ll try to get it fixed in a future version.
Oh, and I also included a CSS rule that makes the background shading of moderated comments more obvious, though not in my usual eye-scarring fashion. It’s just a little darker and notably redder. That doesn’t have much of anything to do with minimizing the admin UI, but I thought it was a huge improvement. I might take it out in a future version if the crowd shouts otherwise.
MW Latest Tweet
This one does what you’d probably guess: shows the latest tweet. Why not just use something like Twitter Tools? Actually, I tweeted about that. A further survey of the options available turned up nothing that was quite what I wanted. So of course I started hacking away.
The basic mechanism is that any time a page that calls this plugin is loaded, it either returns the last-cached tweet or asks Twitter for the latest tweets so it can cache the latest of them. If Twitter fails to respond (I know, what are the odds?), you still get the cached tweet. This is similar to SimpleTwitter, from which I took much inspiration, but is more advanced in a number of ways. Among the options I wanted to have and thus created was having “human time” intervals as an option, and also the ability to filter out @replies (because I personally wanted to display my latest broadcast tweet, not my latest reply). While I was at it, I decided I’d throw in the ability to define your own XHTML output, so that if the plugin failed there wouldn’t be partial or mangled markup shoved into your pages. Also, since I cache the whole of the latest tweet, you have all kinds of stuff you can output should you so desire. It’s all documented on the plugin’s page.
This is not a widget, because I’ve never written one and didn’t have time to learn (due to all the time I was burning just trying to write the plugin). You have to edit your template/web page PHP in order to call it. That’s just the kind of DIY guy I fly.
source: meyerweb
Related Stuff
Improving security in Wordpress plugins using NoncesUsing a nonce (number used once) is the best way to protect your plugin against a cross-site request forgery (CSRF) hacker-attack. Nonces ...
10 New WordPress PluginsThis plugin enable admin to put up a splash page to show that the site is down for maintenance. Come with a timer to tell how long the site ...
WordPress Forums Plugins To Build CommunityGrowing your blog beyond publishing can be done quite easily by using WordPress Forums Plugins. Community growth greatly depends on ongoing ...
5 Annoying WordPress PluginsUsually I attempt to share useful WordPress information but today, I thought we could have some fun with 5 of the most annoying WordPress ...
New releases for jQuery and WordpressThe jQuery Database plugin takes your HTML tables and allows you to write a query against them similar to MS- or mySQL. I haven’t had ...
3 Comments |Add your comment.
It is nice to see that there is the article which could briefly explains about the new ventures.-------------------------------------------Julianrobert--------------------------Social Bookmarking
It is nice to see that there is the article which could briefly explains about the new ventures.-------------------------------------------Julianrobert[ur=http://www.widecircles.com]Social Bookmarking[/url]
It is nice to see that there is the article which could briefly explains about the new ventures .------------------------------------julianrobertSocial Bookmarking
Your Comment ...
Name (required)
Email (required, hidden)
Website

