MyBB Community Forums

Full Version: [F] Can't view IP address
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
In posts when I click "IP Address: Logged" link..I get a error_no_permissions page. Why?

EDIT: Because of moderation.php

line: 101
if($mybb->request_method != "post")
{
	error_no_permission();
}


As you can see...error on anything that's not a post method which that link is not. Of course you will need to come up with a quick fix for this.
the same with me on my board.
find

if($mybb->request_method != "post")
{
	error_no_permission();
}

replace with

if($mybb->request_method != "post" && $mybb->input['action'] != "getip")
{
	error_no_permission();
}
The download and changed file package has been updated.
Had same problem and worked for me on an 1.2.14 version (with the updated fixes).

Thanks.