Difference between revisions of "Error message display"

From TMM Wiki
Jump to navigationJump to search
m
 
(One intermediate revision by one other user not shown)
Line 12: Line 12:
 
custom_errors.php:
 
custom_errors.php:
  
<? echo "An error has occured on this page, Sorry"; ?>
+
<? echo "An error has occurred on this page, Sorry"; ?>
 
</pre>
 
</pre>
  
Line 18: Line 18:
  
  
<H1>A Problem has been Encountered</H1>
+
  <p style = "font-size: 32px;">A Problem has been Encountered</p>
An error has occured on this page, Sorry
+
An error has occurred on this page, Sorry<br />
 +
Available variables for this page are:<br /><br />
 +
$errstr -> The error that has occurred<br />
 +
$errfile -> The file where the error occurred<br />
 +
$errline -> The line number where the error occurred<br />
  
 
+
[[Category:NATS4 Extras]]
Available variables for this page are:
 
<pre>
 
$errstr -> The error that has occured<br>
 
$errfile -> The file where the error occured<br>
 
$errline -> The line number where the error occured<br>
 
</pre>
 
[[Category:NATS Extras]]
 

Latest revision as of 11:19, 6 June 2011

NATS 4
Members Admin
The Members Admin
View Member Details
Add Member
MySQL Auth
Mod Authn DB
Multisite Access
Member Logging
Member Password Retrieval
OpenID Connect
Mod Auth OpenIDC
ID Numbers
NATS Extras
TMMid
Gallery Builder Module
CAPTCHA
Remote Affiliate Authentication
Build Your Own Anything Module
Shopping Cart Sales
Moving Tours, Members' Area, and Galleries
Admin Areas
Extended Sales
NATS Code Wordpress Plugin
Error_message_display
ATVOD Verification Process
NATS 3
NATS Extras
Remote Affiliate Authentication
Shopping Cart Sales
Moving Tours, Members' Area, and Galleries
Require W-9
Admin Areas
Fraud Report
NATS Content of the Day Module
NATS Load Balancing Module
Gallery Builder Module
Build Your Own Anything Module
NATS Code Wordpress Plugin
Error_message_display
TMMid

Nats allows you as the owner to display your own error messages should an error occur on any of the NATS pages.

To do so, create the file custom_errors.php in your /nats/ directory. This file can contain whatever message you wish to display on an error page.

custom_errors.php:

<? echo "An error has occurred on this page, Sorry"; ?>

This will output the following:


A Problem has been Encountered

An error has occurred on this page, Sorry
Available variables for this page are:

$errstr -> The error that has occurred
$errfile -> The file where the error occurred
$errline -> The line number where the error occurred