user25148
08-27-2015, 01:46 AM
So Im using the ctech irc mod that adds a nav tab to get to the embeded irc client. The problem is that when you select that tab and go to that page, both the "Forum" and "IRC" tabs are highlighted as being active: screenshot: http://prntscr.com/89curg
Now this tab created by this mod is not visible in the Navigation Manager, so I cant set the "Tab Script(s)" property to this scripts unique identifier, at least through Nav Manager. Is there another way to specify this? The mod creates a template for the nav tab, heres the code:
<vb:if condition="$vboptions['selectednavtab'] == 'chat_irc'">
<li class="selected"> <a class="navtab" href="chat_irc.php{vb:raw session.sessionurl_q}">{vb:phrase ctech_chat_irc_navtab}</a>
</li>
<vb:else />
<li><a class="navtab" href="chat_irc.php{vb:raw session.sessionurl_q}">{vb:phrase ctech_chat_irc_navtab}</a>
</vb:if>
I was also looking through the product XML file and found this:
<plugin active="1" executionorder="5">
<title>CTech Chat: IRC Navtab</title>
<hookname>process_templates_complete</hookname>
<phpcode><![CDATA[if (THIS_SCRIPT == 'chat_irc')
{
$vbulletin->options['selectednavtab'] = 'chat_irc';
}
$template_hook['navtab_end'] .= vB_Template::create('ctech_chat_irc_navtab')->render();]]></phpcode>
</plugin>
not sure if thats related to the problem or not.
Any ideas on how to fix this?
Now this tab created by this mod is not visible in the Navigation Manager, so I cant set the "Tab Script(s)" property to this scripts unique identifier, at least through Nav Manager. Is there another way to specify this? The mod creates a template for the nav tab, heres the code:
<vb:if condition="$vboptions['selectednavtab'] == 'chat_irc'">
<li class="selected"> <a class="navtab" href="chat_irc.php{vb:raw session.sessionurl_q}">{vb:phrase ctech_chat_irc_navtab}</a>
</li>
<vb:else />
<li><a class="navtab" href="chat_irc.php{vb:raw session.sessionurl_q}">{vb:phrase ctech_chat_irc_navtab}</a>
</vb:if>
I was also looking through the product XML file and found this:
<plugin active="1" executionorder="5">
<title>CTech Chat: IRC Navtab</title>
<hookname>process_templates_complete</hookname>
<phpcode><![CDATA[if (THIS_SCRIPT == 'chat_irc')
{
$vbulletin->options['selectednavtab'] = 'chat_irc';
}
$template_hook['navtab_end'] .= vB_Template::create('ctech_chat_irc_navtab')->render();]]></phpcode>
</plugin>
not sure if thats related to the problem or not.
Any ideas on how to fix this?