Quote:
Originally Posted by digitalpoint
It currently adds a link to the "Community" drop-down menu in the lower navigation (when you are anywhere within the forums).
If you really want it to have it's own main navbar button could you do something like so ( this is off the top of my head, I didn't actually test it to make sure it works, but it should).
Plug-ins To Add
Location: process_templates_complete
PHP Code:
if (THIS_SCRIPT == 'spy') $vbulletin->options['selectednavtab'] = 'spy';
$template_hook['navtab_middle'] .= vB_Template::create('spy_navbar_link')->render();
Location: cache_templates
PHP Code:
$cache = $cache[] = 'spy_navbar_link';
Template To Add
Location: spy_navbar_link
Code:
<li<vb:if condition="$vboptions['selectednavtab'] == 'spy'"> class="selected"</vb:if>>
<a class="navtab" href="spy.php{vb:raw session.sessionurl_q}">{vb:rawphrase directory}</a>
</li>
|
Oh thanks! I actually didn't see it added under Community... I had some users ask for a NavBar link, I will let them know about the link under Community and see if that satisfies them.
If not, I will try your code above. Thanks so much for the work and quick reply