Quote:
Originally Posted by simonhind
BUG: when using Field using vBulletin editor
there is no title above the box so users dont know what the question is
would like to see:
Field that already holds there username
fields that holds the users IP Address - useful to stop spammers
|
Fixed vBulletin editor issue with attached file.
Username is already held in hidden field.
IP address could be added as hidden field (there are 3 hiddenfields added into template and a template hook) or add it to the end of the form output
Add to bottom of form hook: before submit
PHP Code:
$ip = $vbulletin->input->clean($_SERVER['REMOTE_ADDR'], TYPE_STR);
$formoutput .= $form[preq] . "IP:" . $form[pstq];
$formoutput .= $form['prea'] . $ip . $form[psta];