T O P I C R E V I E W |
TastyNutz |
Posted - 28 February 2007 : 10:45:25 Does anyone have a good custom error page for Snitz?
I'd like an error page which is more inviting and helpful than standard errors pages. I want something like THIS PAGE, which includes my forum header, menus, login, ect., and which also captures the referring page and bad URL, and emails/logs the error for follow up.
I'm NOT a programmer. So, before I spend all the extra time it will surely take me to research and develop this on my own, I thought I'd ask if anyone has done this already, and wouldn't mind sharing.
Anyone? < |
7 L A T E S T R E P L I E S (Newest First) |
TastyNutz |
Posted - 28 February 2007 : 15:19:54 *correction... This won't work after all.
By using my forum headers, this setup works properly ONLY if the missing page is a url within the /forum folder. e.g. /forum/missingpage.asp If it's a url outside the /forum folder, the error page is displayed, but all images and menus are missing, because the relative paths don't work outside the forum folder. So, the page does not display properly and without the menu links, it defeats what I wanted. Plus, it generates an email for each image it can't find. That's about 35 emails.
I guess I'll just create a basic page with simple links to the forum. The user will still get helped and I'll still get my error report. It just won't look like a standard forum page with the header menus. < |
TastyNutz |
Posted - 28 February 2007 : 15:00:54 No offense guys, but I guess I didn't make myself clear. I know WHAT to do, and HOW to do (most of) it. I just wasn't sure I could figure out how to create the custom error page and make it do what I wanted. Turns out, I could! And it wasn't as complicated as I thought.
Doing what I do best, I reverse engineered a couple files and cobbled together what I needed. I started with the page leatherlips linked above, added some code stolen from ruirib's email spam MOD, and came up with this:
Custom Error Page
It has a general error page with a 404 error include. I'll add additional error includes later.
It doesn't log to a DB, but it does email an error report.*
So? What do you think? Not bad for an amateur?
*The file in the .zip emails the report to the forum webmaster. For this demo, I changed that to a dedicated email address to keep from clogging my inbox.< |
pdrg |
Posted - 28 February 2007 : 13:51:19 It's a 404 handler, you also should make a 500-handler (script error)
You do this by creating special files and putting them on your server, and setting IIS to use your pages instead of the default
You would create a 404.asp file which would stash the details you're after to a db. You can't do this unless you have Admin-level access to the server (which I suspect you don't, if you're not programmer-level)
hth< |
TastyNutz |
Posted - 28 February 2007 : 12:48:51 Thanks. I read that before posting here. But I'm still hoping someone has already done one I can borrow.< |
leatherlips |
Posted - 28 February 2007 : 12:11:53 Sorry about that.
I found an article that contains some code that could help get you started...
Click here< |
TastyNutz |
Posted - 28 February 2007 : 11:58:48 I understand assigning the page. But I need to create the page first. I was asking if anyone has already created one with the features I mentioned.< |
leatherlips |
Posted - 28 February 2007 : 11:52:36 I'm not aware of a Snitz custom error page. However you should be able to set up your own custom error page with your host. I made one myself for my site and it is very easy to do. Depending on your host, you just need to assign your page to be the default error page.< |