RobDog888
05-25-2010, 09:17 PM
Im in the process of upgrading my custom plugins from vB 3.8 to 4.0 and the fetch_template doesnt exist anymore. Not a problem but replacing/modifying templates that are cached is now a problem. There are no hooks where I need them so this still has to be the way I have to do it. It works in 3.8
This is a simplified example of a plugin in parse_templates:
$find = '{vb:rawphrase all_times_are_gmt_x_time_now_is_y}';
$replace = ' Blah';
$vbulletin->templatecache['footer'] = str_replace($find, $find.$replace, $vbulletin->templatecache['footer']));
But for some reason the text isnt appending.
This is a simplified example of a plugin in parse_templates:
$find = '{vb:rawphrase all_times_are_gmt_x_time_now_is_y}';
$replace = ' Blah';
$vbulletin->templatecache['footer'] = str_replace($find, $find.$replace, $vbulletin->templatecache['footer']));
But for some reason the text isnt appending.