PDA

View Full Version : Having a little trouble embedding a custom template inside postbit_legacy


Bobred
02-12-2011, 01:01 AM
I've created a template called postbit_customrep, containing a word of text only.

I then created a plugin in the hook global_start, containing:

$templater = vB_Template::create('postbit_customrep');

$template_hook[postbit_customrep] .= $templater->render();

And in postbit_legacy I placed this in the location I wanted the template displayed:

{vb:raw template_hook.postbit_customrep}

Except this ended up with nothing being displayed in the location. How would I display the postbit_customrep inside postbit_legacy?

Lynne
02-12-2011, 03:09 AM
global_start is not a good location when all you want to do is spit out something in the postbit template. I would try the postbit_display_start or postbit_display_complete template. (Besides that global_start has been deprecated for a year and could disappear at any version.)