View Full Version : Adding an extra nav menu
NatalieMarie87
03-13-2009, 05:44 PM
My site is comeboca.com and my forum is comeboca.com/forums.....does anyone know how I can add the same nav menu i have on my website to my forums page, I would like to add it in the same location as in the website, directly under the header. and this is in order to provide links to the rest of my site, and also to match the vbulletin style as closely as possible to the rest of the website.
Lynne
03-13-2009, 06:28 PM
This article may help - [How-To] vBulletin API Basics: Creating Custom Pages & Misc. (https://vborg.vbsupport.ru/showthread.php?t=98009)
NatalieMarie87
03-14-2009, 04:41 PM
im not sure if i understand it right, but i dont think i want to start over and make a new template, i just want to add the nav bar, what if i have the code of the nav bar, can't i just place the code somewhere?
Lynne
03-14-2009, 07:33 PM
You may go to the page source and copy it and paste it into your page. But, if you do it that way, you won't be using any of the conditions that are present in the vbulletin navbar.
NatalieMarie87
03-15-2009, 10:18 AM
ok what i did was add a second nav bar copy of the one i had, right under the header, now all I need to do is get the nav bar to fill the entire page space, like on the other pages of my website...any ideas on how I can do that?
Lynne
03-15-2009, 03:02 PM
Did you also copy the css for the navbar? If you don't have many links in the navbar, then it doesn't really fill up nicely and you may have to actually give the columns sizes and center them or something like that.
NatalieMarie87
03-15-2009, 06:59 PM
ok i want the nav bar to be the same width as the header which is 998 px, so i changed the width to that measurement, however when i do that, the whole nav bar moves completely out of space to the right, this is the code i have as of right now:
<!-- second nav button row -->
<div align="center">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center" style="border-top-width:0px">
<tr align="center">
<td class="vbmenu_control"><a href="http://www.comeboca.com">Portada</a></td>
<td class="vbmenu_control"><a href="http://www.comeboca.com/forms">Comunidad ComeBoca</a></td>
<td class="vbmenu_control"><a href="http://www.comeboca.com/contacto">Contacto</a></td>
<td class="vbmenu_control"><a href="http://www.comeboca.com/mapa-del-sitio">Mapa del Sitio</a></td>
</tr>
</table>
<!-- /second nav button row -->
</table>
This code is in styles manager>>common templates>> header... I dont know how to add column sizes..what i did was copy this code from a thread i saw about how to add a second nav, but instead of putting it under the code of the original nav menu, i pasted the code in the header and it worked almost perfectly, except i dont know how to increase the width correctly in order to match that of the header image. So maybe you can tell me what I can do with this code in order to fix the width..
Lynne
03-15-2009, 08:27 PM
You have a <div align="center"> before the table, but no </div> after the table. Instead, you seem to have an extra </table> after the table. Did you add that or ??
NatalieMarie87
03-15-2009, 10:42 PM
ok i took the </table> out and added <br /> twice instead, worked!
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.