vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=168)
-   -   Adding an extra nav menu (https://vborg.vbsupport.ru/showthread.php?t=208227)

NatalieMarie87 03-13-2009 05:44 PM

Adding an extra nav menu
 
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.

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:
PHP Code:

<!-- 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!


All times are GMT. The time now is 11:10 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01621 seconds
  • Memory Usage 1,735KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete