The following warnings occurred:
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.28 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.28 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $newpmmsg - Line: 40 - File: global.php(841) : eval()'d code PHP 8.1.28 (Linux)
File Line Function
/global.php(841) : eval()'d code 40 errorHandler->error
/global.php 841 eval
/printthread.php 16 require_once
Warning [2] Undefined array key "style" - Line: 909 - File: global.php PHP 8.1.28 (Linux)
File Line Function
/global.php 909 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$lang_select_default - Line: 5024 - File: inc/functions.php PHP 8.1.28 (Linux)
File Line Function
/inc/functions.php 5024 errorHandler->error
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key "additionalgroups" - Line: 7162 - File: inc/functions.php PHP 8.1.28 (Linux)
File Line Function
/inc/functions.php 7162 errorHandler->error
/inc/functions.php 5044 is_member
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key 1 - Line: 1415 - File: inc/functions.php PHP 8.1.28 (Linux)
File Line Function
/inc/functions.php 1415 errorHandler->error
/inc/functions.php 1370 fetch_forum_permissions
/printthread.php 76 forum_permissions
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.28 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.28 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.28 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.28 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.28 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.28 (Linux)
File Line Function
/printthread.php 165 errorHandler->error



Form Tools
Possible to create a custom error page? - Printable Version

+- Form Tools (https://forums.formtools.org)
+-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1)
+--- Forum: General Discussion (https://forums.formtools.org/forumdisplay.php?fid=5)
+--- Thread: Possible to create a custom error page? (/showthread.php?tid=390)



Possible to create a custom error page? - martin_undefined - Dec 7th, 2009

Having read the guide to customising the style of a Form Tools installation, I can see that it is possible to give the installation a look and feel to match a website.

In the unlikely event that my client manages to force the form into giving an error - is it possible to turn off the current error code reporting and replace it with something more generic - in the style of the particular website - and flag the error code to the administrator?

Appreciate this might involve some serious coding - just interested in understanding the principle steps.


RE: Possible to create a custom error page? - martin_undefined - Dec 8th, 2009

(Dec 7th, 2009, 2:52 PM)martin_undefined Wrote: Having read the guide to customising the style of a Form Tools installation, I can see that it is possible to give the installation a look and feel to match a website.

In the unlikely event that my client manages to force the form into giving an error - is it possible to turn off the current error code reporting and replace it with something more generic - in the style of the particular website - and flag the error code to the administrator?

Appreciate this might involve some serious coding - just interested in understanding the principle steps.

Just for anyone else looking at this - it looks like you can use a custom theme and the error.tpl Smarty template to manage this.

Just need to suss the email aspect now.


RE: Possible to create a custom error page? - Ben - Dec 10th, 2009

Hi Martin,

You know that a script has gotten the better of you when you can't think of a solution to something.

Good thinking with the custom theme. Didn't even cross my mind... *sigh*. It's the beginning of the end.... Wink

- Ben