Where do I change the "Access Denied" text that shows up if an anonymous user tries to access a page? I just searched the entire Drupal site for the words "Access Denied", and all I found was one post that's 20 minutes old, and from a guy who's having problems with IE users not being able to login. I can't believe this info is not in the Drupal site somewhere. Am I the first one to need this?

Anyway, what I need to do is make the Access Denied message more friendly. I'm sending out an email that links my users to Advanced Polls, but those polls require a valid logged-in user to be displayed. How do I tell the users who aren't logged in that they need to create an account and then proceed to vote?

Simply displaying a message that says "Access Denied. You are not authorized to access this page." is not gonna do it. Where do I look for this text in the database?
--
Joel Farris

Comments

lakka’s picture

Have a look at http://drupal.org/project/logintoboggan . It allows for the display of the login page when access is denied.

senpai’s picture

Thanks Lakka, I'll check that one out. I still wanna edit that text, but a module might work for now...
--
Joel Farris
"...and that's the way it oughtta be!"

****
Joel "Senpai" Farris | certified to rock score

evanscape’s picture

interested in this as well. anyone?

Street-1’s picture

There is a cutom error page module, I can not find it in the time I have for a quick search at the moment. I will look it up later today and hollar back at you.

All good things must come to an end, enjoy them before they do!

Street-1’s picture

I believe that the Custom Error module is what you are looking for. You can find it here:

http://drupal.org/project/customerror

All good things must come to an end, enjoy them before they do!

tdimg’s picture

First off, the search here on drupal seems to not work properly currently (or there just aren't all nodes indexed yet), may have to do with the recent upgrade to 5.0

Then, besides the two modules already mentioned, you can create your own page, either a drupal page or a simple html page, whatever you like and with whatever content you like and reference to it under administer > settings > Error handling

senpai’s picture

This sounds like just what I'm after. Thanks C2! I had no idea there were config options under administer > settings > error handling.

And as to search, that makes sense now if Drupal v5.0 hasn't completely indexed the old nodes. Wait a minute, this website is running on v5 now? Maybe it's time for me to upgrade!?
--
Joel Farris
"...and that's the way it oughtta be!"

****
Joel "Senpai" Farris | certified to rock score

prokopton’s picture

Sub.

prokopton’s picture

"administer > settings > error reporting" in 5.10.

ihateie’s picture

it's easy way to do it on preprocess_page something like:

$_title = drupal_get_title();
if('Access Denied' == $_title) {
drupal_set_title('Please login or sign up bla bla.');
}