Publishing IP numbers from guests

Hi,
I would like to publish or IP numbers or the sessionIPcode of guests who join the discussions on my board.
This is what I tried in a normal PHP board and it works;
Before the last return add;
BUT Integra doesn't accept this and it causes syntaxerrors.
Is there somebody who can help me making this work in IM 1.40
I really need to give guests the possibility to give reactions but it is anoying that they can play games with the other forummembers and we (moderators and admins) have to check the IP everytime to find out wich guest said what.. <img>
I would like to publish or IP numbers or the sessionIPcode of guests who join the discussions on my board.
This is what I tried in a normal PHP board and it works;
open includesfunctions_post.php
function prepare_post(&$mode, &$post_data, &$bbcode_on, &$html_on, &$smilies_on, &$error_msg, &$username, &$bbcode_uid, &$subject, &$message, &$poll_title, &$poll_options, &$poll_length)
return ;
}
Before the last return add;
if ($userdata['user_id'] == ANONYMOUS) {
if (empty($username)) {
$username = 'Gast';
}
$username .= '[' . $userdata['session_ip'] . ']';
}
BUT Integra doesn't accept this and it causes syntaxerrors.
Is there somebody who can help me making this work in IM 1.40

I really need to give guests the possibility to give reactions but it is anoying that they can play games with the other forummembers and we (moderators and admins) have to check the IP everytime to find out wich guest said what.. <img>