I need to convert a plugin so the code works in VB4
Here is the code, can anyone please help me convert it. I am having some difficulties on how to change this to be biable in VB$
Code:
if ($_REQUEST['do'] == 'editthread' AND $threadinfo['open'] != 10) {
$vbulletin->templatecache['threadadmin_editthread'] = str_replace('$posticons',' <fieldset class=\"fieldset\">
<legend>$vbphrase[redirect_threads_to_url]</legend>
<div style=\"padding:$stylevar[formspacer]px\">
<div class=\"fieldset\">
$vbphrase[redirect_threads_to_url_link]<br />
<input type=\"text\" class=\"bginput\" name=\"isurlredirect\" value=\"$threadinfo[isurlredirect]\" size=\"50\" maxlength=\"250\" title=\"$vbphrase[optional]\" />
</div>
</div>
</fieldset>
$posticons',$vbulletin->templatecache['threadadmin_editthread']);
}
The main reason it is not working in VB4 is because it is trying to replace the
$posticon which no longer exists in the template