$str = "<!-- Some comment in a template-->"; $replace = "<br /><input type='checkbox' name='resolved' value='1' />Resolution?"; $vbulletin->templatecache['newreply'] = str_replace($str,$str.$replace, $vbulletin->templatecache['newreply']);