RSS Feed Subscribe to RSS Feed

Dunstan-style Error Page

Overview

This is another plugin that I used on my old site and now I’m modifying it to make it WP friendly. It’s basically the same 404 error page that Dunstan Orchard uses on his 1976design.com/blog site. Install the file to your plugins directory, activate, configure, and enjoy!

Compatibility

Wordpress Versions:

  • 2.1
  • 2.0
  • 1.5
  • In theory, it should work with 1.2.*, but it has not been tested.

Installation

  1. Downloaded the latest version of the plugin (below)
  2. Rename the downloaded file to afdn_error_page.php
  3. Upload to your plugins directory (typically /wp-content/plugins/)
  4. Activate the plugin
  5. Configure the plugin under Options > Error Page in the administration panel
  6. Find the 404.php file for the theme you are using, usually located at /wp-content/themes/*YOUR_THEME_NAME*/404.php
  7. Delete everything in the 404.php file and replace it with:
          <?php afdn_error_page(); ?>
    
  8. Enjoy!

Download

Latest version:

Changelog
1.3.1
….

1.3
….

1.2

Got all the Akismetfeatures working. While the plugin will work without an API Key, you really should get one. All comments that are tagged as spam by Akismet are placed into an array in the WPDB. You can manage it from the regular Error Page management window. I used the Akismet Comment Spam plugin as a basis for a lot of the UI, so things should be pretty familiar.

4-22-2006 – http://dev.wp-plugins.org/browser/dunstan-error-page/tags/1.2/
1.1

Layed the foundation for Akismet spam testing. If you have a valid API key, detailed error reports will be checked against for spam. YOU DO NOT NEED AN API KEY FOR THE PLUGIN TO WORK. My name was also hardcoded in one last place, so I took care of that. There was an issue with checking the referer that would return a false negative if the actual URL wasn’t preceded with WWW, so that’s fixed. I also coded some things in a rather crappy way, so I cleaned that up. Most of the plugin is now commented, so that should help anyone try to figure out what the heck I was thinking.

4-22-2006 – http://dev.wp-plugins.org/browser/dunstan-error-page/tags/1.1/
0.82

Thanks to Ozh for the heads up on some hardcoded text that should have been dynamic and for suggesting securing the email form.

12-29-2005 – http://dev.wp-plugins.org/browser/dunstan-error-page/tags/0.82/
0.8

NOTICE: Copyright format changed from MIT to GNU GPL as of version 0.8

Embeded error page code into plugin file….if that makes sense.

12-28-2005 – http://dev.wp-plugins.org/browser/dunstan-error-page/tags/0.8/
0.7

Added functionality for redirected error pages.

8-25-2005 – http://dev.wp-plugins.org/browser/dunstan-error-page/tags/0.7/
0.5

Inital public release

6-24-2005 – http://dev.wp-plugins.org/browser/dunstan-error-page/tags/0.5/

Reader's Comments

  1. Digigirl | August 29th, 2009 at 5:19 pm

    Hi, I use your plugin on all my Wordpress installations and seems to work fine all the way up to 2.8.4.

    Except on my test site on my local machine (running Wordpress with a XAMPP local server setup). On that one, it gives me this error (see below).

    Could the fact that it’s a local server environment be breaking it, or something else? Let me know. Thanks!

    Parse error: syntax error, unexpected $end in C:\XAMPP\htdocs\wordpress\wp-content\plugins\dunstan-error-page\afdn_error_page.php on line 503

    Reply to this comment
  2. anton | September 8th, 2009 at 7:20 am

    Great plugin..thank you…

    Reply to this comment
  3. Frank | September 14th, 2009 at 4:08 pm

    Shalom,

    Everything worked great except the link to “Submit an error report form” which did nothing so I added this: to it & all works greater now.

    Shalom,
    Frank

    Reply to this comment

Leave a Comment

Gravatar: Get your picture displayed next to your comment: http://gravatar.com

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Code: To include code, bracket it with [code language="php"] and [/code].
Example: [code language="php"] echo "Hello, World!"; [/code]

Plugin Help: If your requesting help about a plugin, please provide as much information as possible. At the very least, include your WordPress Version and the Plugin Version!