The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
||||
|
||||
replacing everything between a div in a template
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'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']); |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|