Need to change "Access Denied" text

webnerd - December 12, 2008 - 06:51

Dear Drupal experts,

My client wishes to change the "Access denied" text that displays when a user tries to access a protected page without first logging in.

e.g. http://www.steveparish.com.au/admin

The green text says: "Access denied. You may need to login below or register to access this page."

Can you please advise me of where/how I can change this?

Kind regards
James

string overrides

Jeff Burnz - December 12, 2008 - 07:20

Try the string overrides module - http://drupal.org/project/stringoverrides

Prefer string overrides

ebizondrupalservices - December 12, 2008 - 12:57

Prefer string overrides module - http://drupal.org/project/stringoverrides. For the complex login settings, logintoboggan (http://drupal.org/project/logintoboggan)

Sudeep Goyal,
Ebizon NetInfo Pvt. Ltd.
Delhi, India
http://ebizontek.com
Ph: +91120 4546843
Email: info@ebizontek.com
skype id : am.ebizon

you can easily handle this

arh1 - December 12, 2008 - 14:31

you can easily handle this with core, w/o adding another module.

first, create a page node with the wording the way you want it. then, point Drupal to that node for 403 errors at /admin/settings/error-reporting .

But, then you are taking the

ebizondrupalservices - December 14, 2008 - 11:08

But, then you are taking the user to a new page with a simple message. Actually, in most scenarios you would want to show the modified "access denied" message with a login form.

Sudeep Goyal,
Ebizon NetInfo Pvt. Ltd.
Delhi, India
http://ebizontek.com
Ph: +91120 4546843
Email: info@ebizontek.com
skype id : sudeep.goyal

yes..

mcsolas - June 8, 2009 - 22:49

>Actually, in most scenarios you would want to show the modified "access denied" message with a login form.

This is what I am looking to do.. any suggestions?

---------------------------
www.crsurfcam.com

logintoboggan

johnbarclay - June 20, 2009 - 23:35

ebizondrupalservices is correct. logintoboggan module will take care of showing the logon page on access denied pages.

 
 

Drupal is a registered trademark of Dries Buytaert.