$find= '$var[key]';$find = str_replace("'", "&# 039;", $find);
$var['key'] = $var['key'] . $var2;
if($noattach == 2) { $find = ' <!-- attachments --> <div style="padding:$stylevar[cellpadding]px"> <if condition="$show[' . "'" . 'thumbnailattachment' . "'" . ']"> <fieldset class="fieldset"> <legend>$vbphrase[attached_thumbnails]</legend> <div style="padding:$stylevar[formspacer]px"> $post[thumbnailattachments] </div> </fieldset> </if> <if condition="$show[' . "'" . 'imageattachment' . "'" . ']"> <fieldset class="fieldset"> <legend>$vbphrase[attached_images]</legend> <div style="padding:$stylevar[formspacer]px"> $post[imageattachments] </div> </fieldset> </if> <if condition="$show[' . "'" . 'imageattachmentlink' . "'" . ']"> <fieldset class="fieldset"> <legend>$vbphrase[attached_images]</legend> <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0"> $post[imageattachmentlinks] </table> </fieldset> </if> <if condition="$show[' . "'" . 'otherattachment' . "'" . ']"> <fieldset class="fieldset"> <legend>$vbphrase[attached_files]</legend> <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0"> $post[otherattachments] </table> </fieldset> </if> <if condition="$show[' . "'" . 'moderatedattachment' . "'" . ']"> <fieldset class="fieldset"> <legend>$vbphrase[attachments_pending_approval]</legend> <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0"> $post[moderatedattachments] </table> </fieldset> </if> </div> <!-- / attachments -->'; $find = str_replace("'", "&# 039;", $find); // without the space there $replace = ''; $vbulletin->templatecache['postbit'] = str_replace($find, $replace, $vbulletin->templatecache['postbit']); }