The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
append template
is there an easy way to append a custom template to a custom template using a plugin?
something like: Code:
$vbulletin->templatecache['postbit'] .= $vbulletin->templatecache['mytemplate']; |
#2
|
|||
|
|||
thanks :|
|
#3
|
|||
|
|||
so there's no way to append things to templates without doing preg_replace?
|
#4
|
||||
|
||||
ofcourse there is..
i did it in this plugin Costum TOS But you need to render something else it wont be updated in the chache, so i made a blank template, which i render when modifying templates via plugin. i use str replace to fit some code in a small area of the template rather than replaceing it, so it still works after vb updates.. and if add stuff infront of it as your trying there via .= it should be possible, but it needs a templater render(); to update. check out that mod, and notice the plugin code.. im only working in the template cache, to display for the user. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|