The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Navbar Help
Hello everyone. How do I add a home and fourms link in my navagation bar. I searched the forums and found info for a photo gallary but I dont fully understand. Thank you.
Im at the template navbar right now. |
#2
|
||||
|
||||
Find this:
Code:
<if condition="$show['member']"> <td class="vbmenu_control"><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_cp]</a></td> </if> Code:
<td class="vbmenu_control"><a href="/index.php">Home</a></td> <td class="vbmenu_control"><a href="index.php$session[sessionurl_q]">Forum</a></td> |
#3
|
|||
|
|||
That worked perfect, now how do I control its position.
|
#4
|
||||
|
||||
Just move that code around in file to put it after whatever link you want. This is part of navbar template where all links are:
Code:
<if condition="$show['member']"> <td class="vbmenu_control"><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_cp]</a></td> </if> <if condition="$show['registerbutton']"> <td class="vbmenu_control"><a href="register.php$session[sessionurl_q]" rel="nofollow">$vbphrase[register]</a></td> </if> <td class="vbmenu_control"><a href="faq.php$session[sessionurl_q]" accesskey="5">$vbphrase[faq]</a></td> <td class="vbmenu_control"><a href="memberlist.php$session[sessionurl_q]">$vbphrase[members_list]</a></td> <td class="vbmenu_control"><a href="calendar.php$session[sessionurl_q]">$vbphrase[calendar]</a></td> <if condition="$show['popups']"> <if condition="$show['searchbuttons']"> <if condition="$show['member']"> <td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td> <else /> <td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td> </if> <td id="navbar_search" class="vbmenu_control"><a href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow">$vbphrase[search]</a> <if condition="$show['quicksearch']"><script type="text/javascript"> vbmenu_register("navbar_search"); </script></if></td> </if> <if condition="$show['member']"> <td id="usercptools" class="vbmenu_control"><a href="$show[nojs_link]#usercptools">$vbphrase[quick_links]</a> <script type="text/javascript"> vbmenu_register("usercptools"); </script></td> </if> <else /> <if condition="$show['searchbuttons']"> <td class="vbmenu_control"><a href="search.php$session[sessionurl_q]" accesskey="4">$vbphrase[search]</a></td> <if condition="$show['member']"> <td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td> <else /> <td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td> </if> </if> <td class="vbmenu_control"><a href="forumdisplay.php?$session[sessionurl]do=markread" rel="nofollow">$vbphrase[mark_forums_read]</a></td> <if condition="$show['member']"> <td class="vbmenu_control"><a href="#" onclick="window.open('misc.php?$session[sessionurl]do=buddylist&focus=1','buddylist','statusbar=no,menubar=no,toolbar=no,scrollbars=yes,resizable=yes,width=250,height=300'); return false;">$vbphrase[open_buddy_list]</a></td> </if> </if> <if condition="$show['member']"> <td class="vbmenu_control"><a href="login.php?$session[sessionurl]do=logout&logouthash=$bbuserinfo[logouthash]" onclick="return log_out()">$vbphrase[log_out]</a></td> </if> |
#5
|
|||
|
|||
My last question. You have been so helpful. Seems both links are working fine if Im already in the forums area. But If I try the forums link from the mainpage it doesnt go to the the forums, its just as if it refreshes. Any ideas. Thanks again for all the help.
|
#6
|
||||
|
||||
On homepage change forum links to full urls, like /forums/index.php or http://whatever/forums/index.php
|
#7
|
|||
|
|||
Quote:
Im sorry im very new this, Im going to need more information. Thank you again. |
#8
|
||||
|
||||
Can you post your forum url?
edit: nevermind, found it. Change Code:
<td class="vbmenu_control"><a href="index.php$session[sessionurl_q]">Forum</a></td> Code:
<td class="vbmenu_control"><a href="/forums/index.php$session[sessionurl_q]">Forum</a></td> |
#9
|
|||
|
|||
Perfect!! Thanks for your time.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|