Previous Thread
Next Thread
Print Thread
Rate Thread
#316990 05/17/2008 6:56 PM
Joined: Apr 2001
Posts: 96
Power User
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

Attachments
ErrorPages7.3.zip (7.26 KB, 4 downloads)
Ver 1.0.0
SHA1: 3bf4432e6ac8239babd72c5dda8c803ba098c5e5

Last edited by jgeoff; 05/18/2008 3: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
Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
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, My UBB Scripts
Joined: Apr 2001
Posts: 96
Power User
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
Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
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, My UBB Scripts
Joined: Apr 2001
Posts: 96
Power User
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
Joined: Feb 2002
Posts: 2,286
Veteran
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
Posts: 70
Joined: January 2007
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)