Hi Logician,
I am trying to use webtemplates to add pages to a custom navbar tab. Looking at vb,it seems the highlighting of the current navbar tab is based on a define. However, I think that the hook where this is usually (process_tremplates_complete) may occur before a webtemplate gets evaluated.
My navbar link code is:
Plugin PHP Code
Code:
if (defined('myProduct'))
{
$vbulletin->options['selectednavtab'] = 'myProduct';
}
$template_hook['navtab_middle'] .= vB_Template::create('myProduct_navbar_link')->render();
I am creating a PHP webtemplate which incliudes the line
Code:
define ('myProduct','myProduct');
but it keeps defaulting back to teh "Forum" tab. ideas or direction will be much appreciated
I'm not a coder by trade, or many other measures for that matter, so please speak s l o w l y
Thanks