Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 Custom sayings on error??
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

MadDog986
Starting Member

USA
3 Posts

Posted - 27 February 2002 :  17:00:59  Show Profile  Visit MadDog986's Homepage
I noticed that if you come accross a error on the forums it says a custom saying, i was wondering what the code (in asp) is for that, does anyone know??

thanks in advanced

----
MadDog
www.halflifextreme.com

Nathan
Help Moderator

USA
7664 Posts

Posted - 27 February 2002 :  18:17:43  Show Profile  Visit Nathan's Homepage
Usually the text is just in the file somewhere. Open up the file with a proper editor and use a 'find' to located the text you want to change and change it.

 Nathan Bales - Romans 15:13
---------------------------------

Snitz Exchange | Mod Resource
Go to Top of Page

MadDog986
Starting Member

USA
3 Posts

Posted - 27 February 2002 :  18:27:24  Show Profile  Visit MadDog986's Homepage
that didnt answer my question. I want to know what the command is to wright a custom error, not the default error. example: Like when you install these forums and you forget to edit the config.asp file and you start up the fourms and the setup.asp file has a custom error, not the "file unkown" error.

----
MadDog
www.halflifextreme.com
Go to Top of Page

Nikkol
Forum Moderator

USA
6907 Posts

Posted - 27 February 2002 :  18:39:17  Show Profile
There are different ways to do it. One way would be to include On Error Resume Next toward the top of your code. Then, anywhere you thought an error might occur you could place code along the lines of:


if err.number > 0 then
response.write("An error occurred: " & err.number & " - " & err.description)
end if


If you knew the exact error number you could code it so that your own description displayed instead of err.description.



Nikkol
Go to Top of Page

Deleted
deleted

4116 Posts

Posted - 27 February 2002 :  18:56:22  Show Profile
There are two types of errors: Those catched by the forum, or not catched (so the server gives the error). Ideally all (ok, most) errors must be catched by the software. If they are catched by the forum, you can find the string in the forum .asp files and edit it to output whatever your like. In v4, as all string info is taken out into a file, this will be easier.

For the second case you have two choices. You either try to catch more errors like Nikkol mentions, or you edit the server's error files (with IIS5 you can also change them from the Internet - that's if the host allowes that).


Think PinkPost v40b03 Patches
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.3 seconds. Powered By: Snitz Forums 2000 Version 3.4.07