Say I want to replace this snippit in showthread_quickreply:
Code:
<div class="controlbar" style="padding-$stylevar[right]:8px">
<fieldset style="border:0px; padding:0px; margin:0px">
<if condition="$show['qr_require_click']">
<textarea name="message" id="{$editorid}_textarea" rows="10" cols="60" style="width:100%; height:{$editor_height}px" tabindex="1" dir="$stylevar[textdirection]" disabled="disabled">$vbphrase[click_quick_reply_icon]</textarea>
<else />
<textarea name="message" id="{$editorid}_textarea" rows="10" cols="60" style="width:100%; height:{$editor_height}px" tabindex="1" dir="$stylevar[textdirection]"></textarea>
</if>
</fieldset>
<!--width:$stylevar[messagewidth]-->
</div>
I want to replace it with my own template.
I've tried a few combinations similar to:
Code:
$test = '<div class=\"controlbar\" style=\"padding-$stylevar[right]:8px\">.*</div>';
$vbulletin->templatecache['showthread_quickreply'] = str_replace($test,fetch_template('drc_iiu_test'),$vbulletin->templatecache['showthread_quickreply']);
but I can't get any result to display, is there a way to replace everything in between that div?