JSON and ASP.NET

June 26th, 2009

This is a bit different from my normal PHP and MySQL related posts, but I found this interesting so I though I’d pass it along.

If you’re familiar with ASP.NET you probably know that every page has a presentation layer (a lax form of XML) and a business layer (C# or Visual Basic). This is a brilliant way of organizing a website because it separates your data (the presentation layer) from your complex logic (the business layer). This gives you several advantages (not by any means an exhaustive list):

  1. Complicated logic is easier to understand when it isn’t cluttered with HTML tags
  2. Because the presentation and the business layers are loosely linked, changes in one often don’t require a change in the other
  3. Object oriented principles can be used in both the presentation, and the business layer, promoting code reuse

Read the rest of this post…

Back On Track

June 18th, 2009

Nearly a month has transpired since my last post, but I finally have a chance to write something. This post will be more personal than technical., so don’t say I didn’t warn you.

Read the rest of this post…

Multiple WP Blogs On One WP Core

May 21st, 2009

Last Saturday I had the opportunity to listen to Mike Krotscheck talk about techniques for advanced WordPress installations. One of the most interesting things I took away from his talk was a way to install multiple WordPress blogs on one WordPress core. Note we’re not talking about WordPress MU. When you only need 2 or 3 blogs, WordPress MU can be a bit overkill, but installing these blogs on the same WordPress core can save space and make updates easier. Here’s how you do it.

Read the rest of this post…

Short Comment Filter Update

May 19th, 2009

After releasing the Short Comment Filter Plugin, I’ve gotten feedback from people at WP Tavern and I’ve finally gotten a chance to implement their suggestions. I’ve added enough features that I’m bumping the version number to 2.0. Get the new version here

New Features

  • Filtered Comment Count – Look at the settings page to see how many comments have been filtered
  • Customizable Filter Message – Specify a custom message to be displayed if a comment is too short. Use %type% and %length% for a dynamic message

Fixes

  • Email Notification – Notification emails are no longer sent out for filtered comments
  • Filtering Trackbacks – Trackbacks are no longer filtered. Only comments are required to meet the minimum length requirement

Again, here’s the download link

WordPress Tip: Obscure get_option Parameter

May 4th, 2009

Any WordPress Plugin developer worth their salt knows about the get_option function, which allows options to be retrieved from the database. What I recently discovered is that this function accepts a second parameter, indicating a default value to be returned if the option doesn’t exist in the database.

Read the rest of this post…

Plugin Release: Short Comment Filter

April 12th, 2009

Today I’m releasing a new plugin: Short Comment Filter

It automatically spams or deletes comments that are too short.

You can view more information about the plugin and download it here.

CSS Naked Day

April 8th, 2009

Today is CSS Naked Day, a day when web enthusiasts remove all CSS styling to show the world what CSS does for us. Everything will be back to “normal” tomorrow.

You can learn more about CSS Naked day here.

Best WordPress Design Award Update

April 6th, 2009

My design was selected among the top 10 Retro and Vintage designs submitted to the Best WordPress Design Award sponsored by WP Webhost. Now the polls are open, and the voting can begin.

If you like my blog design, I’d love your vote! You can see the a list of the designs that were submitted, and vote on your favorite here.

WordPress: Limit Your RSS Feed To One Category

March 17th, 2009

When designing Anderson Web Solutions, I decided to use Posts for both news items and Portfolio entries. There were several advantages to doing this, but one issue I found was that everything was being thrown together in the RSS feed. I decided to look into filtering the RSS feed to only show posts from the News category. Here’s how it works.

Read the rest of this post…

Best WordPress Design Award

March 10th, 2009

WPWebHost is a web hosting company that specializes in WordPress web sites. They are hosting a WordPress design contest with five categories: Clean&Minimalist, Retro&Vintage, Grunge, Hand-Drawing, and Modern&Elegent.

I’ve decided to enter the contest in the Retro&Vintage category. Why did I decide to enter? My design certainly isn’t the most beautiful out there, so I’m not “expecting” to win, but this might give me a chance to get some constructive critisism about design choices I’ve made. Besides, it can’t hurt, and there’s a prize :)

Do you have a WordPress blog that you’ve designed? Enter it in the contest.

Good Luck!