Author |
Topic |
|
TastyNutz
Junior Member
USA
251 Posts |
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? < |
PowerQuad Disability Support Forum |
|
leatherlips
Senior Member
USA
1838 Posts |
|
TastyNutz
Junior Member
USA
251 Posts |
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.< |
PowerQuad Disability Support Forum |
|
|
leatherlips
Senior Member
USA
1838 Posts |
|
TastyNutz
Junior Member
USA
251 Posts |
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.< |
PowerQuad Disability Support Forum |
|
|
pdrg
Support Moderator
United Kingdom
2897 Posts |
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
Junior Member
USA
251 Posts |
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.< |
PowerQuad Disability Support Forum |
Edited by - TastyNutz on 01 March 2007 22:26:22 |
|
|
TastyNutz
Junior Member
USA
251 Posts |
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. < |
PowerQuad Disability Support Forum |
Edited by - TastyNutz on 01 March 2007 22:23:26 |
|
|
|
Topic |
|