WordPress

May 09, 2008

Weblog Tools Collection: Opt In To Subscribing

While reading Lorelle’s awesome post over at the blog herald entitled WordPress Wednesday I noticed a blip she mentioned about Mark Jaquith’s Subscribe To Comments plugin. Apparently, Mark has changed the way in which subscriptions are dealt with by default. In earlier versions, Subscribe To Comments would leave the Subscribe Box check marked by default, causing anyone who commented to automatically be subscribed to that blog post. This in turn created an opt-out way of thinking which has been and continues to be a bad practice.

Mark has changed this around and now leaves the subscribe box blank by default, leaving it up to the end users to decide on whether they would like to subscribe to the post or not. A much needed and welcomed change. Mark even set the plugin up so that even those who want to be subscribed to every post they comment on can do so via cookies:

I appear to have misread into Marks’ post as has been pointed out by both Mark and Lloyd Budd in the comments. What really changed with the plugin is the fact that the site admin now no longer has the configurable option of making the plugin opt-in or opt-out by default. According to Mark,

Before: option of opt-in or opt-out with default of opt-in for new installs. After: opt-in only, but with per-user checkbox stickiness. And yes, the change is old — I just have been getting a lot of e-mail about it and realized I never explained the change publicly.

I realize the change is old and the post I linked to was written in April, but because of the way I read into the post, I thought this was something that needed to be brought up due to the ethical nature of the changes that were made.

by Jeff Chandler at May 09, 2008 04:17 PM under subscribetocomments

May 08, 2008

Weblog Tools Collection: Top 10 Tools to Get Blogging Done

Top 10 Tools to Get Blogging Done: Just like it sounds, LifeHacker lists the top 10 tools, according to them, to get the job of blogging done. If you have ever been to a WordCamp and heard Lorelle speak, she has some of the best power blogging tips that I have ever come across. JohnP has some pretty effective tips on power blogging as well.

by Mark Ghosh at May 08, 2008 09:11 PM under Wordpress Tips

Matt: Foxmarks Beta

The new Foxmarks beta works with Firefox 3 and seems pretty solid. Check out Foxmark’s WordPess-powered blog.

by Matt at May 08, 2008 01:32 PM under Asides

Matt: Kyle Skips OpenID

5 reasons I won’t be getting on the open id train, by Kyle Neath. Animated comment thread.

by Matt at May 08, 2008 08:18 AM under Asides

Matt: Infrastructure as Competitive Advantage

There’s an interesting post at GigaOM: Web 2.0, Please Meet Your Host, the Internet. It’s a good read, though could be shorter, but a few things struck me after reading it. I don’t disagree with him per se, I just think the emphasis is on the wrong thing. (Probably for effect.)

Infrastructure can be a competitive advantage today — the speed and reliability of WordPress.com has certainly put us in a favorable light with users, especially large customers — but that’s going to disappear over time. We’re very much at version 0.1 of things like Amazon’s web services and App Engine, but it’s not hard to read the writing on the wall and understand that level of abstraction is going to be the future foundation of web applications. I’m not counting on infrastructure to be a long-term competitive advantage for Automattic.

If you have a few minutes it’s worth reading On Grids, the Ambitions of Amazon and Joyent which has the real definition of a grid and Sunshine, which is worth it for the extended analogies to Greek mythology. (Both end in ads for Joyent.) Also check out Early notes on GoogleApps, Dave Winer groks where this has to go.

Second, Allan describes a case of a DDOS attack hurting a friend’s startup who had very little information about how to stop it:

Unfortunately, the poor site performance was not missed by the blogosphere. The application has suffered from a stream of bad publicity; it’s also missed a major window of opportunity for user adoption, which has sloped significantly downward since the DDOS attack and shows no sign of recovering.

We can all name startups or sites that aren’t particularly known for their performance, but that flourished in spite of it. Twitter and MySpace comes to mind. If we dug a little deeper we could also find thousands of startups who were prepared for the world to show up to their door, and it never did. Building something people want is much harder than scaling it. (In most cases.) If you solve the what-people-want problem, they’ll use you no matter how bad your interface is, how slow your site is, just give them somewhere worth waiting for. I would suspect the friend here isn’t seeing their usage decline because on their Techcrunch day the site wasn’t responsive, it’s that they’re probably still in the before market fit stage.

Third, I am a huge believer in the importance of performance, but most people forget that on the web 80-95% of performance is on the front end not the page generation time. (I realize I’m saying this on a site with a 140kb header graphic. :)) Yahoo has fantastic resources on this. When a website “pops” it probably has very little to do with their underlying server infrastructure and a lot to do with the perceived performance largely driven by how it’s coded at the HTML, CSS, and Javascript level. This, incidentally, is one of the reasons Google Gears is going to change the web as we know it today - LocalServer will obsolete CDNs as we know them. (Look for this in WordPress soonish.)

Finally, for the next few years before we have true utility computing, there are some great “hardware as a service” providers like Layered Tech and Server Beach that essentially handle everything from the power to the network to hardware, and let you take over from the operating system up. This is what we use for WordPress.com, Akismet, WordPress.org, and it’s great. It’s allowed us to focus on what matters — our software and service. You still need a pro like Allan describes to handle things at the OS level (most performance problems I see are badly configured servers, not hardware limitations) but leave networking and hardware to people with economies of scale. This comment nails it.

Update: I’m in a video Rod Boothby did asking What is Cloud Computing, good timing.

by Matt at May 08, 2008 07:25 AM under rant

Matt: WordCamp Milan

I’m leaving tomorrow for Milan where I’ll be attending WordCamp Italy. Hope to see some of you there!

by Matt at May 08, 2008 06:02 AM under WordCamp

Weblog Tools Collection: WordPress Plugin Releases for 5/7

Google Maps

The Google Maps plugin allows you to easily insert Google maps into your blog, making use of the new shortCode system in WordPress 2.5. The maps can be configured to offer directions to or from the location, show or hide the zoom/pan controls, show/hide map type, activate zoom using mouse wheel. This plugin requires a API key from Google Maps.

TW-Asides

Tw-asides is an asides widget for WordPress. It lets you publish short posts that appear in your sidebar rather than in the main content column. Asides posts won’t appear in your main content stream, whether it’s on the front page of your blog or when navigating via the next/previous post links.

WP-Crontrol

WP-Crontrol is a plugin that lets you manage the WP-Cron system and see what’s going on there. This includes adding/editing/deleting cron entries, as well as cron schedules.

Random Featured Post

The Random Featured Post plugin allows you to display a random post from one or more designated categories. The featured post will display the title “Featured Post” which is customizable along with the post’s title and content or an excerpt with link to full post.

WP-Offload

WP-Offload will boost the performance of your blog by seamlessly offloading static content like images, documents and movies. This will greatly reduce bandwidth consumption and the number of HTTP requests issued to your web server. Additional features such as remote image manipulation and thumbnail generation are provided.

Google XML Sitemaps with Multiple Domains

This plugin is a solution for those running both the Domain Mirror and the Google (XML) Sitemaps Generator plugins together in WordPress.  The plugin extends Google (XML) Sitemaps so that it creates one sitemap for each mirror set up in Domain Mirror.  Sitemaps are created with the mirror URL prepended to the custom filename.

BT Active Discussions

This is a recent comments plugin that displays customizable number of blog posts with recently updated comment. The output is very similar to phpBB’s View Active Topics and vBulletin’s Today’s Posts functions.

by Keith Dsouza at May 08, 2008 03:55 AM under Wordpress Plugins

May 07, 2008

Weblog Tools Collection: Farms 100 Big Ones Theme Pack

Farms 100 Big Ones Theme Pack: Download this 100 WordPress themes zip file (17MB) and upload them to your blog to have 100 themes to play around with. Many of these themes are older but they are all widgetized, have a bunch of bug fixes, are internationalized, work on both WordPress and WordPress Mu and they have been time tested on Edublogs. I normally would not suggest that users download themes from sources other than the original theme authors’ site, but this is offered from a trusted source and the convenience of a single zip file added to the additional testing and bug fixing performed by Edublogs, is the icing on the cake.

[EDIT] James provided a preview of all 100 themes here.

by Mark Ghosh at May 07, 2008 06:01 PM under wordpress-theme

May 06, 2008

Matt: Expo Keynote

Here’s a video of my “high order bit” keynote talk at Web 2.0 Expo. It’s succinct — 10 minutes — and covers WordPress.com and Automattic growth, the possibly related posts launch, and Monotone.

by Matt at May 06, 2008 10:29 PM under web 2.0 expo

Weblog Tools Collection: A Unique Monotone

While Matt Mullenweg attended the Web 2.0 Expo in San Francisco just a few weeks ago, he previewed a new theme which looks like might be the perfect WordPress theme for photographers called Monotone. Monotone was developed by Noel Jackson and is a very unique theme in that, the color scheme changes based on the photograph being displayed. Here are two screenshots showcasing the theme in action with two different photographs.

Green Color SchemeGrey Color Scheme

Monotone takes the first image attached to a post and samples colors from it for use in the surrounding layout. Each post needs to contain one image, and optionally, any text you want. The theme does the rest, pulling colors out of and resizing the images for use in the design. You can use the visual or the HTML editor in wordpress to input your image and supporting text.

One of the only problems I’ve seen with the Monotone theme is that, sometimes the link colors blend in with the background making them difficult to see. Other than that, some of the photos really pop out at you thanks to the surrounding colors.

Monotone is generally only available for WordPress.com bloggers because the images must be uploaded to WordPress so they can resize them and extract the colors properly. For more information regarding the Monotone theme, check out the WordPress.com April Wrap Up.

As a side note, if you would like to use this theme on a self hosted WordPress blog, you will need to visit the Automattic SVN and then download and package the following files.

Also, if you happen to be using the Monotone theme on your WordPress.com blog, provide us a link so we can take a look at it!

by Jeff Chandler at May 06, 2008 08:56 PM under wp.com

Matt: Mark on DRM

The day the music died.

by Matt at May 06, 2008 03:57 PM under Asides

Weblog Tools Collection: WordPress Theme Releases for 5/5

One Column Themes

Simple Gray

simple-gray-thumbnail

Simple Gray is a one column theme which features dark tones of gray and mauve. The theme does not have any sidebars but does sport a extended footer.

Two Column Themes

Just Lucid

just-lucid-thumbnail

Just Lucid is a simplistic two column theme. The menu for the theme is shown to the left hand side of the page instead of the top. The sidebar and footer area are both widget ready. The theme contains stylesheets for 800px and 1024px width.

 

Three Column Themes

Written

written-thumbnail

Written is a 3 column widget-ready theme featuring a personal photo, full-width footer in black, white and blue/green.

Zoxengen

zoxengen-thumbnail

Zoxengen is a 3 column widget-ready theme with theme options.  The theme uses a bright color and has a section for feature articles and 6 spots for adding 125*125 banners.

Four Column Themes

LivingOS TAU

livingos-tau-thumbnail

LivingOS TAU is a four column widget-ready theme. The posts are displayed in newspaper of magazine style grid format.

by Keith Dsouza at May 06, 2008 03:55 AM under WordPress Templates Wordpress Skins Wordpress Themes

May 04, 2008

Gravatar: Identicons Deploy


WordPress.com users now have more avatar options, to choose the new defaults we talked about previously.

Those options will also be included with WordPress 2.6!

Also — the PNG thing is on our radar. Will have to change some things up to make it work again, but it’s just code. :)

by Matt at May 04, 2008 09:26 PM under Gravatar

Weblog Tools Collection: Error Management for WordPress Plugins

For the past few weeks I’ve been working on a WordPress plugin. One of my goals was to have fancy and relevant error messages.

I contemplated writing my own error manager, and even began a very basic one. I experienced hurdle after hurdle, and finally I thought to myself, “Wouldn’t WordPress have its own error manager also?”

So I did a quick source-code search and came across the WP_Error class.

One of the hurdles I ran into in creating my own error manager was error localization. The WP_Error class makes localizing error messages extremely simple.

Adding Error Messages

To add an error message, the first thing you’ll want to do is instantiate your own instance of WP_Error.

$myErrors = new WP_Error();

The next step is to add in your error messages.

$myErrors->add('access_denied', __('You do not have permission to do that.',$myLocalizationName));

There are a few things to notice here. There is something called an error code, which you will use to look up the full error message. You also have the full error message, which uses the __ function for localization.

Retrieving Error Messages

After you have added in your error messages, you’ll want to retrieve them at some point.

Retrieving an error message is as simple as calling the get_error_message method and passing it your error code.

$errorMessage = $myErrors->get_error_message($code);

From there you can echo out your message in whatever manner suits you.

Applications

Using the WP_Error class is ideal for those with themes and plugins.

For plugins, it’s best to have your errors as a member of a class. Using the class approach assures that you can access the errors throughout your methods, and also avoid naming conflicts.

For themes, you can also create your own class, or have a prefixed variable so you don’t have possible conflicts with other variables.

Downloadable and Example Code

Here is some downloadable code with an example of how the class might be used in a theme. As stated earlier, plugin authors may want to use a class for this.

The code is assumed to be placed in a theme’s &