| 1 |
$Id: INSTALL.txt,v 1.4 2005/11/21 15:18:56 kbahey Exp $
|
| 2 |
|
| 3 |
Requirements:
|
| 4 |
-------------
|
| 5 |
This module requires drupal 6.x or greater.
|
| 6 |
|
| 7 |
Installation:
|
| 8 |
-------------
|
| 9 |
1. Copy the customerror.module to the Drupal modules/ directory.
|
| 10 |
|
| 11 |
2. Patching Drupal core for proper redirection
|
| 12 |
|
| 13 |
This step is required if you want an unlogged user to be redirected
|
| 14 |
to the page they are trying to access after they login.
|
| 15 |
|
| 16 |
Copy the patches/common.inc file that corresponds to your Drupal
|
| 17 |
version to includes/common.inc.
|
| 18 |
|
| 19 |
For example, if you are running 4.6.3, then copy common.inc.4.6.3
|
| 20 |
to includes/common.inc
|
| 21 |
|
| 22 |
3. Go to administer->modules
|
| 23 |
- Enable the customerror module, click on Save
|
| 24 |
|
| 25 |
4. Configure the module:
|
| 26 |
- Go to administer->settings->customerror
|
| 27 |
- Enter any title and description you want for the 404 (not found)
|
| 28 |
and 403 (access denied) pages.
|
| 29 |
- You can use any HTML tags to format the text.
|
| 30 |
|
| 31 |
5. Enable the customerror pages.
|
| 32 |
Go to administer->settings
|
| 33 |
- Set "Default 403 (access denied) page:" to "customerror/403" (without
|
| 34 |
the quotes).
|
| 35 |
- Set "Default 404 (not found) page:" to "customerror/404" (without
|
| 36 |
the quotes).
|
| 37 |
- Click Save
|
| 38 |
|
| 39 |
6. Test your error pages.
|
| 40 |
- Copy your present admin page url.
|
| 41 |
- Try to go to a non-existent Drupal page on your site.
|
| 42 |
You should see your custom error page for 404 (not found) page.
|
| 43 |
|
| 44 |
- Log out from your site.
|
| 45 |
- Paste the admin page url and try to go there.
|
| 46 |
You should see your custom error page for 403 (access denied) page.
|