By default MemberMouse will output a relevant error message on the error page based on the specific error scenario that occurred. This is accomplished by the MM_Error_Message SmartTag being included on the page. This SmartTag™ looks at the error code passed to the page and based on the value of that error code, outputs an appropriate message.
If you'd like to write your own error messages you can do so by following these instructions
1. Remove the MM_Error_Message SmartTag. This will keep MemberMouse from outputting the default error codes.
2. Use the MM_Custom_Decision SmartTag to generate custom messages based on error code. For example, the error code for a member being denied access to a protected page is ‘100020'. To create a custom message for this scenario you would do the following:
[MM_Custom_Decision code='100020']
We're sorry, you don't have access to view the requested page.
Use this link to purchase access!
[/MM_Custom_Decision]
As with all SmartTags™, you can put any text or HTML in between the opening and closing tags. This allows you to offer different options to members and non-members alike based on why they're being directed to the error page.
3. Repeat the step above for all MemberMouse error codes which are as follows:
Code | Description |
100020 | This code is reporting that the member attempted to access a page they didn't have rights to view. |
100030 | This code is reporting that the member's account is canceled. Members will be redirected here if they attempt to login when their account is currently canceled. |
100031 | This code is reporting that the member's account is locked. Members will be redirected here if they attempt to login when their account is currently locked. |
100034 | This code is reporting that the member's account is expired. Members will be redirected here if they attempt to login when their account is currently expired. |
1001013 | This code is returned by a social login provider (i.e. Facebook) and is reporting that the required email address was not supplied by the provider. |