M7sen please await a reply in the mods thread, having multiple threads up on the same subject is not acceptable and later on down the road those searching for issues have to sift through 4 of the same threads is just more mess per say. I see you posted in the mods thread recently and the author was online within the past 30 days "04 Oct 2014, 09:11" was his last post. Bananalive is very supportive of his mods so I'm sure he'll reply soon

.
I'm deleting the other threads, please remain in this one and edit your first post accordingly.
Edit: I see you posted code above;
PHP Code:
$ip = $vbulletin->input->clean($_SERVER['REMOTE_ADDR'], TYPE_STR);
$formoutput .= $form[preq] . "IP:" . $form[pstq];
$formoutput .= $form['prea'] . $ip . $form[psta];
Where did you try this? Did you try it in the form hook?