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