The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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. |
#2
|
||||
|
||||
That method works fine in vb4, i use it myself.
|
#3
|
|||
|
|||
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! |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|