Thank you cellarius for this!
I've even printed this out and read this even while sitting on the throne quite a few times.
I got some of the options working for a custom about us page.
The option to -
Output template directly - custom pages works just great for VB4.
The option to -
Save into a variable for later use in custom template works only after noticing an error in this code.
In VB4 This resulted in a blank white page.
PHP Code:
$templater = vB_Template::create('my_other_template');
$templater->register('my_template_rendered', $my_template_rendered);
print_output($templater->render());
I used this to fix it...
PHP Code:
$templater = vB_Template::create('my_other_template');
$templater->register('my_template_rendered', $mytemplate_rendered);
print_output($templater->render());
Then sure enough it worked!
Then option to -
Save into an array and preregister to use in an existing/stock template.
Unfortunately I was unable to get this working.
I could not locate the template hook "forumhome_wgo_pos2" in VB4.
As for
Caching Templates,
I didn't see any templates in red on because it this doesn't work on server that is ran locally.
I've managed to get this working on an actual server.
EDIT: I does work locally in my testing environment, I added...
PHP Code:
$config['Misc']['debug'] = true;
to the wrong config.php file.
Thanks for this write up, It helped me quite a bit in understanding more and more about VB.