TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

March 29, 2024, 05:23:27 AM

Login with username, password and session length
Members
Stats
  • Total Posts: 195,105
  • Total Topics: 21,213
  • Online today: 310
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 0
  • Guests: 288
  • Total: 288

[Tip] Create a 404 Not Found Page

Started by bluedevil, April 13, 2010, 08:55:10 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

CustomChargersCarClub

Quote from: Ken. on April 14, 2010, 02:24:30 AM
Umm... not seeing the problem, here's my code:

<table cellspacing="1" cellpadding="1" border="0" align="" width="100%" summary="">
    <tbody>
        <tr>
            <td style="text-align: center;"><img src="http://www.ourfamilyforum.org/FamilyForum/MGalleryItem.php?id=7" alt="Page Not Found" /></td>
            <td style="text-align: center;">
<p style="text-align: left"> <br />
            <font size="3"><span style="color: rgb(255, 0, 0); font-weight: bold;">Wow you found our 404 Error Page!!! </span></font><br /><br />

I've been looking for this page ever since i first created it way back in the spring of 2010!  <img src="http://www.ourfamilyforum.org/FamilyForum/Smileys/default/08.gif" alt="Big Grin" /><br />

Sadly, even though you found this page, I seem to have also misplaced the page you were looking for.<br /><br />

You may have stumbled into this 404 "Not found" page on Our FamilyForum for a variety of reasons:<br />

    * A mistyped URL, or a copy-and-paste mistake<br />
    * Broken or truncated links on web pages or in an email message<br />
    * Moved or deleted content<br /><br />
You can click on one of the buttons at the top of this page, or...<br />
Try this link, it should take you to our Home page: <a href="http://www.ourfamilyforum.org/FamilyForum/index.php">www.ourfamilyforum.org</a></td>
        </tr>
    </tbody>
</table>
<script type="text/javascript" src="http://linkhelp.clients.google.com/tbproxy/lh/wm/fixurl.js">
<script type="text/javascript">
  var GOOG_FIXURL_LANG = 'en';
  var GOOG_FIXURL_SITE = 'http://www.ourfamilyforum.org'
</script>
           </td>
        </tr>
    </tbody>
</table>


Replace all that with the following:

<script type="text/javascript" src="http://linkhelp.clients.google.com/tbproxy/lh/wm/fixurl.js">
<script type="text/javascript">
  var GOOG_FIXURL_LANG = 'en';
  var GOOG_FIXURL_SITE = 'http://www.ourfamilyforum.org'
</script>
<table cellspacing="1" cellpadding="1" border="0" align="" width="100%" summary="">
    <tbody>
        <tr>
            <td style="text-align: center;"><img src="http://www.ourfamilyforum.org/FamilyForum/MGalleryItem.php?id=7" alt="Page Not Found" /></td>
            <td style="text-align: center;">
         <p style="text-align: left"> <br />
            <font size="3"><span style="color: rgb(255, 0, 0); font-weight: bold;">Wow you found our 404 Error Page!!! </span></font><br /><br />

I've been looking for this page ever since i first created it way back in the spring of 2010!  <img src="http://www.ourfamilyforum.org/FamilyForum/Smileys/default/08.gif" alt="Big Grin" /><br />

Sadly, even though you found this page, I seem to have also misplaced the page you were looking for.<br /><br />

You may have stumbled into this 404 "Not found" page on Our FamilyForum for a variety of reasons:<br />

    * A mistyped URL, or a copy-and-paste mistake<br />
    * Broken or truncated links on web pages or in an email message<br />
    * Moved or deleted content<br /><br />
You can click on one of the buttons at the top of this page, or...<br />
Try this link, it should take you to our Home page: <a href="http://www.ourfamilyforum.org/FamilyForum/index.php">www.ourfamilyforum.org</a></td>
        </tr>
    </tbody>
</table>


You closed the table twice incidentally closing your wrapper table which gave the messed up footer..

Plus on a side note, you should have all script stuff at the highest point on the page if possible..

Ken.

Good fix Hoodie, thanks. :up:
http://www.ourfamilyforum.org/FamilyForum/index.php?page=208

It dose create something of an issue with the layout however... Not really a huge deal, but the search function needs to be below button and the text for it to 'look' right.
" If everything seems under control, you're not going fast enough." - Mario Andretti
Yesterday When I was Young.

CustomChargersCarClub

Looks like it has something to do with the linktree..  Not sure but if you go to another one of your pages, it shows OurFamilyForum in the linktree and looks fine..  make sure the linktree is active for the page..

Ken.

Not sure if I follow Hoodie, in looking at the screen shot below everything appears correctly placed... it's just that the "Other things to try:" search function is directly above the orange 'stop' button, but needs to be below the button so that the content fits together correctly.

The normal link-tree is turned off in this TP article, so that's why you don't see one at the top and the set of links seen at the bottom are actually a TP block with links.   

As mentioned before, it's not a real big deal... the text can be altered to account for the placement, but imho the 'Other things to try' would look better below the button.  :)

" If everything seems under control, you're not going fast enough." - Mario Andretti
Yesterday When I was Young.

ZarPrime

Ken,

I don't know if you are having trouble with this or not but when I go to any page on your site that should be a 404, including the link you gave a couple of posts up, I don't see what you are seeing (image attached).  Could this be because I am logged into your site when I look?

ZP

Ken.

#25
Checking on it now ZP... not finding anything wrong with it so far, but trying it on a different computer gives the same result that you are seeing.

EDIT: The category permissions were off.  :o
Fixed now, thanks for the catch ZP.
" If everything seems under control, you're not going fast enough." - Mario Andretti
Yesterday When I was Young.

ZarPrime


Mick

Ken,   the page doesnt have a title bar and it has a collapsible button too.

I dont know if its intended like that.

Ken.

Quote from: bluedevil on April 20, 2010, 02:56:51 PM
Ken,   the page doesnt have a title bar and it has a collapsible button too.

I dont know if its intended like that.

Been playing around with the various options BD, so at various times it may give a different look. Turned on the title bar just now, but it's not going to stay. The end result will likely have the least amount of 'extras' possible. :)
" If everything seems under control, you're not going fast enough." - Mario Andretti
Yesterday When I was Young.

Chair

um... i tried this and now all my subdirectories don't work. for example, www.website.com/blog/wordpress/index.php

shows the www.website.com homepage... and the errorhandler in the .htaccess isn't there anymore?