View Full Version : How to add "Home" Button
MaXimus
01-01-2013, 08:12 PM
I asked this question before when I was on VB4 but I want to know how to achieve the same result with VB3 because the template is a bit diff. now I don't know where to insert the phrase
See my original question: https://vborg.vbsupport.ru/showthread.php?t=274116
Where shall I insert this?
<li><a class="navtab" href="http://berryracer.com">Home</a></li>
Simon Lloyd
01-01-2013, 10:01 PM
You wouldn't use "navtab" nor would you use the css, take a look at the navbar template and copy how the links are done there :)
Lynne
01-02-2013, 04:59 PM
There is an article in the vB3 area regarding how to add navtabs - you should check it out. I think it is by Calorie.
MaXimus
01-03-2013, 10:02 PM
You wouldn't use "navtab" nor would you use the css, take a look at the navbar template and copy how the links are done there :)
Thanks for the reply Simon you're always the first one in with the smart answers :)
The code is too complicated for a n00bie like me to understand. I couldn't find anything that says http:// in there,
for example, the code I found which is for the navbar is like:
<if condition="$show['member']">
<td class="alt2" nowrap="nowrap">
<div class="smallfont">
<strong><phrase 1="$bbuserinfo[username]" 2="member.php?$session[sessionurl]u=$bbuserinfo[userid]">$vbphrase[welcome_x_link_y]</phrase></strong><br />
<phrase 1="$pmbox[lastvisitdate]" 2="$pmbox[lastvisittime]">$vbphrase[last_visited_x_at_y]</phrase>
can you help me out please :(
My home button should link to:
http://berryracer.com
CoffeeLovesYou
01-04-2013, 03:17 AM
Lol.
Go into the navbar template, and find:
<if condition="$show['member']">
<td class="vbmenu_control"><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_cp]</a></td>
</if>
Above the if condition, you can add:
<td class="vbmenu_control"><a href="http://berryracer.com/">Home</a></td>
NOTE: You can change Home to say anything you want, such as Homepage, Home, bettyracer.com, you name it.
Enjoy.
MaXimus
01-04-2013, 06:27 PM
Thanks a lot bro!!!!! that was very easy!
I really appreciate it
CoffeeLovesYou
01-06-2013, 01:21 AM
no problem :)
if you want to add a button that should only be visible to members of your forum when they are logged in, you could stick it right UNDER the if condition, and right above the usercp link start.
MaXimus
01-06-2013, 04:24 PM
Thanks a lot champ :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.