Thanks. Here it is.
Code:
if ($vbulletin->options['nospam_onoff'] AND !$vbulletin->userinfo['userid'])
{
$nospamdo = true;
switch (THIS_SCRIPT) {
case 'register':
$vbulletin->templatecache['register'] = str_replace('".(($show[\'regimagecheck\']) ? ("', '$nospamfield
".(($show[\'regimagecheck\']) ? ("', $vbulletin->templatecache['register']);
break;
case 'sendmessage':
$vbulletin->templatecache['contactus'] = str_replace(' </fieldset>
<div class=\"fieldset\">', ' </fieldset>
$nospamfield
<div class=\"fieldset\">', $vbulletin->templatecache['contactus']);
break;
case 'search':
$vbulletin->templatecache['search_forums'] = str_replace(' </table>
<div align=\"$stylevar[left]\">', '<tr><td colspan=\"2\" align=\"$stylevar[left]\">$nospamfield</td></tr>
</table>
<div align=\"$stylevar[left]\">', $vbulletin->templatecache['search_forums']);
break;
case 'newreply':
$vbulletin->templatecache['newreply'] = str_replace('<!-- / message area -->', '<!-- / message area -->
$nospamfield', $vbulletin->templatecache['newreply']);
break;
case 'newthread':
$vbulletin->templatecache['newthread'] = str_replace('<!-- / message area -->', '<!-- / message area -->
$nospamfield', $vbulletin->templatecache['newthread']);
break;
default:
$nospamdo = false;
}
$questions = explode("\n",$vbulletin->options['nospam_questions']);
$nospamnumber = array_rand($questions);
$qanda = explode(":",$questions["$nospamnumber"]);
$nospamquestion = $qanda[0];
if ($nospamdo) {
eval('$nospamfield = "' . fetch_template('nospam') . '";');
}
$vbulletin->templatecache['navbar'] = str_replace('<input type=\"text\" class=\"bginput\" name=\"query\" size=\"20\" /> $gobutton', '$vbphrase[guests_cannot_use_quicksearch]', $vbulletin->templatecache['navbar']);
if (THIS_SCRIPT == 'forumdisplay') {
$vbulletin->templatecache['FORUMDISPLAY'] = str_replace('<input type=\"text\" class=\"bginput\" name=\"query\" size=\"20\" />$gobutton', '$vbphrase[guests_cannot_use_quicksearch]', $vbulletin->templatecache['FORUMDISPLAY']);
}
else if (THIS_SCRIPT == 'showthread') {
$vbulletin->templatecache['SHOWTHREAD'] = str_replace('<input type=\"text\" class=\"bginput\" name=\"query\" size=\"20\" />$gobutton', '$vbphrase[guests_cannot_use_quicksearch]', $vbulletin->templatecache['SHOWTHREAD']);
}
}