![]() |
Replacing default template with custom using plugin?
Has anyone figured out how to replace a default vbulletin template with a custom one using a plugin? This used to be possible using:
Code:
$vbulletin->templatecache['pm_messagelistbit'] = $vbulletin->templatecache['pm_messagelistbit_preview']; I'm trying to add a pm preview hack to vb4 so I need to replace the default pm_messagelistbit with a custom template automatically. |
That method works fine in vb4, i use it myself.
|
Thanks for the reply Paul, which hook are you using when getting the above code to work?
* Found the answer (parse_templates) my error was in not adding the replacement template to the cache first. D'Oh! |
All times are GMT. The time now is 11:48 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|