PDA

View Full Version : Edit "You do not have sufficient permissions to access this page" Message



morestar
01-11-2011, 12:09 PM
I need to be able to edit the message "You do not have sufficient permissions to access this page.". I cannot find which file in wordpress it is in. Is it in the wordpress Database?

At the moment, new registrants for my article directory are only assigned as subscribers and can't post articles until I up their membership level.

The only problem is, when the 'subscribers' go to log into their account to post articles, they get that message which doesn't say much and makes them turn away - never to visit again.

I want to change that message to something more professional and add a few sentences asking them to contact me directory if indeed they want to use the site.

I'm having such difficulty organizing and managing my users. Any help or assistance in editing that message would be totally appreciated.

Thanks!

;)

kgun
01-11-2011, 12:37 PM
If you have command level access at your host, isn't there tools that can search files for a matching text string / query?
If not, can you to download the whole code to your harddisk and do the same as above?
Aside from that I would start by browsing config, authentication or similar directories for candidate files.
Have you searched the wordpress site

KW's site:wordpress.org

for relevant terms or the exact string?

gerard79
01-11-2011, 04:17 PM
You will find that in a number of scripts of WP
For instance in wp-admin/menu.php you will find:


if (! user_can_access_admin_page()) {
do_action('admin_page_access_denied');
wp_die( __('You do not have sufficient permissions to access this page.') );
}


Just do a search for "wp_die"

morestar
01-11-2011, 04:50 PM
Boyaa and thank you so much gerard and yes kgun you're right, I could have done that, but now at least there's a thread for it as there wasn't ONE to be found in search...two days...

Thanks guys!

gerard79
01-11-2011, 05:11 PM
Further info jn the folder
"Function_Reference/wp_die"
of
"codex.wordpress.org"

Sorry, I am not grown up enough to post full link

morestar
01-11-2011, 07:36 PM
...and yes kgun you're right, I could have done that...

P.S. the reason I didn't is because I've sort of given up on my local hard-drive search capabilities as my search isn't working as good as it used to. My Windows has problems...

...and don't worry gerard, you're almost there...

Christiaan
01-11-2011, 08:05 PM
P.S. the reason I didn't is because I've sort of given up on my local hard-drive search capabilities as my search isn't working as good as it used to. My Windows has problems...


Get AceHTML free for that at http://software.visicommedia.com/en/products/acehtmlfreeware/
Or get the Pro of that.
I think it is pretty good.