![]() |
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']; |
thanks :|
|
so there's no way to append things to templates without doing preg_replace?
|
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. |
All times are GMT. The time now is 02:26 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:
|