The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
||||
|
||||
Templatecache vB 3.8 to vB 4.0
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: Code:
$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'])); |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|