The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Replace FAQ in NavBar with new Link similiar to community
I want to replace the FAQ link in the navbar with a drop down menu like on the community link. I want the new link to be call affiliates. Then have it dropdown to show a list of other sites.
|
#2
|
||||
|
||||
You'll have to edite the template. To do that...
Admin CP > Styles and Templates > Style Manager > Your Style > Edit Templates > Navigation / Breadcrumb Templates > navbar Look for this code: Code:
<td class="vbmenu_control"><a rel="help" href="faq.php$session[sessionurl_q]" accesskey="5">$vbphrase[faq]</a></td> Code:
<td class="vbmenu_control"><a id="affiliates" href="$show[nojs_link]#affiliates" rel="nofollow" accesskey="6">Affiliates</a> <script type="text/javascript"> vbmenu_register("affiliates"); </script></td> Then find this code: Code:
<if condition="$show['communitylink']"> Code:
<!-- affiliates link menu --> <div class="vbmenu_popup" id="affiliates_menu" style="display:none;margin-top:3px" align="$stylevar[left]"> <table cellpadding="4" cellspacing="1" border="0"> <tr><td class="thead">Our Affiliates</td></tr> <tr><td class="vbmenu_option"><a href="http://www.google.com/">Google</a></td></tr> </table> </div> <!-- / affiliates link menu --> |
#3
|
|||
|
|||
Thanks. I knew it was a template edit but I wasn't sure what exactly to change it to. Now one more question. How do I set it so when they click it, it opens in a new tab or window.
|
#4
|
||||
|
||||
Oh, my bad. I forgot about that. Edit the code in red like so:
Code:
<tr><td class="vbmenu_option"><a href="http://www.google.com/" rel="external" target="_blank">Google</a></td></tr> |
#5
|
||||
|
||||
A readily readable article explains how to add drop-down menus: https://vborg.vbsupport.ru/showthread.php?t=122523.
|
#6
|
|||
|
|||
Thanks for all your help Tiger. Sorry Dismounted I looked and couldn't find that.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|