Feature
Post

Category
Strategy

How to Increase RSS Feed Subscribers

What is RSS?

RSSRSS is a type of XML file which includes content from a variety of websites and web services. It allows people to easily track new content being added on sites. RSS stands for Really Simple Syndication (RSS 2.0), RDF Site Summary (RSS 1.0 and RSS 0.9), as well as Rich Site Summary (RSS 0.91).

Many people have said that RSS is what has really made the web better and more useful, as we can subscribe to data, content and information from just about any website.

My grandmother didn't understand the usefulness of RSS until I told her that it is like subscribing to the favorite sections of newspapers around the world and having them all delivered to you as new stories are written.

WordPress and RSS

Devlounge RSS Autodiscovery Button in Firefox

WordPress has many RSS options built into it, but some theme authors have forgotten to add the proper code to the header to make it easy for RSS feed discovery services, like Bloglines, to find.

To insert the feed into the head of your themes, make sure you use the following code:

PHP:
  1. <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />

To learn more about the feed options that WordPress comes with, check out the RSS Page on the WordPress Codex.

The Tips

Feature Your RSS - If you want to get people to subscribe to your RSS feed, the best way is to feature it the best you can, and as often as you can. If you don't, people won't notice it and thus they won't subscribe.

Write About RSS - I know it seems a bit comical that I am writing a post about RSS and one of my tips to increase RSS subscribers is to write about it, but writing about RSS, or your current subscriber growth is a great way to increase your subscriber base. It is a reminder to those that read the site, but don't subscribe, that maybe they should.

Give Options - With Feedburner offering both regular subscription options and e-mail subscription options, giving your readers many options can help increase the number of people that subsribe. This also includes giving them multiple feeds. WordPress comes with support for multiple feed formats, and allows users to subscribe to single categories if they so choose.

Hold a Contest - There are many ways to insert information into the RSS feed and you could hold a contest where people had to subscribe in order to find the keyword of the day. Usually, unless you are producing amazing content, most subscribers will quickly disappear once the contest ends.

Consistently Write Great Content - This is by far the most simple tip on the list, but for some people, it is also the most difficult. The reality is that sites that break news, have strong opinions, or teach get more subscribers than other sites.

While great content can be subjective, consistency isn't. If you publish one original article every day, your RSS subscribers will slowly climb. If you stop posting, they will most likely fall.

Conclusion

As adoption of RSS feed reading continues to pick up steam, you will want to optimize your blog to promote the options people have to subscribe to your site. There is nothing better than having regular readers, and subscribers are more likely to be regular readers than anyone else.

What are your best tips for increasing subscribers?

Feature
Post

Category
Webapps

ShareThis 2.0

A new "version" of the popular ShareThis tool has been released. You will probably recognize the icon as it has been used on thousands of blogs the world over, due to the simplicity it adds to allowing visitors to bookmark, email or otherwise share articles they are reading.

If you run a WordPress blog, it is easy to integrate ShareThis as it comes in plugin form. With the new update though, non-WordPress blogs are now supported, making it easier than ever to use ShareThis. You can also add ShareThis to Internet Explorer or Firefox to make it that much easier to share the great content you find online.

Some other new features in the new version include being able to configure how the button works, which web sites and web services you want to include, and what colors you would like it to use. Another big addition includes the ability to not only e-mail articles like in previous version, but also share the content via IM and mobile chat protocols like SMS.

The last major new addition is a tracking system which reports how many people are sharing your content and which content they are sharing. Data will be delayed during the first month of data collecting, but I am not sure after that if it will be updated more often.

I can see this becoming more useful to bloggers and websites in general as they continue to make the product more useful and easier to use.

Some drawbacks I have noticed include a slower loading time on the new widget, and some slight user interface quirks, but I still think it is worth adding to your array of on-site promotional tools.

For more details on what is going on with the ShareThis product, check out their blog, and download the new WordPress plugin.

Feature
Post

Category
Publishing

WordPress Caching Overview

You would think that over the long period since everyone used static pages for their websites, we wouldn't have to come full circle, but with the ever increasing audience of web savvy users, database calls can bring a website to its knees.

Do huge waves of traffic have to bring your WordPress powered site down? Not if you are properly prepared.

What is Caching?

Basically, caching takes a duplicate of a page, and creates a static file from it. This means that as each new user comes to view the page, they don't make the software, in this case WordPress, poll the database again. This reduced the strain on the server hosting your site, and makes it able to handle larger waves of traffic.

Wikipedia breaks it down really nicely:
In computer science, a cache (IPA:/kæʃ/, like "cash" [1]) is a collection of data duplicating original values stored elsewhere or computed earlier, where the original data is expensive to fetch (due to longer access time) or to compute, compared to the cost of reading the cache. In other words, a cache is a temporary storage area where frequently accessed data can be stored for rapid access. Once the data is stored in the cache, future use can be made by accessing the cached copy rather than re-fetching or recomputing the original data, so that the average access time is shorter. Cache, therefore, helps expedite data access that the CPU would otherwise need to fetch from main memory.

Why is it important?

They blame their hosts for this because they believe it to be their fault, when instead the hosts are really just looking out for their own business

I have seen so many people complain about how their web host shut down their site just as they got on the front page of Digg, or that the site crashed. They blame their hosts for this because they believe it to be their fault, when instead the hosts are really just looking out for their own business, and the other websites on the server that your site is on.

Most people have shared hosting, and what this means is that there are numerous websites, files, and other blogs all being run from one server, and while bandwidth and hosting is super cheap, adding additional processors (CPU's) to the server can be very expensive and so CPU time must be limited on each account to keep the stability of all the sites as perfect as possible.

When your WordPress powered site gets a great deal of traffic in a short period of time, the processor is put under a fair deal of strain, and if you have ever opened so many applications that you have slowed or even frozen your computer, the same can happen to the server. Now imagine if there were a dozen people all working from your computer. Wouldn't you be frustrated if it froze out everyone every time a large spreadsheet was opened?

So web hosts put in measures to stop any one site from disrupting all the sites on the single server. Really though, part of the responsibility is the owner of the site, and if you don't plan accordingly, then you deserve any disruption of service that you get.

Are there any downsides?

Pretty much any caching plugin is going to have its limitations. A cached page may not show certain "live" details correctly, like how many people viewing a page, and this is because the page being served is not pre-processed every time by the server. This is a small consequence in comparison to keeping your site live during large waves of traffic.

WordPress Caching Plugins

There are a few WordPress plugins that will help you create cached pages of your blog, its feed, and any externally linked images you may be using. The most popular one to date has been WP-Cache 2.0. It has a great deal of respect in the WordPress community, and has been tested and proven to be beneficial during high traffic times.

Some details from the site:
WP-Cache is an extremely efficient WordPress page caching system to make your site much faster and responsive. It works by caching Worpress pages and storing them in a static file for serving future requests directly from the file rather than loading and compiling the whole PHP code and then building the page from the database. WP-Cache allows to serve hundred of times more pages per second, and to reduce the response time from several tenths of seconds to less than a millisecond.

WP-Cache started from the “Staticize Reloaded” by matt and billzeller. Most of their recommendations also apply to WP-Cache. Current version, WP-Cache2, is a huge improvement over previous versions of WP-Cache.

There are other options though, as Donncha has built Super Cache, a series of modifications to WP-Cache 2. It continues to add new features, as well as fixing some things that weren't necessarily perfect in the last version of WP-Cache 2, and has already had a 0.2 release put out which many WordPress fans are enjoying.

One feature that stood out to me was that Super Cache will only create a new cache file for a post, if a comment is not marked as spam by Akismet. I think this is brilliant and makes complete sense, and will only serve to help continue to make WordPress blogs as efficient as possible in their performance.

Super Cache, on release, did make it to the Digg front page, but unfortunately, it didn't attract the full on "Digg-effect", and as such didn't give Super Cache the initial test we were all hoping for, but Donncha's results are still very impressive. Check it out on his blog, Ocaoimh.ie.

As for other caching tools, there is FeedCache, which will cache your RSS feeds, Cache Images, which takes images you have linked to that are not on your site and copies them to your own content folder, and there are many others depending on the task you want to compete.

Other measures you can take

Using a WordPress plugin isn't the only thing you can do to reduce the server strain that your site creates. You can also remove some of the graphics you are currently using, to make the page's file size smaller. One of my favorite ways to do this would be to change the print stylesheet into the default stylesheet during high traffic times. This will allow you to continue to feature your content, and images relevant to the post, but remove most other elements.

If the choice is between having a fancy design or keeping your site up, I am sure you would rather keep your site up. To accomplish this, you can create your own print stylesheet, or use a plugin like WP Print and change the header.php to use the stylesheet that comes with the plugin during high traffic loads.

Donncha also recommends a server application called Xcache.
For maximum performance, download Xcache and install it. The Xcache WordPress plugin uses Xcache to cache data structures and makes WordPress much faster, even if you don’t use any other caching tool.

To use Xcache though, you would have to have the ability to install things on your hosting server, or if you politely ask your host, maybe they will install it for you, but this is not something that most places will allow you to use. I still wanted to include it though as an option though, as I continually hear how great it is at reducing server load.

Conclusion

Getting to the front page of any popular website can mean huge amounts of traffic, but if you are not prepared, it will all be wasted as people are brought to an error page. I highly recommend that those using WordPress, or any software that doesn't used static files to display content, research caching options for your sites, as you never know when you will need it.

And try to remember that it is not just your hosts fault when your site goes down due to a huge burst of traffic.

Feature
Post

Category
Code

WordPress Theme: Log In On The Front Page

While there have been many people customizing the login page of WordPress, and others trying to put it in a page, I haven't seen too many blogs that allow you to log in to WordPress via the blog's front page. The log in form on wp-login.php is a simple form that you can pull from the page, and put just about anywhere.

Recently, for a client, I had to put that form on their WordPress theme, so they could bypass the wp-login.php page, and go right from the blog to the administration panel, and it is easier than you might think.

*Note: Doing this can cause issues later on as WordPress is a constantly evolving piece of software. This may not work on future versions.

Getting the Code

The first thing we need to do is to get the form's code from wp-login.php. In the folder you installed WordPress in, you will see the file named wp-login.php in the root folder. Download the file, and open it up in your text editor of choice. I am using Mac OS X, and Smultron.

Around line 347 you will find the log in form we will need.

PHP:
  1. <form name="loginform" id="loginform" action="wp-login.php" method="post">
  2.     <p>
  3.         <label><?php _e('Username:') ?><br />
  4.         <input type="text" name="log" id="user_login" class="input" value="<?php echo attribute_escape(stripslashes($user_login)); ?>" size="20" tabindex="10" /></label>
  5.     </p>
  6.     <p>
  7.         <label><?php _e('Password:') ?><br />
  8.         <input type="password" name="pwd" id="user_pass" class="input" value="" size="20" tabindex="20" /></label>
  9.     </p>
  10. <?php do_action('login_form'); ?>
  11.     <p><label><input name="rememberme" type="checkbox" id="rememberme" value="forever" tabindex="90" /> <?php _e('Remember me'); ?></label></p>
  12.     <p class="submit">
  13.         <input type="submit" name="wp-submit" id="wp-submit" value="<?php _e('Login'); ?> &raquo;" tabindex="100" />
  14.         <input type="hidden" name="redirect_to" value="<?php echo attribute_escape($redirect_to); ?>" />
  15.     </p>
  16. </form>

Depending on how you want to style the form, you might want to add or remove some of the code around the items like the paragraph tags.

There are two lines that have to be changed. The first is the redirect_to line, which I just removed. This shouldn't really have any adverse effects because it was just used to decide if a particular user should go to their profile page, or the dashboard.

The second change I made was to make the rememberme checkbox into a hidden field. I couldn't think of any reason why you wouldn't want your users to be remembered. You can change this if you like, but here is what I changed mine to:

PHP:
  1. <input name="rememberme" type="hidden" id="rememberme" value="forever" />

If you don't want your visitors to be remembered, you can remove this line and again, it shouldn't cause any adverse effects.

Implementing It

This leaves you with a basic form, which we can then insert into any area of our WordPress theme. The sidebar or header being the two places that make the most sense. In the client work I did, we put it in their header, right next to the navigation for their blog.

Open your theme folder, you can find it under wp-content/themes and then download the place where you plan on putting your login form, either sidebar.php or header.php.

Copy and paste your edited form to where you want it go be.

My form code is as follows:

PHP:
  1. <form name="loginform" id="loginform" action="wp-login.php" method="post">
  2.         <input type="text" name="log" id="user_login" class="text input" value="<?php echo attribute_escape(stripslashes($user_login)); ?>" size="20" tabindex="10" />
  3.         <input type="password" name="pwd" id="user_pass" class="text input" value="" size="20" tabindex="20" /><?php do_action('login_form'); ?>
  4.     <input name="rememberme" type="hidden" id="rememberme" value="forever" tabindex="90" />
  5.         <input type="submit" name="wp-submit" id="wp-submit" class="submit" value="<?php _e('Login'); ?> &raquo;" tabindex="100" />
  6. </form>

You will noticed I added some extra classes to mine so that I could use CSS to style it to fit the design. I highly suggest doing the same. Look at the CSS code for your comments form if you need inspiration.

The next thing we will want to do is put in a test to see if a user is already logged in. This is to place a logout button, as well as to have a visual cue that the login is working properly, though if it brings you to the WordPress administration panel after you put your username and password in, it is probably working just fine.

Above your form place the following code:

PHP:
  1. <?php
  2. get_currentuserinfo() ;
  3. global $user_level;
  4. if ($user_level> 0) { wp_loginout()} else { ?>

And then after place this:

PHP:
  1. <?php } ?>

This basically says that if a user is logged in, then show the logout link, otherwise show our login form.

Then once you upload the new sidebar or header, refresh your blog, and test it out. You should see a username and password field when logged out, and a logout link when you are logged in.

If you have any changes, questions or ideas for this article, please let me know in the comments below. I always enjoy finding new information on how to do things easier, and better with WordPress and PHP.

Coded End Result

PHP:
  1. <?php
  2. get_currentuserinfo() ;
  3. global $user_level;
  4. if ($user_level> 0) { wp_loginout(); } else { ?>
  5.  
  6. <form name="loginform" id="loginform" action="wp-login.php" method="post">
  7.         <input type="text" name="log" id="user_login" class="text input" value="<?php echo attribute_escape(stripslashes($user_login)); ?>" size="20" tabindex="10" />
  8.         <input type="password" name="pwd" id="user_pass" class="text input" value="" size="20" tabindex="20" /><?php do_action('login_form'); ?>
  9.     <input name="rememberme" type="hidden" id="rememberme" value="forever" tabindex="90" />
  10.         <input type="submit" name="wp-submit" id="wp-submit" class="submit" value="<?php _e('Login'); ?> &raquo;" tabindex="100" />
  11. </form>
  12. <?php } ?>

Feature
Post

Category
Strategy

The Art of Commenting

The Rules

Don't Spam
I want to get this out of the way, as it has become a huge problem online with nearly every blog. If you are manually spamming someone else, you are not a good Internet citizen. If you are honestly wondering if your comment is spam, ask yourself if you would like to receive such comments? Or if you don't have a blog of your own, try to remember how you feel when a telephone marketer calls right in the middle of supper.

If your comment is only to promote your own site, then don't be surprised if it gets deleted as it detracts from the conversation.

If you are a spammer, and ignore this rule, I hope that someday there are laws that will stop you from having Internet access.

Fill Out Your Information Properly
If you want to make a good impression, be sure to fill out all the information requested. I know it can be worrisome to give out your e-mail address, but if that is a concern for you, create an e-mail account just for commenting on blogs. That way you can still start conversations with the blog owners if you so choose.

I have been able to build some amazing relationships with top level bloggers by commenting on their blogs. If I hadn't filled out all the requested information, they would have had no way to find me and start that line of communication.

Reference Your Response
When you are getting ready to submit a comment, you will want to reference what it is you are commenting on. Sometimes this might be very apparent, but other times, other people might not understand if you are responding to the main article, or to another comment. This is a larger issue on sites that don't have a threaded commenting system, but it is still helpful, and polite to reference what the comment is regarding.

If you say something like "I disagree", and don't say who you are disagreeing with, it can create confusion, and not help continue to build the conversation. Make sure you answer the basic questions: who, what, where, when and why? I know this can seem basic, but so many people forget to do this, treating comments like cell phone text messages or instant messages, thus reducing the meaning behind their message, and the value of what they have to say.

More is Usually Better
Text can be such a limiting medium, you lose out on pitch, tone, body language, and facial clues, and so adding more words to your comments can help make up for those shortcomings.

The phrase "yeah right", could mean so many different things depending on the tone. It could be sarcastic, honest, questioning, or a variety of other things, and without any more description, it is up to the person reading the comment to try to judge the original intention of the message.

The Reasons

Increase Your Traffic
If you have a blog of your own, and followed the above rules, people may follow that link, and see if you have more knowledge to share, thus increasing your traffic. There are many bloggers that swear by commenting on other blogs to build up their own. It shows that you have knowledge, an opinion, and that translates into something people will want to read.

Learn Something New
Recently, I had commented on another person's blog, and someone else had responded to me. It wasn't the author of the post, but instead someone else that had found the post, and answered my question.

Had I asked this question on my own blog, I might not have received any response because it would have been outside the normal target audience of my blog. On some great blogs, if the topic is right, and the comments are open, there can be more to learn from the comments than in the articles.

Conclusion

Part of the reason blogging has become as pervasive online as it has become is due to the openness of commenting. This has helped blogs go beyond their traditional media counterparts and their "letter to the editor" style approach to creating a open dialog between the writers and their readers.

I would love to hear your opinion on commenting, and any stories you might have on how it has been beneficial or a nuisance to you.