By steven1350 on
For my drupal site, I do not allow anonymous people to view anything, the must be logged in first. When a user enters the URL, the are taken to a login page (which has the proper username/password field) and in the body where the content would normally be, the is the text
Access denied
You are not authorized to access this page.
I want this text to say something more friendly, but I am not quite sure how to do this. I have tried creating a custom 403 page (/admin/settings/error-reporting), but that does not seem to my problem (only appears to some areas (eg, non-admin tries to view admin page)).
What do you suggust?
Thanks,
Steven1350
EDIT:
I am using apache 2.2.11 on a LAMP setup
Comments
Look at the String Overrides
Look at the String Overrides module, that allows you to customize the default output text of various drupal functions.
That module doesn't seem to
That module doesn't seem to look like it can do what I want
Then I don't think I
Then I don't think I understand what you are trying to accomplish. I, as well, didn't like the access denied text, and through the use of string overrides and login toboggan, I redirect users to a login page, and have the text "Please login or register to view the content" instead of "Access Denied"
You have to get the text exactly correct (spaces, punctuation, capitalization etc) but it will replace default text.
Also see
http://drupal.org/node/346115