Currently, vBGallery automatically modifies Templates in Template Cache in several places.
This is easy for the end user and works just fine for default vBulletin installations - but it has some drawbacks:
Therefore, I suggest to make all template changes through a function like
Content visible to verified customers only.
$title would be the template title, $search and $replace the text and $changeid a unique id for each change.
This way, we could easily bypass automatic template changes by adding an appropriate plugin.