PDA

View Full Version : Template Replace


SorentoUltimate
06-25-2011, 08:49 AM
Hi,

in vBulletin 3 i use that command on Parse Templates:

$vbulletin->templatecache['TemplateToReplace'] = $vbulletin->templatecache['NewTemplate'];

i try it to vBulletin 4 but not work.

Anyone know how i can do that to vbulletin 4?

Boofo
06-25-2011, 12:11 PM
Make sure you pre-register the variables and render the new template before you replace it. The line you have will work after that.

HMBeaty
06-25-2011, 12:17 PM
A quick guide on how to pre-register the variables and render the new template

https://vborg.vbsupport.ru/showthread.php?t=228078

SorentoUltimate
06-25-2011, 12:32 PM
i found the problem, i have mistake on template and now work!!!

thanks for your answers