The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Templates within a template within a template
Ok Ive been trying to add a custom "container" template, which will contain serveral of my custom child templates, to a standard template via template hook. Not loving the new vB4 code changes but anyways...
The problem is that the child templates are coming out directly on the standard template but not IN the container template. Im sure I am just missing something simple. Templates are cached and I do have the "{vb:raw mychildtemplate1}" and "{vb:raw mychildtemplate2}" in the container template. Maybe its something with preregistering variables or such? Plugin psuedocode: PHP Code:
|
#2
|
||||
|
||||
You're doing it backwards.
Your child templates need to be rendered first, then registered to the container template, then that gets registered to the next container template, etc. Also, you do not need to preRegister, you can just simply use register. For example: PHP Code:
|
#3
|
||||
|
||||
Got it working now. Thanks!
Yes, Im a bit dyslexic lol |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|