Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 08-15-2008, 04:46 PM
Hosford Hosford is offline
 
Join Date: Jul 2008
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Addling link to navbar

How do i add a link to the navbar with out effecting my navbar skin? I want to add a forum link to the navbar, but i dont know how to keep the same design as i currently have. url (www.racersweb.com)
Reply With Quote
  #2  
Old 08-15-2008, 07:07 PM
Twilkey's Avatar
Twilkey Twilkey is offline
 
Join Date: Oct 2006
Posts: 314
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What is the code in your navbar?
Reply With Quote
  #3  
Old 08-15-2008, 07:22 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You might want to check out the Articles forum here. How To Add Additional Links To Your Navbar
Reply With Quote
  #4  
Old 08-15-2008, 08:41 PM
Hosford Hosford is offline
 
Join Date: Jul 2008
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

here is the coding

<div id="navigation">
<ul>
<li><a href="http://racersweb.com/index.php">Home</a></li>
<if condition="$show['member']">

<li><a href="http://racersweb.com/forums/usercp.php$session[sessionurl_q]">$vbphrase[user_cp]</a></li>
</if>
<if condition="$show['registerbutton']">
<li><a href="http://racersweb.com/forums/register.php$session[sessionurl_q]" rel="nofollow">$vbphrase[register]</a></li>
</if>
<li><a href="http://racersweb.com/forums/faq.php$session[sessionurl_q]" accesskey="5">$vbphrase[faq]</a></li>
<li><a href="http://racersweb.com/forums/memberlist.php$session[sessionurl_q]">$vbphrase[members_list]</a></li>
<li><a href="http://racersweb.com/forums/calendar.php$session[sessionurl_q]">$vbphrase[calendar]</a></li>
<if condition="$show['popups']">
<if condition="$show['searchbuttons']">
<if condition="$show['member']">
<li><a href="http://racersweb.com/forums/search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></li>
<else />
Reply With Quote
  #5  
Old 08-15-2008, 08:42 PM
SEOvB's Avatar
SEOvB SEOvB is offline
 
Join Date: May 2007
Location: Indianapolis
Posts: 2,451
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Code:
<div id="navigation">
<ul>
<li><a href="http://racersweb.com/index.php">Home</a></li>
<if condition="$show['member']">

<li><a href="http://racersweb.com/forums/usercp.php$session[sessionurl_q]">$vbphrase[user_cp]</a></li>
</if>
<if condition="$show['registerbutton']">
<li><a href="http://racersweb.com/forums/register.php$session[sessionurl_q]" rel="nofollow">$vbphrase[register]</a></li>
</if>
<li><a href="http://racersweb.com/forums/faq.php$session[sessionurl_q]" accesskey="5">$vbphrase[faq]</a></li>
<li><a href="http://racersweb.com/forums/memberlist.php$session[sessionurl_q]">$vbphrase[members_list]</a></li>
<li><a href="http://racersweb.com/forums/calendar.php$session[sessionurl_q]">$vbphrase[calendar]</a></li>
<LI><A HREF="HTTP://SOMECOOLSITE.COM/">SOME COOL WORDS</A></LI><if condition="$show['popups']"> 
<if condition="$show['searchbuttons']">
<if condition="$show['member']">
<li><a href="http://racersweb.com/forums/search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></li>
<else />
take the CAPS LOCK bold red part from above and just replace the SOMECOOLSITE and SOME COOL WORDS parts to what you need.
Reply With Quote
  #6  
Old 08-15-2008, 08:49 PM
AmandaB AmandaB is offline
 
Join Date: Apr 2006
Location: NJ
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Good advise. You coding is rather simple so it should be hard to mess up.

Have fun.
Reply With Quote
  #7  
Old 08-15-2008, 09:01 PM
Opserty Opserty is offline
 
Join Date: Apr 2007
Posts: 4,103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Use your common sense, surely you notice a pattern between these?
Code:
<li><a href="http://racersweb.com/forums/faq.php$session[sessionurl_q]" accesskey="5">$vbphrase[faq]</a></li>
<li><a href="http://racersweb.com/forums/memberlist.php$session[sessionurl_q]">$vbphrase[members_list]</a></li>
<li><a href="http://racersweb.com/forums/calendar.php$session[sessionurl_q]">$vbphrase[calendar]</a></li>
You should take a quick dive in w3schools.com's HTML section so at least you have some idea what you are looking at when it comes to editing templates.

Its always best to try and figure things out yourself before you ask. At least you will learn better that way.
Reply With Quote
  #8  
Old 08-16-2008, 01:12 AM
Hosford Hosford is offline
 
Join Date: Jul 2008
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Opserty, Yes i did notice the pattern. What happens is when i edit the html and add the text that should make the button it doesnt. It does 1 of 2 things one it gives me a button that doesnt look like my current buttons, or i get an <if> error. I wouldnt ask a question that i could answer my self.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:08 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03988 seconds
  • Memory Usage 2,231KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete