vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   How to add "Home" Button (https://vborg.vbsupport.ru/showthread.php?t=293482)

MaXimus 01-01-2013 08:12 PM

How to add "Home" Button
 
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

Quote:

Originally Posted by Simon Lloyd (Post 2394071)
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:

Quote:

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

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

<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 :)


All times are GMT. The time now is 05:09 PM.

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.01071 seconds
  • Memory Usage 1,727KB
  • 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
  • (2)bbcode_html_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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