The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Has anyone successfully moved the FAQ and Calendar links to the navtab from the Forum navbar? I've made a plugin and transplanted the code from the navbar template, but it seemed to choke on the variable references.
Here are the lines as they appear in the navbar template: Code:
<li><a rel="help" href="faq.php{vb:raw session.sessionurl_q}">{vb:rawphrase faq}</a></li> <li><a href="calendar.php{vb:raw session.sessionurl_q}">{vb:rawphrase calendar}</a></li> Code:
$template_hook['navtab_middle'] .= '<li><a class="navtab" rel="help" href="faq.php{vb:raw session.sessionurl_q}">{vb:rawphrase faq}</a></li>'; $template_hook['navtab_middle'] .= '<li><a class="navtab" href="calendar.php{vb:raw session.sessionurl_q}">{vb:rawphrase calendar}</a></li>'; Code:
$template_hook['navtab_middle'] .= '<li><a class="navtab" rel="help" href="faq.php' . {vb:raw session.sessionurl_q} . '">' . {vb:rawphrase faq} . '</a></li>'; $template_hook['navtab_middle'] .= '<li><a class="navtab" href="calendar.php' . {vb:raw session.sessionurl_q} . '">' . {vb:rawphrase calendar} . '</a></li>'; |
#2
|
||||
|
||||
![]()
Try:
PHP Code:
|
#3
|
|||
|
|||
![]()
That did the trick - thanks much!
|
#4
|
|||
|
|||
![]()
Does anyone know where in the code I could "sample" a way to get the new options to show up as selected when Calendar or FAQ are chosen, rather than having it change the active tab back to Forum when viewing the calendar or FAQ?
|
#5
|
||||
|
||||
![]()
The article I wrote regarding adding navtabs covers the issue of making them highlighted. I am pretty sure ragtek's article on navtabs covers the issue also. Please take a look at them in the articles forum.
|
#6
|
|||
|
|||
![]()
Found it. Thanks! I was doing about 75% of it right, just missed the labeling part.
![]() |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|