Previous Thread
Next Thread
Print Thread
Rate Thread
[7.3] Custom Error Pages
#316990 05/17/2008 5:56 PM
Joined: Apr 2001
Posts: 96
jgeoff Offline OP
Power User
OP Offline
Power User
Joined: Apr 2001
Posts: 96

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


Attached Files
ErrorPages7.3.zip (7.26 KB, 4 downloads)
Ver 1.0.0
SHA1: 3bf4432e6ac8239babd72c5dda8c803ba098c5e5
Last edited by jgeoff; 05/18/2008 2:59 AM.

GangsterBB.NET (Ver. 7.3)
2007 Content Rulez Contest - Honorable Mention
UBB.classic 6.7.2 - RIP
Browser: Firefox 2.0
Sponsored Links
Re: [7.3] Custom Error Pages
jgeoff #316991 05/17/2008 7:31 PM
Joined: Jan 2000
Posts: 5,795
Likes: 8
UBB.Dev / UBB.Wiki Owner
Time Lord
Online Tapedshut
UBB.Dev / UBB.Wiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,795
Likes: 8
lol:

403 Forbidden

Sorry, but you must log in to do that.


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, UBB.Sitemaps
Re: [7.3] Custom Error Pages
Gizmo #316993 05/17/2008 9:18 PM
Joined: Apr 2001
Posts: 96
jgeoff Offline OP
Power User
OP Offline
Power User
Joined: Apr 2001
Posts: 96
Do I amuse you? Funny how, like a clown? tipsy laugh


GangsterBB.NET (Ver. 7.3)
2007 Content Rulez Contest - Honorable Mention
UBB.classic 6.7.2 - RIP
Browser: Firefox 2.0
Re: [7.3] Custom Error Pages
jgeoff #316994 05/17/2008 10:34 PM
Joined: Jan 2000
Posts: 5,795
Likes: 8
UBB.Dev / UBB.Wiki Owner
Time Lord
Online Tapedshut
UBB.Dev / UBB.Wiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,795
Likes: 8
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...


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, UBB.Sitemaps
Re: [7.3] Custom Error Pages
Gizmo #316995 05/17/2008 10:39 PM
Joined: Apr 2001
Posts: 96
jgeoff Offline OP
Power User
OP Offline
Power User
Joined: Apr 2001
Posts: 96

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


GangsterBB.NET (Ver. 7.3)
2007 Content Rulez Contest - Honorable Mention
UBB.classic 6.7.2 - RIP
Browser: Firefox 2.0
Sponsored Links
Re: [7.3] Custom Error Pages
jgeoff #316997 05/18/2008 3:00 AM
Joined: Feb 2002
Posts: 2,286
Veteran
Offline
Veteran
Joined: Feb 2002
Posts: 2,286
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.


Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Zarzal
Zarzal
Berlin, Germany
Posts: 808
Joined: July 2001
Forum Statistics
Forums63
Topics37,529
Posts293,721
Members13,834
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online 147
Topics Created 0
Posts Made 0
Users Online 1
Birthdays 26
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,795
Greg Hard 4,625
Top Posters(30 Days)
isaac 3
Top Likes Received
isaac 33
Gizmo 8
Brett 7
Morgan 2
Top Likes Received (30 Days)
isaac 3
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2020 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Snapshot build 20200228.dev)
Responsive Width:

PHP: 5.4.45 Page Time: 0.044s Queries: 28 (0.016s) Memory: 3.2801 MB (Peak: 3.4495 MB) Data Comp: Zlib Server Time: 2020-02-29 06:26:44 UTC
Valid HTML 5 and Valid CSS