UBB.Dev
Posted By: jgeoff [7.3] Custom Error Pages - 05/18/2008 1:56 AM

Custom 403 & 404 Error Pages for UBB Threads 7.3

This add-on will create 403 Forbidden and 404 Not Found
error pages for your site, embedded into Threads itself.

This will NOT override Thread's current error-handling,
but complements it as this should eliminate any "errors"
cluttering up your server log about "missing error pages".
These WILL work as error pages in Threads that are not part
of the scripts themselves (e.g., erroneous directory
structure, etc) that sometimes come up.

You can work off these if you want to create other error
pages (400, 401) but I purposely didn't create 500 (Internal
Server Error) as it'd be kinda pointless if Threads doesn't
come up anyway. (I use a standard 500.shtml file for that)

No current files are modified (besides .htaccess)

6 new files:

/languages/english/403.php
/languages/english/404.php
/scripts/403.inc.php
/scripts/404.inc.php
/templates/default/403.tpl
/templates/default/404.tpl

------------------------Demo------------------------

http://www.gangsterbb.net/threads/ubbthreads.php?ubb=403
http://www.gangsterbb.net/threads/ubbthreads.php?ubb=404

Note: You will see errors at these links,
because I am demo'ing custom error pages. laugh

--------------------Instructions--------------------

Enclosed in zip file




Description: Ver 1.0.0
Attached File
ErrorPages7.3.zip  (4 downloads)
Posted By: Gizmo Re: [7.3] Custom Error Pages - 05/18/2008 3:31 AM
lol:

403 Forbidden

Sorry, but you must log in to do that.
Posted By: jgeoff Re: [7.3] Custom Error Pages - 05/18/2008 5:18 AM
Do I amuse you? Funny how, like a clown? tipsy laugh
Posted By: Gizmo Re: [7.3] Custom Error Pages - 05/18/2008 6:34 AM
Oh, you know I love you wink... I just find it amusing that you'd require users to be logged in to read an error message :x...
Posted By: jgeoff Re: [7.3] Custom Error Pages - 05/18/2008 6:39 AM

Well, you don't have to log in to read the error messages: the error messages you are seeing are what I am demo'ing after all! laugh wink
Posted By: Ian_W Re: [7.3] Custom Error Pages - 05/18/2008 11:00 AM
worth making the point that by default any file starting with a . is usually hidden in an FTP package, so to view any existing .htaccess file ensure that -la is set within your site settings within your FTP package.

For example in ws_ftp it is site options >> start up >> remote file mask >> enter -la in the blank box and click ok.
© UBB.Developers