I've solved a part of problem
But , What I want to do now is to put the code at the end of the template headinclude
Instead of searching for " <!-- / CSS Stylesheet --> "
Because it does not existthe in template headinclude
PHP Code:
$ain_nocopy = '<SCRIPT LANGUAGE="JavaScript"> CODE </SCRIPT>';
$ain_nocopy_css = '<style type="text/css">.ain_unselectable{CODE}</style>';
$search_text = '<!-- / CSS Stylesheet -->';
$vbulletin->templatecache['headinclude'] = str_replace($search_text, $ain_nocopy_css.$search_text.$ain_nocopy , $vbulletin->templatecache['headinclude']);