I am trying to use the template hooks in Navbar and I am clearly missing something. I've searched the forums and articles and found a lot about doing this type of thing without the hooks and using string replace, but nothing about how to use the template hooks.
I've created a plugin:
PHP Code:
$template_hook['navbar_buttons_left'] =
'<td class="vbmenu_control"><a href="/index.php$session[sessionurl_q]">Home</a></td>
<td class="vbmenu_control"><a href="/forums/index.php$session[sessionurl_q]">Forums</a></td>
<td class="vbmenu_control"><a href="/pp/index.php$session[sessionurl_q]">Photo<br>Galleries</a></td>';
I tried several different code hooks and the only one that does anything is parse_templates. The entries are added to the menu bar, but $session[sessionurl_q] is not substituted for, it just shows as part of the link, so the link is bad. If I take $session[sessionurl_q] off the link then it works for some pages but not all.
I am obviously missing th whole point of how to do this. So if someone could show me an example of the right way and the correct hook, I'd be forever in your debt