Thank you.
I'm sure you're right.
**EDIT**
Er, let me just delete everything I wrote before I found the stray ' in the code

. I still haven't got it working, but I'll post a better update after I've tested a few more things.
--------------- Added [DATE]1461490554[/DATE] at [TIME]1461490554[/TIME] ---------------
Sorry to say that this -
Code:
$templater = vB_Template::create('ubermenu');
$templater->register('notifications_menubits', $notifications_menubits);
$templater->register('notifications_total', $notifications_total);
$ubermenu = $templater->render();
vB_Template::preRegister('header', array('ubermenu' => $ubermenu));
- definitely doesn’t work.
I replaced my whole ubermenu template with the original notifications code, and finally with
Code:
<div><vb:if condition="$notifications_total">There are notifications<vb:else />Yes, we have no notifications</vb:if>
<ul>{vb:raw notifications_menubits}</ul></div>
It always displays the 'no notifications' option (and I'm logged in, and have loads of notifications, which show up fine in the default skin), and doesn't display the notifications_menubits at all. IOW, the presence or absence of those two 'register' lines in the plugin makes no difference to the result.