The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
New NavTab Created. How Do I Add Text And Create A Target?
Sorry to keep bombarding this message board with stupid questions. Adding a couple of new navtabs is one of the last remaining jobs required to complete my site, and I'm really struggling with it.
I've followed the instructions on this thread: https://vborg.vbsupport.ru/showthread.php?t=228313 My new Navtab has appeared, but it has no text on it. My questions are: 1: How do I add About Us to the tab? 2: How do I link it to the target page I want it to go to when people click on it? Here is the code in my New Template: <vb:if condition="$vboptions['selectednavtab'] == 'roaringseasonabout'"> <li class="selected"> <a class="navtab" href="about.php{vb:raw session.sessionurl_q}">{vb:rawphrase roaringseason_about}</a> <ul class="floatcontainer"> <li><a href="#">#</a></li> </ul> </li> <vb:else /> <li><a class="navtab" href="about.php{vb:raw session.sessionurl_q}">{vb:rawphrase roaringseason_about}</a></li> </vb:if> Here is my Plugin PHP code: if (THIS_SCRIPT == 'About Us') // also defined('ragteknews') possible { //set selected tab $vbulletin->options['selectednavtab'] = 'roaringseasonabout'; } // add the "subtemplate" to the navbartemplate $template_hook['navtab_middle'] .= vB_Template::create('roaringseason_about_navbar')->render(); Many thanks |
#2
|
||||
|
||||
PHP Code:
PHP Code:
HTML Code:
{vb:rawphrase roaringseason_about} |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|