MyBB Community Forums

Full Version: Changing IP of a poster
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have done a plugin for 1.8 where I can change the poster, but sometimes I also want to change the IP. Now in 1.6 I could enter it defining the poster ip. In 1.8 it has changed and the same code does not work anymore.

For displaying it in an readable form I use:

$ipaddress =  my_inet_ntop($db->unescape_binary($post['ipaddress']));

for updating I used: 


$update_array['ipaddress'] = implode('.', $postip); defining it before as:

$ipaddress = htmlspecialchars($mybb->input['postip']);

However in 1.8 that does nothing. No IP is saved.

Any help would be appreciated.