Hi Lynne! Thanks for the swift response.
I've just been reading through that thread, and I'm really glad to find you're still posting here.
I found this example code there:
Code:
$templater = vB_Template::create('memberbar_member_basic');
$memberbar_member_basic = $templater->render();
vB_Template::preRegister('navbar', array('notifications_menubits' => $notifications_menubits));
vB_Template::preRegister('navbar', array('memberbar_member_basic' => $memberbar_member_basic));
vB_Template::preRegister('navbar', array('notifications_menubits' => $notifications_menubits));
...looks like exactly what I want to do, displaying notifications in a custom template, though the op mentions it has a mistake and doesn't say what the mistake is (besides perhaps the duplicated line)...
So I took my existing plugin...
Code:
$templater = vB_Template::create('ubermenu');
$ubermenu = $templater->render();
vB_Template::preRegister('header', array('ubermenu' => $ubermenu));
and tried adding to it -
Code:
$templater = vB_Template::create('ubermenu');
$ubermenu = $templater->render();
vB_Template::preRegister('header', array('notifications_menubits' => $notifications_menubits));
vB_Template::preRegister('header', array('notifications_total' => $notifications_total));
vB_Template::preRegister('header', array('ubermenu' => $ubermenu));
No luck. Then thought this made no sense, since notifications already work in the header, it's the 'ubermenu' template that needs to know about them, so tried
Code:
vB_Template::preRegister('ubermenu', array('notifications_total' => $notifications_total));
etc instead, both in that plugin and in a separate one. Still no luck.
Help?