News: When asking for support, it helps us and you, if you read the Posting Guidelines

Login  |  Register
HTML5 Icon HTML5 Icon
TP on Social Media
Welcome, Guest. Please login or register.
Did you miss your activation email?

August 21, 2019, 06:51:00 PM

Login with username, password and session length

Recent

Members
  • Total Members: 3751
  • Latest: tom888
Stats
  • Total Posts: 188690
  • Total Topics: 20745
  • Online Today: 102
  • Online Ever: 629
  • (November 08, 2018, 01:36:54 PM)
Users Online
Users: 0
Guests: 33
Total: 33

Author Topic: [Tip] Create a 404 Not Found Page  (Read 20253 times)

0 Members and 1 Guest are viewing this topic.

CustomChargersCarClub

  • Guest
Re: [Tip] Create a 404 Not Found Page
« Reply #20 on: April 19, 2010, 08:59:34 PM »
Umm... not seeing the problem, here's my code:

Code: [Select]
<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:

Code: [Select]
<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..

Offline Ken.

  • Support Team
  • *
  • Posts: 4344
    • Our FamilyForum
Re: [Tip] Create a 404 Not Found Page
« Reply #21 on: April 19, 2010, 09:12:25 PM »
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  ^-^

CustomChargersCarClub

  • Guest
Re: [Tip] Create a 404 Not Found Page
« Reply #22 on: April 19, 2010, 09:32:21 PM »
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..

Offline Ken.

  • Support Team
  • *
  • Posts: 4344
    • Our FamilyForum
Re: [Tip] Create a 404 Not Found Page
« Reply #23 on: April 20, 2010, 06:07:35 AM »
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  ^-^

Offline ZarPrime

  • Friends
  • *
  • Posts: 4653
Re: [Tip] Create a 404 Not Found Page
« Reply #24 on: April 20, 2010, 06:45:15 AM »
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

Offline Ken.

  • Support Team
  • *
  • Posts: 4344
    • Our FamilyForum
Re: [Tip] Create a 404 Not Found Page
« Reply #25 on: April 20, 2010, 07:46:30 AM »
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.
« Last Edit: April 20, 2010, 07:50:24 AM by Ken. »

----------------------------------------------------
" If everything seems under control, you’re not going fast enough." - Mario Andretti  ^-^

Offline ZarPrime

  • Friends
  • *
  • Posts: 4653
Re: [Tip] Create a 404 Not Found Page
« Reply #26 on: April 20, 2010, 07:54:01 AM »
Much better now Ken. O0

ZP

Offline Mick

  • Sr. Member
  • ****
  • Posts: 318
  • I use SMF 2.0.15
    • idesignSMF.com
Re: [Tip] Create a 404 Not Found Page
« Reply #27 on: April 20, 2010, 07:56:51 AM »
Ken,   the page doesnt have a title bar and it has a collapsible button too.

I dont know if its intended like that.

Offline Ken.

  • Support Team
  • *
  • Posts: 4344
    • Our FamilyForum
Re: [Tip] Create a 404 Not Found Page
« Reply #28 on: April 20, 2010, 08:16:02 AM »
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  ^-^

Chair

  • Guest
Re: [Tip] Create a 404 Not Found Page
« Reply #29 on: May 11, 2010, 09:06:09 AM »
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?