Dr.CustUmz
03-10-2015, 10:52 PM
im trying to replace everything inside of an if condition in the quick reply template
my parse_template code is:
$vbulletin->templatecache['showthread_quickreply'] = preg_replace("/<if condition=\"$show\['qr_require_click'\]\">(.*)<\/if>/",fetch_template('drc_ac'),$vbulletin->templatecache['showthread_quickreply']);
yet im not getting any results, i have tried many ways and im not getting anywhere, although i am able to replace the whole template using:
$vbulletin->templatecache['showthread_quickreply'] = fetch_template('drc_ac');
but thats not what i want to do =/
my parse_template code is:
$vbulletin->templatecache['showthread_quickreply'] = preg_replace("/<if condition=\"$show\['qr_require_click'\]\">(.*)<\/if>/",fetch_template('drc_ac'),$vbulletin->templatecache['showthread_quickreply']);
yet im not getting any results, i have tried many ways and im not getting anywhere, although i am able to replace the whole template using:
$vbulletin->templatecache['showthread_quickreply'] = fetch_template('drc_ac');
but thats not what i want to do =/