From 7d049520112991edf1f1fd1f446bb892fc680b9c Mon Sep 17 00:00:00 2001 From: Starla Insigna Date: Sun, 21 Dec 2008 11:18:19 -0500 Subject: Re-did 404 page For some reason, the 404 page was previously filled with terrible semantics, IE classes and it didn't look great. Now, the HTML has been improved. The Search clause has been fixed, there was a bug with displaying the search terms. Also, the error document has been set to the 404 page so the 404 page is actually shown when a page cannot be found. --- .htaccess | 2 + pages/error.php | 12 ++-- theme/errors/404.tpl | 164 +++++++++++++++++++++++++++++++-------------------- 3 files changed, 109 insertions(+), 69 deletions(-) diff --git a/.htaccess b/.htaccess index 9b841b1..3fd4fe2 100755 --- a/.htaccess +++ b/.htaccess @@ -1,3 +1,5 @@ +ErrorDocument 404 http://fourisland.com/error/404.php + RewriteEngine On RewriteCond %{HTTP_HOST} ^www.fourisland.com [NC] diff --git a/pages/error.php b/pages/error.php index 7f6c505..969b7da 100755 --- a/pages/error.php +++ b/pages/error.php @@ -41,10 +41,10 @@ if ($errorid == '404') } else { if ((strpos($strReferer,".looksmart.co")>0) || (strpos($strReferer,".ifind.freeserve")>0) || (strpos($strReferer,".ask.co")>0) || (strpos($strReferer,"google.co")>0) || (strpos($strReferer,"altavista.co")>0) || (strpos($strReferer,"msn.co")>0) || (strpos($strReferer,"yahoo.co")>0)) { - $arrSite = split("/",$strReferer); - $arrParams = split("?",$strReferer); + $arrSite = explode("/",$strReferer); + $arrParams = explode("?",$strReferer); $strSearchTerms = $arrParams[1]; - $arrParams = split("&",$strSearchTerms); + $arrParams = explode("&",$strSearchTerms); $strSite = $arrSite[2]; $sQryStr=""; $arrQueryStrings = array("q=","p=","ask=","key="); @@ -54,12 +54,14 @@ if ($errorid == '404') for ($q=0;$q - - - - -

Hello, my name is Waddle Dee

- - - - - Aaaa.... well... I'm really sorry, but I can't find the page you're looking for. Really, I'm so sorry! Please don't tell Hat Kirby! This is the 17'th page I lost this week! - - - - -

Oh wait. Here we go. We can't find your page because... hmmm... oh not again... It seems Kirby ate the page you are looking for.
Yes, I'm really sorry! He gets really hungry sometimes (all of the time) but we try to keep him fed. Anyway, instead of talking to me, you can:

- - - - -

I'm sure you'll have fun.

-

Oh, oh! More info has come in! You may not be able to find the page because of:

- -
    -
  1. An out-of-date bookmark/favourite
  2. -
  3. A search engine that has an out-of-date listing for us
  4. -
  5. A mis-typed address
  6. -
- - - -

Oh, oh! More info has come in!

-

You did a search on for "". However, their index appears to be out of date. (Because Kirby ate the page)

All is not lost!

Why not try these links?

- -

I'm sure you'll have fun.

- - - -

Oh, oh! More info has come in!

-

You were referred to this page by:
I guess they didn't know that Kirby ate the page.

- -

Wait a minute! That's us! Uh oh! It looks like one of our own links is broken - I'm really sorry about this, and I'll try to fix it before Hatkirby notices. Please send an email to the email address on the HatBar. Thanks!

- -

Why not try one of these links?

- -

I'm sure you'll have fun.

- - -

Oh wait, I have to go. Hat Kirby's coming, and I better have an explanation for this one!

-


-

Kirby 404
Property of hatkirby

-
- - - +

Hello, my name is Waddle Dee

+ +

+ Aaaa.... well... I'm really sorry, but I can't find the page you're looking for. Really, I'm so sorry! Please don't tell Hat Kirby! This is + the 17'th page I lost this week! +

+ +

+ Oh wait. Here we go. We can't find your page because... hmmm... oh not again... It seems Kirby ate the page you are looking for. + Yes, I'm really sorry! He gets really hungry sometimes (all of the time) but we try to keep him fed. +

+ + +

+ Anyway, instead of talking to me, you can: +

+ + + +

+ I'm sure you'll have fun. +

+ +

+ Oh, oh! More info has come in! You may not be able to find the page because of: +

+ +
    +
  1. An out-of-date bookmark/favourite
  2. +
  3. A search engine that has an out-of-date listing for us
  4. +
  5. A mis-typed address
  6. +
+ + + +

+ Oh, oh! More info has come in! +

+ +

+ You did a search on + for "". However, their index appears to be out of date. Because Kirby ate the page, no doubt. +

+ +

+ All is not lost! Why not try one of these links? +

+ + + +

+ I'm sure you'll have fun. +

+ + + +

+ Oh, oh! More info has come in! +

+ +

+ You were referred to this page by: +
+ I guess they didn't know that Kirby ate the page. +

+ + +

+ Wait a minute! That's us! Uh oh! It looks like one of our own links is broken! + I'm really sorry about this, and I'll try to fix it before Hatkirby notices. + Please PM "hatkirby" on The Fourm, or post a topic about it in "Fourscore Improvements". Thanks! +

+ + +

+ Why not try one of these links? +

+ + + +

+ I'm sure you'll have fun. +

+ + +

+ Oh wait, I have to go. Hatkirby's coming and I better have an explation for her this time! +

-- cgit 1.4.1