Customize Messages on the Error Core Page
The Error Core Page is a page created by MemberMouse when you install the plugin. It is used to display informative messaging to members when they attempt to interact with pages they don't have access to. For example, if they attempt to access a page they do not have access to based on their access rights, or if they attempt to log in after their account has been canceled or has expired, etc.
There is only one error page on your site which is used by all members regardless of their access rights. 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 An error has occurred 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.
However, you can use this error page as an opportunity to communicate specifically with the person who has arrived there and speak to why they arrived there. For example, it's a great time to offer a specific purchase link to allow access to protected content or give easy instructions to restart a canceled account.
If you'd like to write your own error messages you can do so by following these instructions:
- Remove the MM_Error_Message SmartTag™. This will keep MemberMouse from outputting the default error codes.
- 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:
We're sorry, you don't have access to view the requested page.
Use this link to purchase access!
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.
- Repeat the step above for any MemberMouse error codes which are as follows:
This code is reporting that the member attempted to access a page they didn't have rights to view.
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.
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.
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.
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.